Commit Graph

49587 Commits

Author SHA1 Message Date
TreeHugger Robot
8bd540580e Merge "Make custom cards title use same font family as slice cards" 2019-01-28 22:32:29 +00:00
Beverly
44449272ce Add isEnabled method to AwareFeatureProvider
Test: manual
Bug: 118388808
Change-Id: I3594d0377efacd5b4558dfaa2dbd91cc925c0b23
2019-01-28 16:47:13 -05:00
Fan Zhang
c2448a1e8c Make custom cards title use same font family as slice cards
Change-Id: I00ab1cd3be7c5a03212371b869e811d6994d1d22
Fixes: 123529477
Test: visual
2019-01-28 12:54:11 -08:00
Amin Shaikh
e1b01e3dd8 Enable overlays on background thread.
Change-Id: I445022c2f05788f89a7dd412f70229b4874ebda3
Fixes: 112741125
Test: m RunSettingsRoboTests
2019-01-28 15:51:17 -05:00
Pavel Grafov
70b1830e7e Merge "Update to use new ConnectivityManager API." 2019-01-28 20:15:49 +00:00
Hai Zhang
912c07cf58 Add a More item for Special app access page.
This allows users to toggle non-exclusive roles, such as the temporary
SMS access (non-exclusive) role.

Bug: 110557011
Test: atest MorePreferenceControllerTest
Change-Id: Id9c0338ef2996aaa741c3da8104e867f32050f3a
2019-01-28 11:55:19 -08:00
Alex Salo
bb4e9ce201 Add "Adaptive sleep" setting
Adaptive sleep setting, if enabled, will perform an attention check
right before the power manager is scheduled to dim and then turn off the
display. If the attention check says that user is currently paying
attention to the device, the screen sleep timeout timer will be reset,
as if user had interacted with the display.

The animation and explanation strings are still TBC per UX team.

The setting is only displayed on supported devices.

Test: make RunSettingsRoboTests
Bug: 111939367
Change-Id: I191dd8ef06ecec4edbe4357671a7a9360971c06f
2019-01-28 11:39:00 -08:00
Amin Shaikh
9391361438 Move SettingsLib icons to android.
Bug: 122263617
Test: make
Change-Id: Ia2ab06561824656951fbd0019e9c921442c714e1
2019-01-28 13:46:54 -05:00
Salvador Martinez
0b880088a4 Merge "Update configurator intent to be public" 2019-01-28 17:35:41 +00:00
TreeHugger Robot
c41ea719be Merge "Update DND strings." 2019-01-28 16:43:32 +00:00
jackqdyulei
47123c8224 Update BT header using BT metadata
As for unthethered headset, get BT data from BT metadata, rather than
CachedBluetoothDevice

Bug: 122460277
Test: RunSettingsRoboTests
Change-Id: Ifb5507cbbce9602726ba272c12d1bf95eff91001
2019-01-28 17:12:17 +08:00
jackqdyulei
1fc7629dda Add layout for advanced BT detail header
If device supports metadata, then we display advanced UI in Bluetooth
details header. This CL adds layout for this header.

In advanced layout, it will show:
1. Device name
2. Left, right and case icon
3. Left, right and case battery level

Once API is ready, following CL will get metadata from it and set it
to UI.
Bug: 122460277
Test: RunSettingsRoboTests
Change-Id: Ide044cf9705f350b431b2cb3a9ad82cc4425a17e
2019-01-28 14:12:49 +08:00
Salvador Martinez
2611190def Update configurator intent to be public
This updates the settings code to use the public intent instead.

Test: tests still pass
Bug: WIP
Change-Id: Id40f60b4c2209073aef8747faa5de4e7ff9692ae
2019-01-28 12:33:30 +08:00
hughchen
d48be9a51a Implement MediaOutputSlice
Implement MediaOutputSlice that used to show the MediaDevice list and
switch the device to transfer the media.

Bug: 121083246
Test: make -j RunSettingsRoboTests
Change-Id: I0d57cc75ca1fc8eae2d943819f84b1ec8b608255
2019-01-28 12:04:30 +08:00
hughchen
2177813531 Add entry point to launch media output slice
Add media output panel type to launch media output slice.

Bug: 121083246
Test: make -j RunSettingsRoboTests
Change-Id: Ibf706146430e309fef6cbf0e1e86c2d5b78b50d5
2019-01-28 12:02:08 +08:00
Kevin Chyn
e56df8877a CDCA is plumbed through BP
CDCA can be invoked with a bundle extra originating from BiometricService.
This allows us to add/forward new BP builder options to CDCA without having
duplicate API each time.

Bug: 111461540
Test: test app, receives correct callbacks
Test: CDC still works

Change-Id: Ia2080d161abba87949338176b34cdf440ed4ed53
2019-01-25 18:13:38 -08:00
Kevin Chyn
29aaf60ace Revert "Plumb setRequireConfirmation to CC"
This reverts commit 56c745c38e.

Reason for revert: Adding functionality differently

Change-Id: Iadc276ff32b9bef4ea3d7dc6dc051dcfc943e134
2019-01-25 17:49:31 -08:00
TreeHugger Robot
8167b65871 Merge "Add "Work profile" section to Languages and input settings" 2019-01-25 21:30:32 +00:00
Pavel Grafov
6a0a7be9a2 Update to use new ConnectivityManager API.
Bug: 77468593
Test: builds
Change-Id: I1fa542e015add2dd8b0e8620f2021c1a5c1c9f1a
2019-01-25 18:58:17 +00:00
Matthew Fritze
d986c59c97 Merge "Add NFC Panel" 2019-01-25 18:27:03 +00:00
Yohei Yukawa
bcb87f7492 Add "Work profile" section to Languages and input settings
This CL adds "Work profile" section to Languages and input settings.

The new section is visible when and only when work profile is enabled.
Hence there should be no user-visible behavior difference when work
profile is not enabled.

If per-profile IME [1] is also enabled, the following 3 preferences
will be shown in the new section.

 * Virtual keyboard for work
 * Spell checker for work
 * Personal dictionary for work

 [1]: Ied99664d3dc61b97c919b220c601f90b29761b96
      a878b9500e6b89dce9738179edc27bcd0d736b7e

Fix: 120748696
Test: Manually verified as follows.
  1. Build and flash an AOSP build
  2. adb root
  3. adb shell setprop persist.debug.per_profile_ime 1
  4. adb reboot
  5. Install Test DPC
  6. Enable managed profile with Test DPC
  7. tapas SoftKeyboard && make -j
  8. adb install -r --user 0 $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  9. tapas SampleSpellCheckerService && make -j
 10. adb install -r --user 0 \
     $OUT/system/app/SampleSpellCheckerService/SampleSpellCheckerService.apk
 11. Open Settings -> System -> Languages & input
 12. Virtual Keyboard -> Manage keyboards:
     Make sure both "Android Keyboard" and "Sample Soft Keyboard" are shown.
 13. Spell checker -> Default spell checker
     Make sure "Android Spell Checker" and "Sample correction" are shown.
 14. Advanced -> Virtual Keyboard for Work -> Manage keyboards
     Make sure that only "Android Keyboard" is shown.
 15. Advanced -> Spell checker -> Default spell checker
     Make sure that only "Android Spell Checker" is shown.
Change-Id: Id88928318ab1cd92963d652ae39ca772222ea4ac
2019-01-25 10:14:45 -08:00
TreeHugger Robot
9be72da6f8 Merge "Adjust contextual card dismissal view" 2019-01-25 12:58:27 +00:00
Eran Messeri
9b6005e51e Merge "Further Credentials-related clean-up" 2019-01-25 12:27:38 +00:00
TreeHugger Robot
b764fac7c1 Merge "Filter out unsupported security type for DPP configuration." 2019-01-25 08:42:29 +00:00
Arc Wang
cfa78006a0 Filter out unsupported security type for DPP configuration.
There is different Wi-Fi security support between ZXing's Wi-Fi QR code
format and Wi-Fi DPP QR code format.

  ZXing's Wi-Fi QR code format: supports WEP / WPA / none security
  Wi-Fi DPP: supports WPA / SAE

So we will have different UI behavior for different security.

  WEP & none security: only support QR code generator
  WPA: supports both QR code generator & scanner
  SAE: only supports QR code scanner
  others: don't support. The share button is invisible

Bug: 123212410
Test: manual test
Change-Id: I87962d730282fc2c1b96223dca6feb79235fe5a1
2019-01-25 14:22:08 +08:00
TreeHugger Robot
88d7797e1b Merge "[Mac Randomization] Change order of Privacy setting in "Add network" page" 2019-01-25 06:03:29 +00:00
TreeHugger Robot
a2a1bb0e51 Merge "Show Default app shortcut preference only when app is qualified." 2019-01-25 05:55:41 +00:00
cosmohsieh
b521bd6225 [Mac Randomization] Change order of Privacy setting in "Add network"
page

For better UX, making the default option 'Use randomized MAC (default)' as the
first option item in "add network" page.

Bug: 123160090
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: Ifdba5a323df21c8d3442f394acdebd1c3f259c69
2019-01-25 12:05:18 +08:00
Cn Chen
bdcebeebb8 Merge "[Migration] pass suw extra intent to wallpaper page" 2019-01-25 04:01:30 +00:00
Pasty Chang
0c6e676708 Merge "Rename ButtonFooterMixin to FooterBarMixin" 2019-01-25 03:58:56 +00:00
TreeHugger Robot
a4118f8e27 Merge "Clean up switchToFragment call." 2019-01-25 03:31:24 +00:00
TreeHugger Robot
403efc9c1b Merge "Implement WifiNetworkListFragment - Part 3" 2019-01-25 02:46:39 +00:00
Cosmo Hsieh
846cacbd0b Merge "[Network Connection] Implement dialog title for new design" 2019-01-25 01:44:28 +00:00
TreeHugger Robot
7e19cfbbe1 Merge "Query correct subscription id for mobile data." 2019-01-25 01:43:06 +00:00
Hai Zhang
3850908671 Show Default app shortcut preference only when app is qualified.
This change uses the new isApplicationQualifiedForRole() API on
PermissionControllerManager to correctly report availability of
default app shortcut preference.

Bug: 110557011
Bug: 123238935
Test: atest DefaultAppShortcutPreferenceControllerBaseTest DefaultSmsShortcutPreferenceControllerTest
Change-Id: Ib86ab0fd84334a149f7c6c3556297745f2990f47
2019-01-24 17:38:47 -08:00
Eran Messeri
dda0c63d5b Merge "Add Enterprise owners for Enterprise settings" am: 35416e7529 am: 74bd41f305
am: a357cc9737

Change-Id: I9879602947c1060daf319253c2f5422d48d57fbe
2019-01-24 15:46:53 -08:00
Dan Albert
5d381ac653 Merge "Revert "Update to use new ConnectivityManager API."" am: 9c7ddce334 am: 2105dc52dd
am: 11247ebb53

Change-Id: Id9a817cb440ce1ae538b7f6fd3f5c81a95efb346
2019-01-24 15:16:38 -08:00
Eran Messeri
a357cc9737 Merge "Add Enterprise owners for Enterprise settings" am: 35416e7529
am: 74bd41f305

Change-Id: I64d13eaab1b8e1a26ef9cadcf6e34c9b65f78076
2019-01-24 15:11:42 -08:00
Doris Ling
079f6bd6b5 Set correct network type when launching wifi usage data.
- when launching wifi data usage, need to explicitly set the network
type to wifi. Otherwise, the data usage list will try to show data for
the default mobile data usage.

Change-Id: I819538d2c53664635bc1c2a721d6d7f6799c6123
Fixes: 123205630
Test: make RunSettingsRoboTests
2019-01-24 15:05:55 -08:00
Eran Messeri
74bd41f305 Merge "Add Enterprise owners for Enterprise settings"
am: 35416e7529

Change-Id: I2823cff17e5b77b3cd449d739c908b0b8c0c9c58
2019-01-24 15:03:28 -08:00
Treehugger Robot
35416e7529 Merge "Add Enterprise owners for Enterprise settings" 2019-01-24 22:56:27 +00:00
Christine Franks
24ec60a92f Merge "Move color modes to ColorDisplayManager" 2019-01-24 22:54:09 +00:00
Doris Ling
9c2556da09 Query correct subscription id for mobile data.
- On the Data usage settings page, we check for valid subscription id to
determine if we should show the mobile section. However, we are querying
the default subscription id, which will return the 1st id for any
subscription if there's no data subscription. Since this is for mobile
section, we should query the default data subscription id explicitly.

Change-Id: I08c80639d07477e486a2d9a10761e11df4c73b28
Fixes: 119881046
Test: make RunSettingsRoboTests
2019-01-24 14:21:18 -08:00
Dan Albert
11247ebb53 Merge "Revert "Update to use new ConnectivityManager API."" am: 9c7ddce334
am: 2105dc52dd

Change-Id: I15aa3b38af77c6e222db38b89e3f29562437f4dd
2019-01-24 13:49:58 -08:00
Dan Albert
2105dc52dd Merge "Revert "Update to use new ConnectivityManager API.""
am: 9c7ddce334

Change-Id: Icd2bf95c10716d324b47151fddc34a31f5736355
2019-01-24 13:39:06 -08:00
TreeHugger Robot
4918eedefb Merge "Add Subscription ID to extra when start carrier settings activity." 2019-01-24 21:11:07 +00:00
Dan Albert
9c7ddce334 Merge "Revert "Update to use new ConnectivityManager API."" 2019-01-24 21:08:46 +00:00
Dan Albert
6e91f68ae4 Revert "Update to use new ConnectivityManager API."
This reverts commit 9a9f6f313b.

Reason for revert: broke pi-dev-plus-aosp

Change-Id: Ia0ff7cdf77b4edf3bdf5e4c54376b730df48373e
2019-01-24 21:06:02 +00:00
Matthew Fritze
3f743aecb4 Add NFC Panel
NFC Panel only shows the NFC setting slice, for now.

Title is "NFC", and See More takes you to the Advanced Device Connectivity
page.

Possibly use cases would be for apps that need to enable NFC for their
peripheral, or accessory.

Test: Manual App
Test: robotest
Change-Id: I8538fd0e4501fb83672418591616f28bf2436645
Fixes: 120142616
2019-01-24 12:53:56 -08:00
Philip P. Moltmann
2cf07aa270 Merge "Assistant is now set as role." 2019-01-24 20:51:41 +00:00