Commit Graph

9748 Commits

Author SHA1 Message Date
Jason Hsu
458d5e81cc Merge "Accessibility shortcut primary action - method to check shortcut type" 2019-12-12 08:33:34 +00: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
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
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
TreeHugger Robot
16aac8e2e3 Merge "Hide summary for Google app in battery usage" 2019-12-10 11:28:18 +00:00
hughchen
cfca56fef1 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
2019-12-10 11:21:16 +00:00
Yi-Ling Chuang
e6b48bcf80 Do no convert FaceSettingsAttention to slice.
The check logic of this preference requires a page loading prior to
slice auto convertion, so it is not suitable to become a slice.
Converting it to a slice will lead to an app crash.

Fixes: 145723632
Test: robotests
Change-Id: Ie6eafb244e9a1cc9267f6b747c8e357d239e688e
2019-12-10 17:00:59 +08:00
Tsung-Mao Fang
cb8dbbeac2 Hide summary for Google app in battery usage
"Google" app is quicksearchbox which always has a foreground service running.
This causes it shows a huge usage time.
So, we make the summary invisible now.

Test: Rebuild and visual
Change-Id: Iba8083cc058e1d391dc20610fb6eb140c2c25350
Fix: 144063003
2019-12-10 14:20:29 +08:00
Raff Tsai
cbcd8d1bea Merge "Implement work-profile infra in BasePreferenceController" 2019-12-10 03:02:17 +00:00
tim peng
ea1106494d Merge "Add codec dialog preference controller for Bluetooth developer option" 2019-12-10 02:49:17 +00:00
TreeHugger Robot
821db5c036 Merge "Add sample rate preference for Bluetooth developer option" 2019-12-10 01:42:16 +00:00
Raff Tsai
f71db73025 Implement work-profile infra in BasePreferenceController
- Add settings:forWork in xml
- Set mIsForWork based on xml attribute
- Delete WorkProfilePreferenceController and move its function to
BasePreferenceController

Fixes: 123376083
Test: Add work profile, go to Settings->System->Language&input,
UI should show work profile related items
Change-Id: Id2dcbb0e158c117cdfd363466a275f4e133c345e
2019-12-10 09:32:37 +08:00
Xiangyu/Malcolm Chen
1d8158fc0b Merge "Add disable pSIM option in Settings" 2019-12-09 22:30:06 +00:00
timhypeng
6a1b765d74 Add quality preference controller for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: I42b6ecdc0b661f9057db23405785351980f04056
2019-12-09 15:27:10 +08:00
TreeHugger Robot
41eff9f631 Merge "Add quality preference for Bluetooth developer option" 2019-12-09 06:06:37 +00:00
timhypeng
bd80f7f949 Add channel mode preference controller for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: Ibf2238ee8b5d3a9d91ea40fea16aa44583a22cc0
2019-12-09 13:38:49 +08:00
Raff Tsai
9700435b4d Merge "Fix robolectric test error" 2019-12-09 05:37:25 +00:00
TreeHugger Robot
efa2229556 Merge "Add channel mode preference for Bluetooth developer option" 2019-12-09 05:37:21 +00:00
timhypeng
8b5790dcc0 Add bit per sample preference controller for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: I8cde0d80d3533368dce6d101d49036fc97627526
2019-12-09 13:17:25 +08:00
timhypeng
8e2aa11e3a Add codec dialog preference controller for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: I5cff61f9f90d9e6a125455685a3608be043f6e7c
2019-12-09 13:14:58 +08:00
tim peng
e655695690 Merge "Add bit per sample preference for Bluetooth developer option" 2019-12-09 05:12:12 +00:00
timhypeng
588a1ca250 Add sample rate preference for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: I5cae9498082d1839add63d2bc01e29639a0c20ee
2019-12-09 13:10:28 +08:00
timhypeng
dc05caec4d Add quality preference for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: I025557ec0977a1585cf65bfacc4a01020c9ea19a
2019-12-09 12:55:45 +08:00
Raff Tsai
895b380c10 Fix robolectric test error
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.deviceinfo.storage"
Change-Id: I7d9843ece0e5c6ce2a93af13822e26494e3514b2
2019-12-09 12:38:06 +08:00
timhypeng
4db1f25f3b Add channel mode preference for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: Iace94d24d8d395366c8fb78863d2fe09ecd0f60d
2019-12-09 12:31:30 +08:00
PO HUNG CHEN
7f244d5163 Merge "Add a GSI/DSU Loader to the developer option." 2019-12-09 03:36:46 +00:00
timhypeng
19f0230520 Add bit per sample preference for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: Idaf9be96f4e48acf46cbf53ae7f7d100db002c7c
2019-12-09 11:27:10 +08:00
tim peng
d100099ecc Merge "Add codec dialog preference for Bluetooth developer option" 2019-12-09 03:21:47 +00:00
TreeHugger Robot
f5ea10b76e Merge "Add a LiveDataController" 2019-12-09 03:03:47 +00:00
Malcolm Chen
e5dcd02f4c Add disable pSIM option in Settings
As we start disabling pSIM option in R, we check that if the feature is
supported, add the "Use SIM" toggle back to pSIM page.

Bug: 141018421
Test: manual test
Change-Id: I1af497ce5ede93f823825718b8136ff8ae0ab49c
2019-12-06 13:20:06 -08:00
timhypeng
2e5dabf88b Add codec dialog preference for Bluetooth developer option
Bug: 142227996
Test: make -j50 RunSettingsRoboTests
Change-Id: I27966cedf915b66e6ce1e4ece2fd854dc21a2841
2019-12-06 15:37:14 +08:00
Stanley Wang
98c64c4086 Merge "Add the item in Language page to dynamic index." 2019-12-06 06:20:48 +00:00
TreeHugger Robot
cdcef1f50c Merge "Wifi Setting: Use SoftApConfiguration for Tether Setting" 2019-12-06 03:29:52 +00:00
Goven Liu
6226188c47 Merge "[Wi-Fi] Add multiple networks request case for adding Wi-Fi for apps feature." 2019-12-06 02:33:25 +00:00
Kevin Chang
5a71dd4411 Merge "Support accessibility shorcut secondary action (1/n)" 2019-12-06 01:52:28 +00:00
TreeHugger Robot
7090a805b8 Merge "Navigate to work tab if start intent from work profile user" 2019-12-05 13:37:16 +00:00
Anna Trostanetski
971cb4f02e Merge "Add descriptions to compat changes." am: fdb5a1ce2a am: d76cef9f7c
am: ba1e18dff9

Change-Id: Ib182f7f77ebd1018e9a6bbfff09e86a2ecb9de79
2019-12-05 04:39:43 -08:00
Anna Trostanetski
ba1e18dff9 Merge "Add descriptions to compat changes." am: fdb5a1ce2a
am: d76cef9f7c

Change-Id: I7eca4097e3c795dab6bd045877ebdc6308bb24d0
2019-12-05 04:36:20 -08:00
govenliu
c45672be54 [Wi-Fi] Add multiple networks request case for adding Wi-Fi for apps feature.
Handle adding multiple networks case, add UI components and process saving flow.

Bug: 136472483
Test: Add unit test cases to test filterSavedNetworks API.
Change-Id: I222e2f8294793796e293de49acdb96ecd6a57b0d
2019-12-05 17:33:51 +08:00