Commit Graph

10252 Commits

Author SHA1 Message Date
Zhen Zhang
23e8fa1020 Create a TetherEnabler class to manage tether settings switch
This class is created to manage the switch state of overall tethering
state. It can turn on/off each type of tethering based on stored value
in SharedPreference. Also, it listens to data saver state change.

Bug: 145923107
Test: TetherEnablerTest
Change-Id: I7f360329569f53f34cf13065aa0e00ad9b55f659
2019-12-17 12:46:55 -08:00
Alex Mang
e74929d987 Merge "Add flag to allow NAS to peform ranking" 2019-12-17 20:40:23 +00:00
Alex Mang
8f966787d9 Add flag to allow NAS to peform ranking
This will be used by implementations of NotificationAssistantService to
rerank notifications within the same importance bucket.

Bug: 146443378
Test: atest
Change-Id: I95e45081ae90f1e60de86b1b850ad18f33eb803b
2019-12-17 20:33:40 +00:00
Mehdi Alizadeh
1b6bdf9307 Merge "Rename methods to reflect the correct names of nav modes" 2019-12-17 19:41:11 +00:00
Mehdi Alizadeh
3ea61b66af Rename methods to reflect the correct names of nav modes
Bug: 146004827
Test: make RunSettingsRoboTests ROBOTEST_FILTER=SystemNavigationGestureSettingsTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=SystemNavigationPreferenceControllerTest

Change-Id: I00602c41aed5e675b8e0d3df7a3b3b318e6ec903
2019-12-17 11:39:40 -08:00
Jay Aliomer
d7da4436b2 Merge "Refine the DarkModeScheduleSelectorController" 2019-12-17 17:26:19 +00:00
Stanley Wang
96dc223f0c Merge "Index Caption preferences page" 2019-12-17 10:20:02 +00:00
Menghan Li
64295adb27 Merge "Color correction improvement (3/n)" 2019-12-17 09:20:30 +00:00
TreeHugger Robot
2e2532077d Merge "Fix UI issue in LocationSettings" 2019-12-17 09:06:38 +00:00
Automerger Merge Worker
5921312f43 Merge "Add feature provider for face unlock" into qt-qpr1-dev am: 8472279900 am: 619d8b3418
Change-Id: I61ae5ff018d97c84fcdcccaefa1159d0ee3716d0
2019-12-17 05:51:13 +00:00
menghanli
657189062f Color correction improvement (3/n)
1. Add summary in accessibility settings page by controller
2. Fix "XmlControllerAttributeTest" for ColorCorrection

Bug: 145968068
Bug: 146319816
Test: make RunSettingsRoboTests2
Change-Id: Ia4dfb2290953eea33c266bd9f7c825c956bcc93a
2019-12-17 13:44:40 +08:00
Automerger Merge Worker
619d8b3418 Merge "Add feature provider for face unlock" into qt-qpr1-dev am: 8472279900
Change-Id: I3334a10c25af3b5a8ed125495c7012fe46516485
2019-12-17 05:38:36 +00:00
Sunny Shao
7f086c0e81 Refine the DarkModeScheduleSelectorController
- move the initial part to the displayPreference.
- use indext compared instead of the direct string compared.

Bug: 141567787
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ROBOTEST_FILTER=com.android.settings.display
Change-Id: I49ccc248bc1f5f9659f8543793ea502ac3e2ea6f
2019-12-17 13:15:11 +08:00
Raff Tsai
5ec8efe7e0 Fix UI issue in LocationSettings
- Add WorkPreferenceController to support directly use work profile
related feature in xml
- Get only work/personal infos in RecentLocationRequestPreferenceController
and RecentLocationRequestSeeAllPreferenceController
- Remove ProfileSelectStorageFragment

Bug: 141601408
Fixes: 146080649
Test: manual, robolectric
Change-Id: Ide39c7a3796e16421f3a5690309c3d746a956de8
2019-12-17 04:25:49 +00:00
Automerger Merge Worker
11b1642c82 Merge "[Settings] Suspend some test case(s)" am: a70e45b03c am: 9bd271763e am: 1bacc5697b
Change-Id: I5d301b54ce7b9c7dab72d713eeef1ffbf748ed14
2019-12-17 03:52:40 +00:00
Automerger Merge Worker
1bacc5697b Merge "[Settings] Suspend some test case(s)" am: a70e45b03c am: 9bd271763e
Change-Id: Iecbace1215fa4c150a44cc462c7157bc044250f4
2019-12-17 03:37:08 +00:00
Stanley Wang
5b580d5d00 Index Caption preferences page
- Add indexable raw data.
- Add dynamic indexable raw data.

Fixes: 146390416
Test: make RunSettingsGoogleRoboTests -j & manual
Change-Id: Ic48b05b5ee74518f944e4d1ef1b19122ceb484dd
2019-12-17 11:35:19 +08:00
Paul Chang
df9501ba62 Merge "Have a setting in Developer Options to choose bug report handler" 2019-12-17 03:20:19 +00:00
Bonian Chen
a70e45b03c Merge "[Settings] Suspend some test case(s)" 2019-12-17 02:37:15 +00:00
Kevin Chyn
15f241b296 Add feature provider for face unlock
Bug: 146085546

Test: Builds
Change-Id: If5c7d57c12a3f679d81cee22fb94a53fce1de29a
2019-12-16 18:19:20 -08:00
Steven Liu
6c1efb0a80 Merge "Remove those stuff about CarrierAp, they are removed from FW." 2019-12-16 21:33:23 +00:00
Steve Elliott
da4a874d84 Merge "New toggle for peoplehub in Notification settings" 2019-12-16 16:41:46 +00:00
TreeHugger Robot
d04ad97133 Merge "Only show Condtionals when the feature flag is on." 2019-12-16 10:36:49 +00:00
Yi-Ling Chuang
9bda9af186 Only show Condtionals when the feature flag is on.
We plan to deprecate Settings Conditionals as it seems
duplicated with quick settings. For now, we set the default
value of this flag to false to disalbe it. OEMs could still
enalbe this feature by setting the flag on.

Bug: 142927361
Test: robotests
Change-Id: Ifaf710caf0045cb185b3a8c3b04f1ce537f67896
2019-12-16 17:13:21 +08:00
Jason Chiu
d955ebcd61 Merge "[Settings] Add preference click metric log" 2019-12-16 08:58:35 +00:00
Bonian Chen
911b6e4b3b [Settings] Suspend some test case(s)
Some test cases generate error on reports.
Suspend these test cases and further study before re-enabling them.

Bug: 146314533
Test: build pass
Change-Id: If27575960d9e1501df4c02ba5690f99e120bb1b1
2019-12-16 08:37:27 +00:00
Automerger Merge Worker
107cd136a3 Merge "[Settings] Adopting public API" am: 8ddd0da0a1 am: 40d2a2dd8d am: 11fa77b023
Change-Id: I87282b78a9db6eb3611591f0c4702447b8470db4
2019-12-16 08:31:03 +00:00
Bonian Chen
74c6ceed24 [Settings] Create a proxy for SubscriptionManager
There're many access from Settings app to SubscriptionManager.
Lots of them are checking for similar information.
Create a proxy can reduce the number of inter-process access from
Settings app to SubscriptionManager, and improve Settings app's
UI performance.

Bug: 141833767
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=GlobalSettingsChangeListenerTest
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ActiveSubsciptionsListenerTest
Change-Id: I3591c478045500a97245955767a7ddd5d361da77
2019-12-16 16:26:40 +08:00
Automerger Merge Worker
11fa77b023 Merge "[Settings] Adopting public API" am: 8ddd0da0a1 am: 40d2a2dd8d
Change-Id: I9a02b9a67658623c51f657d56e345b736b91977c
2019-12-16 08:15:54 +00:00
Bonian Chen
d230b552f5 Merge "[Settings] Unable to display disabled SIM (part 2)" 2019-12-16 08:05:17 +00:00
Bonian Chen
1247771b88 [Settings] Adopting public API
Replace SubscriptionManager#getActiveSubscriptionInfoList(true) by
SubscriptionManager#getActiveSubscriptionInfoList() since they're
equivalent.

Bug: 146312766
Test: build pass
Change-Id: Iab8a141277e0199f75a3419527e15d63669224fc
2019-12-16 06:35:43 +00:00
Jason Chiu
1281e595e4 [Settings] Add preference click metric log
- Move the log point of onPreferenceTreeClick from DashboardFragment to
  it's super class InstrumentedPreferenceFragment for better coverage.
- Write the preference click metric log in PreferenceController handling
  case in DashboardFragment which will skip super class's log point.

Bug: 137559984
Test: robotest
Change-Id: I67178f613c74f755e20fc9dc41319974cb02e83c
2019-12-16 10:57:09 +08:00
tim peng
8e25a3a658 Merge "Apply new preference and controller for Bluetooth developer option" 2019-12-16 01:24:53 +00:00
Steve Elliott
bcfdbf4951 New toggle for peoplehub in Notification settings
Fixes: 146150828
Test: manual, atest
Change-Id: I7c21b81b1337ca0daf5b846f6ba9c7e6a239f09f
2019-12-13 20:47:18 +00:00
Ahmed ElArabawy
a53e186d50 Merge "Wifi: Replace dual_band with 5GHz band support" 2019-12-13 19:46:55 +00:00
Bonian Chen
c5f3951970 [Settings] Unable to display disabled SIM (part 2)
1. Disabled SIMs are accessed through getAvailableSubscriptionInfoList()
API.
2. Support of DSDS enable/disable runtime change intent detection
3. Add support for AutoCloseable

Bug: 144172733
Test: Manual
Change-Id: Ibce65c854aee2ae07ca94cbdd4bd2ce656f5f2c8
2019-12-13 14:32:56 +00:00
Bonian Chen
3b85a17840 Merge "[Settings] Enabling first stage of threading" 2019-12-13 14:03:31 +00:00
TreeHugger Robot
6f0f1ee30e Merge "Make some notification related slices public." 2019-12-13 14:01:21 +00:00
Bonian Chen
3e747559f8 [Settings] Enabling first stage of threading
Settings app would move PreferenceController to run
in background thread in the near future.

To support this, change some of the design within these
essential components to allow:
1. Handler to run on non-main thread
2. Minimum multi-thread reentrance support

Bug: 146045802
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=GlobalSettingsChangeListenerTest
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ActiveSubsciptionsListenerTest
Change-Id: Ica5c942b919007d7d260feee632752d3353a6f18
2019-12-13 20:43:25 +08:00
tim peng
f455e1719e Merge "Add sample rate preference controller for Bluetooth developer option" 2019-12-13 07:09:08 +00:00
Yi-Ling Chuang
3f9f068ca9 Make some notification related slices public.
Only PreferenceControllers with isPublicSlice() set to true are exposed
to other apps. Others will be Settings only.

Bug: 141088937
Test: robotests
Change-Id: I6e7b9d45084ea9944143e606bfac56b2cae3e8a3
2019-12-13 11:43:03 +08:00
Paul Chang
6ae4c4d6ee Have a setting in Developer Options to choose bug report handler
- This setting let user determines which app handles the Bug Report
shortcut on device.

BUG:143017534
Test: make -j56 RunSettingsRoboTests
Test: Ensure bug report handler setting shows correct handler apps.
Change-Id: I6160dadcd048e6c79f422e58fcd8defa04f991bb
2019-12-13 11:15:53 +08:00
Automerger Merge Worker
f0bcac5280 Merge "Update Bluetooth api" am: ff44a78145 am: 027a9244f1
Change-Id: I20311badde6c4335d407be7724d35bb7a6a95591
2019-12-13 00:56:18 +00:00
Ahmed ElArabawy
ead637e0c8 Wifi: Replace dual_band with 5GHz band support
As part of the support of the 6GHz band, the concept of dual-band is no
longer valid since we have more than 2 bands supported by Android and
can be checked on the device.

This commit replaces checks on dual-band support with an explicit check
on 5GHz band support.

Bug: 145936758
Bug: 139354972
Test: Manual
Change-Id: Ia118dedb573f61a148764146edf8091ae253a3e2
2019-12-12 16:36:23 -08:00
Treehugger Robot
ff44a78145 Merge "Update Bluetooth api" 2019-12-13 00:25:13 +00:00
Steven Liu
2bd1d93555 Remove those stuff about CarrierAp, they are removed from FW.
Bug: 130875004
Test: atest SettingsRoboTests
Change-Id: I549eabd1699a617dd6e639b725ade361c64d5a67
2019-12-12 10:38:38 -08:00
Automerger Merge Worker
82c75c6eae Merge "Mainline use cellSignalStrength instead" am: 953ab80e0b am: 5693d157bd
Change-Id: I4445d70a94da15cadfff8c795397494c36f51c30
2019-12-12 10:19:01 +00:00
Jason Hsu
458d5e81cc Merge "Accessibility shortcut primary action - method to check shortcut type" 2019-12-12 08:33:34 +00:00
SongFerngWang
54b00d859b Mainline use cellSignalStrength instead
Bug: 146046311
Test: 1. open SIM status and check signal strength. (PASS)
2.atest make RunSettingsRoboTests /
ROBOTEST_FILTER=SimStatusDialogControllerTest(PASS)

Change-Id: I93e9dc09a01aa76b7d26660a32944df79cda93f3
Merged-In: I93e9dc09a01aa76b7d26660a32944df79cda93f3
2019-12-12 16:15:21 +08:00
SongFerng Wang
5a3ddb0fb1 Merge "Mainline use cellSignalStrength instead" 2019-12-12 07:45:51 +00:00