Commit Graph

10286 Commits

Author SHA1 Message Date
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
TreeHugger Robot
b30e2a5aa6 Merge "Change ProfileType definition" 2019-12-12 07:03:56 +00:00
Raff Tsai
1e5d8146b5 Change ProfileType definition
Bug: 141601408
Test: rebuild
Change-Id: Ia4d4fabe8a4daad4ce54c243748fa3c29bf944ba
2019-12-12 13:44:35 +08:00
menghanli
0eae582909 Color correction improvement (2/n)
Implement RadioButtonPreference and its controller to replace ListPreference
New strings for accessibility daltonizer service
- radio button title and summary

Bug: 145968068
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DaltonizerPreferenceControllerTest
Change-Id: Ic91d8648906f35991682a259879095cbbd4cc678
2019-12-12 05:14:39 +00:00
Zoey Chen
65c7da6e5c Merge "[Settings] Cannot use UnsupportedAppUsage API, use #hasIccCard() to replace" 2019-12-12 03:18:40 +00:00
hughchen
ee03851604 Update Bluetooth api
This CL is used to update Bluetooth api.

- Use BluetoothProfile.CONNECTION_POLICY_ALLOWED instead of
  BluetoothProfile.PRIORITY_ON
- Use BluetoothProfile.CONNECTION_POLICY_FORBIDDEN instead of
  BluetoothProfile.PRIORITY_OFF

Fixes: 141582844
Test: manually
Change-Id: I527813e38583a4e4a1489090e8a17c6bd50c3e81
Merged-In: I527813e38583a4e4a1489090e8a17c6bd50c3e81
2019-12-12 10:29:45 +08:00
SongFerngWang
7e66fbd162 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
2019-12-11 23:20:36 +08:00
jasonwshsu
ae6c855315 Accessibility shortcut primary action - method to check shortcut type
Add method to check shortcut type that would be used in implementing
different shortcut UI.

Bug: 145490632
Test: make -j52 RunSettingsRoboTests ROBOTEST_FILTER=AccessibilityUtil
Change-Id: I5468ff50df35cc0b80f0ae55019164f334ba6c59
2019-12-11 16:06:40 +08:00
timhypeng
548e927ed9 Apply new preference and controller for Bluetooth developer option
- Modify XML to apply new preferences and controllers
- Remove old controller file
- Move codec optional codec to the uppler layer

Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: Ia8fca4bc5b228592fdacad206e010bf0219282d4
2019-12-11 14:27:31 +08:00
timhypeng
6ba89c33a4 Add sample rate preference controller for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: I84198ae04221c2f28c1d8e596e4a8f295e7a76d1
2019-12-11 13:18:06 +08:00
zoey chen
73038f556d [Settings] Cannot use UnsupportedAppUsage API, use #hasIccCard() to replace
Bug: 145967955
Test: make
Change-Id: I8b948d1d416e1eb79e34be073b8ad81645d5ebb1
2019-12-11 11:57:43 +08:00
TreeHugger Robot
db4c10942b Merge "Let MasterSwitchPreference be restrictable" 2019-12-11 03:56:34 +00:00
tim peng
1e00dbf41c Merge "Add bit per sample preference controller for Bluetooth developer option" 2019-12-11 02:18:18 +00:00
tim peng
59d56cee0b Merge "Add quality preference controller for Bluetooth developer option" 2019-12-11 02:18:05 +00:00
tim peng
d8bb8b3383 Merge "Add channel mode preference controller for Bluetooth developer option" 2019-12-11 02:17:49 +00:00
TreeHugger Robot
614aa13035 Merge "Update Bluetooth api" 2019-12-11 01:57:12 +00:00
Zhen Zhang
43b882c4e2 Let MasterSwitchPreference be restrictable
Let MasterSwitchPreference be restrictable by extending RestrictedPreference.
This is a prerequisite CL for "Hotspot & Tethering" in "Network & Internet" settings screen to be a MasterSwtichPreference.
Also changed MasterSwitchPreferenceTest perse.

Bug: 145922022
Test: SettingsRoboTests except StorageItemPreferenceControllerTest which
fails before this CL.
Change-Id: I54fa59d7adfce5f564c178c0db334974dbabf059
2019-12-10 17:37:41 -08:00