Xin Li
df5b0a4c2d
[automerger skipped] Merge "Merge Android R" am: 36cfa7db8e
-s ours am: 3fd1488575
-s ours am: a486aae1f4
-s ours am: 53be426ddf
-s ours
...
am skip reason: Change-Id I7972af3db5cb995b4a7c4deb982eeef6c3dddaad with SHA-1 ada75ad54d
is in history
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1421782
Change-Id: Ie074bd5d37e2694337d1a659596f968bb0fae17c
2020-09-11 03:59:09 +00:00
Xin Li
53be426ddf
[automerger skipped] Merge "Merge Android R" am: 36cfa7db8e
-s ours am: 3fd1488575
-s ours am: a486aae1f4
-s ours
...
am skip reason: Change-Id I7972af3db5cb995b4a7c4deb982eeef6c3dddaad with SHA-1 ada75ad54d
is in history
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1421782
Change-Id: I4185295946132a254d112db31c4f7ef39c34c691
2020-09-11 03:33:38 +00:00
Xin Li
a486aae1f4
[automerger skipped] Merge "Merge Android R" am: 36cfa7db8e
-s ours am: 3fd1488575
-s ours
...
am skip reason: Change-Id I7972af3db5cb995b4a7c4deb982eeef6c3dddaad with SHA-1 ada75ad54d
is in history
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1421782
Change-Id: I62c3578d5dd1ce64b95dd1b2e54e648a3f362676
2020-09-11 02:02:47 +00:00
SongFerngWang
0c2cabef6e
Fix NullPointerException, TelephonyManager.getServiceState is null
...
Add the null protect for TelephonyManager.getServiceState.
Bug: 166676020
Test: 1. make RunSettingsRoboTests ROBOTEST_FILTER=\
RenameMobileNetworkDialogFragmentTest (PASS)
2. make RunSettingsRoboTests ROBOTEST_FILTER=\
AutoSelectPreferenceControllerTest (PASS)
3. make RunSettingsRoboTests ROBOTEST_FILTER=\
PreferredNetworkModePreferenceControllerTest (PASS)
4. make RunSettingsRoboTests ROBOTEST_FILTER=\
EnabledNetworkModePreferenceControllerTest (PASS)
Merged-In: I61e59f7ba9d6c64019d620d6cb80099ded41473f
Change-Id: Ib80e5e7498a078435185814d11c3b2bcc4318f59
2020-09-11 09:27:41 +08:00
Bonian Chen
22a70a5e15
[Settings] subscription UI should be closed when SIM is removed
...
When SIM is removed, subscription UI should actively be closed (instead of
waiting for user to leave UI).
Bug: 160197149
Test: manual
Merged-In: I2854147c956faa633a9682eee0028db6cd2d3912
Change-Id: I920b88879a225f1d6ce696c7784d1f6f279c16d9
2020-09-11 09:18:34 +08:00
Xin Li
3fd1488575
[automerger skipped] Merge "Merge Android R" am: 36cfa7db8e
-s ours
...
am skip reason: Change-Id I7972af3db5cb995b4a7c4deb982eeef6c3dddaad with SHA-1 ada75ad54d
is in history
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1421782
Change-Id: Ie39f3baca4e2059d4e4e1db1a65dd42137223b9d
2020-09-11 00:40:25 +00:00
Jeremy Goldman
a1aaccf670
[Testing] use AndroidJUnit4 in new MultiNetworkHeaderControllerTest
...
1. Rather than mocking the PreferenceScreen, create an instance via
PreferenceManager. Rather than stubbing PreferenceScreen functions to
return the PreferenceCategory mock, the mock is inserted using public
functions.
2. PreferenceCategory active state is checked rather than verifying the
arguments of function calls.
3. mHeaderController test superclass overrides functions which use the
Lifecycle, because doReturn+when on Spy objects has undesired side
effects.
4. Looper message queue prepared for the PreferenceScreen.
Bug: 168130550
Diff: https://diff.googleplex.com/#key=w7a7L3seOowE
Test: atest -c MultiNetworkHeaderControllerTest
Change-Id: Ic66425aca4047d2eacd04509f3bfb315f6dd57fc
2020-09-10 20:10:22 +00:00
Yi Jiang
f7b60ee566
Merge "Disable screen attention when DISALLOW_CONFIG_SCREEN_TIMEOUT"
2020-09-10 17:33:36 +00:00
Xin Li
36cfa7db8e
Merge "Merge Android R"
2020-09-10 17:21:53 +00:00
Mariia Sandrikova
b74bf962cc
Vertically center notification priority labels.
...
Fix: 161297560
Test: manual
Change-Id: Idd4600a48e1ba50b9a861c9989de9baeb1493eab
2020-09-10 16:52:15 +00:00
Jeremy Goldman
4126ec2d32
[Testing] use AndroidJUnit4 in new EuiccPreferenceControllerTest
...
Test: atest -c EuiccPreferenceControllerTest
Change-Id: I028ca81d38252beb3abccef9e938988510f3f55e
2020-09-10 15:19:01 +00:00
Jeremy Goldman
ff6bc3ce27
[Testing] use AndroidJUnit4 in new MobileDataPreferenceControllerTest
...
Diff: https://diff.googleplex.com/#key=OYsSkuGzJNkP
Test: atest -c MobileDataPreferenceControllerTest
Change-Id: I1a2d7b38023681f3db3320aa9f315109280cfbd0
2020-09-10 15:15:08 +00:00
Yi-Ling Chuang
5601bce8dc
Add a feature flag for settings contextual home.
...
Bug: 168179764
Test: rebuild
Change-Id: Ib0a3c7ef9a80fe6fb0ddaa59a181af7dbb715db3
2020-09-10 17:16:24 +08:00
Yi Jiang
038d18ff73
Disable screen attention when DISALLOW_CONFIG_SCREEN_TIMEOUT
...
Test: atest AdaptiveSleepDetailPreferenceControllerTest
Bug: 161938926
Change-Id: I4ed96ad36efe67091a26cbfe2cde16c116f7c8fb
2020-09-10 00:58:03 -07:00
TreeHugger Robot
20d17a4ca5
Merge "Add a feature flag for silky home"
2020-09-10 07:55:43 +00:00
TreeHugger Robot
b7682b98ec
Merge "Update battery saver preference key"
2020-09-10 07:02:38 +00:00
Ted Wang
47f2ebb1af
Update state when there is Bluetooth tethering state changed
...
Monitor Bluetooth Tethering state and update preference when there is
Bluetooth tethering state change.
Add test case to verify when recieve
BluetoothPan.TETHERING_STATE_CHANGED will update bluetooth state
Bug: 138688805
Test: make RunSettingsRoboTests
Change-Id: I8f468d1d99ed6d87f6cd8305ef56b0d7a5dec95b
2020-09-10 06:15:41 +00:00
Yanting Yang
5775d758e3
Add a feature flag for silky home
...
Bug: 168166015
Test: robotest & rebuild
Change-Id: I1096f046acc7d34c2658caa2691884dcf0be7cfc
2020-09-10 13:10:50 +08:00
Arc Wang
746176eb56
Create NetworkProviderSettings for provider model
...
Provider model is a feature which improves networks
Settings UX.
NetworkProviderSettings is the fragment which allow
users to choose a mobile network or a Wi-Fi network
to connect.
At this change, NetworkProviderSettings is a clone
of WifiSettings, mobile networks will be integrated
at later CLs.
Bug: 167474581
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.network.NetworkProviderSettingsTest
Change-Id: I185639a8f2469e9ec76ad18b6c2bc2e8a4d079e3
2020-09-10 11:03:48 +08:00
Betty Chang
e8b877e3ee
Merge "[Testing] Use AndroidJUnit4 instead in NetworkDashboardFragmentTest"
2020-09-10 02:30:24 +00:00
Betty Chang
914fdb6b5f
Merge "[Testing] Use AndroidJUnit4 instead in MobilePlanPreferenceControllerTest"
2020-09-10 02:30:09 +00:00
Kevin Chyn
3c3450e656
Merge "1/n: Clean up BiometricEnrollActivity"
2020-09-10 01:25:23 +00:00
TreeHugger Robot
700b219fb1
Merge "Import translations. DO NOT MERGE ANYWHERE"
2020-09-09 22:40:15 +00:00
TreeHugger Robot
29068a8310
Merge "Import translations. DO NOT MERGE ANYWHERE"
2020-09-09 22:29:15 +00:00
Kevin Chyn
eb8c0f14ea
1/n: Clean up BiometricEnrollActivity
...
Test: fingerprint and face enroll via
adb shell am start -a android.settings.BIOMETRIC_ENROLL
Test: credential enroll via
adb shell am start -a android.settings.BIOMETRIC_ENROLL --ei android.provider.extra.BIOMETRIC_AUTHENTICATORS_ALLOWED 32768
Bug: 162341940
Bug: 152242790
Change-Id: Idfdf96891ba9a2394f61eedb0adde2adf9fd85e6
2020-09-09 15:07:24 -07:00
Bill Yi
32589a674e
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 28825ad9e4
-s ours am: c59dc080ce
-s ours am: 64fd27fd35
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12547880
Change-Id: I8c99168a70bc12ef906ce13a8a347cddbb07f050
2020-09-09 21:45:43 +00:00
Bill Yi
733707023e
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 28825ad9e4
-s ours am: 94d3a30bcf
-s ours am: 51726dfb9b
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12547880
Change-Id: If2f72cd6d841e69446829353ba757b6cf75255f2
2020-09-09 21:45:26 +00:00
Bill Yi
807c4ed6e8
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ae0c6a9fdb
-s ours am: ec05886ffb
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12547885
Change-Id: I4b71254bab7afbf816e03c97090da2433e2a941a
2020-09-09 21:44:53 +00:00
Bill Yi
64fd27fd35
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 28825ad9e4
-s ours am: c59dc080ce
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12547880
Change-Id: I01197f570e0cc53a724b1ee64819aab2ed954b43
2020-09-09 21:36:37 +00:00
Bill Yi
51726dfb9b
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 28825ad9e4
-s ours am: 94d3a30bcf
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12547880
Change-Id: Icee599694366364e6625d00674516d24621dba9b
2020-09-09 21:29:42 +00:00
Bill Yi
ec05886ffb
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ae0c6a9fdb
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12547885
Change-Id: I8817d412d60565eaba0e7fe6d08209086f83361d
2020-09-09 21:29:28 +00:00
Bill Yi
c59dc080ce
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 28825ad9e4
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12547880
Change-Id: I2c1aa46ba97bfd9094471fc00a2c62fdabba6313
2020-09-09 21:09:58 +00:00
Bill Yi
94d3a30bcf
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 28825ad9e4
-s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12547880
Change-Id: Iddec8911b06b8da1cf5244c44e505139a48d8453
2020-09-09 21:09:57 +00:00
Bill Yi
c01738f847
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I1a15ffc0e8765702dc2468d075d3348ed69151c9
2020-09-09 15:52:22 +00:00
Bill Yi
7840751e7d
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I8d7aa572632771bb3bb165d0d4d9ad9f7302d574
2020-09-09 15:12:21 +00:00
Yanting Yang
7b8b881f8a
Merge "Resolve tiles intent before prompting a dialog for profile selection"
2020-09-09 14:44:35 +00:00
Bill Yi
ae0c6a9fdb
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I9cb199fccd6af58b074819d1fdd3d2404fcddfc9
2020-09-09 14:34:33 +00:00
Bill Yi
28825ad9e4
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I7bc2aaf9e23573eb179950feb6edb427877f0c3f
2020-09-09 13:56:30 +00:00
Yanting Yang
552f340dda
Resolve tiles intent before prompting a dialog for profile selection
...
Symptom:
Once the work profile component of the tile is disabled after Settings
preloaded tiles, Settings will crash when the user clicks the work
option from the profile selection dialog.
Root cause:
Settings just checks the users from the preloaded tiles to prompt
profile selection dialog. It doesn’t check the activity for the work
profile user before launching.
Solution:
Resolve the activity by intent as users before launching if the work
profile is enabled. Directly start activity if only one user is
resolvable, otherwise prompt a dialog for profile selection.
Fixes: 162227425
Test: make RunSettingsRoboTests
Change-Id: Idcc4e5a266ab2a2252db30bb97d4be002212c677
2020-09-09 18:12:42 +08:00
PETER LIANG
0f61d2aa31
Merge "Add the gray color into the palette for color correction."
2020-09-09 09:09:35 +00:00
changbetty
0bf90f7186
[Testing] Use AndroidJUnit4 instead in MobilePlanPreferenceControllerTest
...
1. Use AndroidJunit4 instead of RobolectricTestRunner
2. Add @Before setup() for context
3. Change Copy Right
4. Workaround the resource getString to resolve the resource not found
Bug: 167997296
Test: atest -c MobilePlanPreferenceControllerTest
Change-Id: I5f43b6a4d20108195164038c02810b725abbcd06
2020-09-09 15:34:52 +08:00
changbetty
f24a8be2d8
[Testing] Use AndroidJUnit4 instead in NetworkDashboardFragmentTest
...
1. Use AndroidJunit4 instead of RobolectricTestRunner
2. Use ApplicationProvider instead of RuntimeEnvironment to get context
3. Change Copy Right
4. Run the NetworkDashboardFragment on the Main thread
Bug: 168000627
Test: atest -c NetworkDashboardFragmentTest
Change-Id: I6d10737b9ac8299f2d7c847a9fdb1c3bdc4e390d
2020-09-09 11:26:42 +08:00
Xin Li
f82ee6a5d3
Merge Android R
...
Bug: 168057903
Merged-In: I7972af3db5cb995b4a7c4deb982eeef6c3dddaad
Change-Id: I2e7fc7920cde49624ad7bd4053d33fd36d49e809
2020-09-08 16:56:07 -07:00
timhypeng
c3bd801a89
Add PairNewBluetoothReceiver to launch Bluetooth pairing page
...
-A new SystemUI dialog requires to launch Bluetooth pairing page
-Add receiver in manifest
Bug: 155822415
Test: build pass
Change-Id: I16767af3afb05eab7246be133011bc9148909d11
2020-09-08 06:24:08 +00:00
Peter_Liang
32bd252104
Add the gray color into the palette for color correction.
...
Bug: 165770905
Test: manual test & make RunSettingsRoboTests ROBOTEST_FILTER=PaletteListPreferenceTest
Change-Id: I20cd795791b8265811a0972e04d7dcc5b4f2ce15
2020-09-08 14:06:16 +08:00
Jason Chiu
630b23b3de
Merge "Fix the endless panel loading"
2020-09-08 06:04:23 +00:00
Betty Chang
4badae1a03
Merge "[Testing] Use AndroidJUnit4 instead in DataServiceSetupPreferenceControllerTest"
2020-09-08 01:45:08 +00:00
Betty Chang
b05056bce7
Merge "[Testing] Use AndroidJUnit4 instead in DisableSimFooterPreferenceControllerTest"
2020-09-08 01:44:17 +00:00
Betty Chang
9928db2e7e
Merge "[Testing] Use AndroidJUnit4 instead in PreferredNetworkModePreferenceControllerTest test files"
2020-09-08 01:35:45 +00:00
Betty Chang
13aa43c2f8
Merge "[Testing] Use AndroidJUnit4 instead in telephony/gsm/ test files"
2020-09-08 01:33:51 +00:00