Commit Graph

31273 Commits

Author SHA1 Message Date
Jay Aliomer
dba11e82b5 Revert "Revert "Unable to select twilight scheduling after enabling location""
This reverts commit 782438347b.
Bug: 153115261
Reason for revert: fixing tests

Change-Id: I497a2b83cbe3eaee5f5fb3eb4df73618130fc6e2
2020-05-14 15:14:18 +00:00
TreeHugger Robot
722b197488 Merge "Do not prebind sticky slices." into rvc-dev am: fa1e102af7
Change-Id: I28fd7a76774639806b79d9ffd7a5b9272dd96bfa
2020-05-14 11:55:36 +00:00
TreeHugger Robot
fa1e102af7 Merge "Do not prebind sticky slices." into rvc-dev 2020-05-14 11:37:45 +00:00
Jason Chiu
f067ac4f50 Merge "Add metrics log for special cases" into rvc-dev am: 60071b9287
Change-Id: I6fcbbcb9b1dddfcd2114cfd81ee225bad0fc7e9f
2020-05-14 07:28:56 +00:00
Tim Peng
493e1a62c8 In Media Switch output panel, Switch access shouldn't select the first device when selecting the device list
-The group view should not be clickable
-Disable view clickable flag

Bug: 151126466
Test: make -j50 RunSettingsRoboTests
Change-Id: Ia617f436a615168d422d208959db5513b38e6564
2020-05-14 15:19:39 +08:00
Jason Chiu
60071b9287 Merge "Add metrics log for special cases" into rvc-dev 2020-05-14 07:12:47 +00:00
Tim Peng
a402e4f3ce Display previous active media information
-Pending intent is not updated

Bug: 156561083
Test: make -j50 RunSettingsRoboTests
Change-Id: If4fdb85d7097bc48f0512b3d11f950af1d57dcd7
2020-05-14 13:32:51 +08:00
Yi-Ling Chuang
ac59ea8e23 Do not prebind sticky slices.
We have a precheck mechanism to filter out slices that are not eligible
to be displayed on the homepage. Since sticky cards are designed to
be always available, which implies they will never be null, so skip
prechecking on them.

This allows us to prevent from the precheck timeout which usually leads
to the disappearance of cards.

Fixes: 152365480
Test: robotests
Change-Id: Ic9e3df8b55609e9b5d1d3fd3a8d95e4086d3d7a4
2020-05-14 11:38:47 +08:00
TreeHugger Robot
35c1670be2 Merge "Add null check for intent in AppPermissionPreferenceController" into rvc-dev am: bb7a65a19b
Change-Id: I97a73c098c57975aead1e70a57accba636a782fd
2020-05-14 03:32:17 +00:00
TreeHugger Robot
bb7a65a19b Merge "Add null check for intent in AppPermissionPreferenceController" into rvc-dev 2020-05-14 03:16:51 +00:00
tim peng
6ca2cc572e Merge "When only one device is selected in dynamic group, the device should be disabled" into rvc-dev am: 8d2c8f1f33
Change-Id: I4403bc7f8b208a62751c37edd081c3230c225d3a
2020-05-14 01:47:06 +00:00
tim peng
8d2c8f1f33 Merge "When only one device is selected in dynamic group, the device should be disabled" into rvc-dev 2020-05-14 01:35:44 +00:00
menghanli
efabdcc7d6 Avoid launching activity-based feature to force stop exist actiivty and
recreate it.

Root cause: FLAG_ACTIVITY_CLEAR_TASK would cause the exist activity are finished and new one items to be started. It causes Live Transcribe main activity goes onStart call of new activity is followed by onStop call of old activity, which cause the mic stopping.

Solution: Remmove the FLAG_ACTIVITY_CLEAR_TASK.

Bug: 156455425
Test: Manual test
Change-Id: I86778577ff37d7f14b28e5eca3087fa9cf5cb2c1
2020-05-14 09:29:04 +08:00
Yanting Yang
a2d5ba3ebe Fix text view padding issue in EmptyTextSettings
Set the left and right padding of text view to 24dp.

Impact pages:
Apps & notifications > Special app access > Premium SMS access
Apps & notifications > Special app access > VR helper services

Fixes: 147901392
Test: visual
Change-Id: I01aa7935462e4d16e56be71a8f1f0cbe9b8275f9
2020-05-14 04:33:57 +08:00
TreeHugger Robot
08686a1d88 Merge "Remove divider after last items" into rvc-dev am: abeb1a09fa
Change-Id: Ia13f617854a1c23134040ba726f0ad033025529a
2020-05-13 20:24:39 +00:00
TreeHugger Robot
abeb1a09fa Merge "Remove divider after last items" into rvc-dev 2020-05-13 20:01:52 +00:00
Nate Myren
8c7c22d4b9 Add null check for intent in AppPermissionPreferenceController
Sometimes, the App Info page can be reached without an intent in tests.
Add a null check to catch this

Bug: 154650244
Test: atest AppPermissionPreferenceControllerTest#handlePreferenceTreeClick_shouldStartManagePermissionsActivity

Change-Id: I514acda6b78d9e76b230aa945067bd7d6d9feff9
2020-05-13 13:00:53 -07:00
Julia Reynolds
9a6e7329be Remove divider after last items
Fixes: 155890866
Test: manual
Change-Id: Ie0e3f7ad8c1868bda7623718dd60926c300fa353
2020-05-13 14:03:40 -04:00
Bonian Chen
0c16b3541d [Settings] Avoid from redraw UI when first time onResume am: 17ad56b3fc
Change-Id: I541b8e9003918d006f5c815673d2832532cabbaa
2020-05-13 13:53:07 +00:00
Bonian Chen
17ad56b3fc [Settings] Avoid from redraw UI when first time onResume
Registration of subscription change lead to redraw.
However, entire UI is newly created where redraw is not required
when fragment first time created.

Therefore, remove first callback from SubscriptionManager to reduce some
time.

Bug: 141833767
Test: manual
Change-Id: I54a58dd8271bb2cd8cd531cc02ff7d64b3e4328c
2020-05-13 18:47:09 +08:00
TreeHugger Robot
442e6007e3 Merge "Update icon tint color when the user toggles Dark theme" into rvc-dev am: 8224a5ad3d
Change-Id: I1bd397e9f8d122656bc27f742dde0b20ae44c147
2020-05-13 09:59:17 +00:00
TreeHugger Robot
8224a5ad3d Merge "Update icon tint color when the user toggles Dark theme" into rvc-dev 2020-05-13 09:37:37 +00:00
PETER LIANG
6c2c23f325 Merge "Add the settings content observer for shortcut preference." into rvc-dev am: 31e6002ee8
Change-Id: I52c9bb34e59f7c1b709e58fa5205ebb6ea530278
2020-05-13 09:02:33 +00:00
PETER LIANG
31e6002ee8 Merge "Add the settings content observer for shortcut preference." into rvc-dev 2020-05-13 09:00:09 +00:00
TreeHugger Robot
6d74f690e6 Merge "Show the app pinning description after user enables it" into rvc-dev am: 0cc66ea23c
Change-Id: Iab7f4a4482807d03e70b9dd51d3ace86f56b4a12
2020-05-13 08:56:15 +00:00
TreeHugger Robot
0cc66ea23c Merge "Show the app pinning description after user enables it" into rvc-dev 2020-05-13 08:41:18 +00:00
Tsung-Mao Fang
232cfc4e76 Show the app pinning description after user enables it
By design, we still need to show app pinning description
after user enables feature.

Test: Rebuilt rom, and see description.
Fix: 151332926
Change-Id: Ic9a2d7baec865358471ac0210648642ebd9fd65a
2020-05-13 14:43:23 +08:00
Peter_Liang
b3d5df4989 Add the settings content observer for shortcut preference.
Root cause:
Didn't update the UI when settings value chagned.

Next:
Add the settings content observer.

Bug: 155837154
Test: manual test & Robo test & atest
Change-Id: I7be952a3a8824d00d3903d4a69beb8f992d638a1
2020-05-13 14:43:20 +08:00
TreeHugger Robot
e9a5de28af Merge "Allows to launch only authenticator owned activities" into rvc-dev am: dfb3f561ea
Change-Id: I5b863704ab34128ed2bbffe22494198584881812
2020-05-13 05:29:20 +00:00
TreeHugger Robot
dfb3f561ea Merge "Allows to launch only authenticator owned activities" into rvc-dev 2020-05-13 05:26:25 +00:00
TreeHugger Robot
bfa9b3e6dc Merge "Revert "Unable to select twilight scheduling after enabling location"" into rvc-dev am: 6d2ad68e1a
Change-Id: I299ecbfb577fd672e929de8c604e8af288e22341
2020-05-13 05:20:37 +00:00
TreeHugger Robot
546c130e8d Merge "Revert "Add the settings content observer for shortcut preference."" into rvc-dev am: 9ae5b47aee
Change-Id: Id85a24305016ce9a3fda8b455cdec9f7441553c3
2020-05-13 05:20:24 +00:00
TreeHugger Robot
6d2ad68e1a Merge "Revert "Unable to select twilight scheduling after enabling location"" into rvc-dev 2020-05-13 05:16:51 +00:00
TreeHugger Robot
9ae5b47aee Merge "Revert "Add the settings content observer for shortcut preference."" into rvc-dev 2020-05-13 05:05:08 +00:00
TreeHugger Robot
9fc28c5a7f Merge "[Wi-Fi] Quit worker thread of WifiPickerTracker" into rvc-dev am: 02b7b16c93
Change-Id: I8a1d93bb01c0aa739798a0be709f660c1f6e5da1
2020-05-13 04:36:26 +00:00
TreeHugger Robot
02b7b16c93 Merge "[Wi-Fi] Quit worker thread of WifiPickerTracker" into rvc-dev 2020-05-13 04:18:18 +00:00
Edgar Wang
782438347b Revert "Unable to select twilight scheduling after enabling location"
This reverts commit 9073b2f968.
Bug: 153115261
Reason for revert: this CL make Settings robolectric test fail at com.android.settings.display.darkmode.DarkModeScheduleSelectorControllerTest

Change-Id: I3f1ba35f55f2905b10ca97149268be6074780eda
2020-05-13 03:58:36 +00:00
Edgar Wang
7e70ef64d4 Revert "Add the settings content observer for shortcut preference."
This reverts commit 785af0c15a.

Bug: 155837154

Reason for revert: robolectric test fail at com.android.settings.accessibility.ToggleFeaturePreferenceFragmentTest

Change-Id: If8e5681b044171ad6941307489526cc3834f66b2
2020-05-13 03:45:39 +00:00
Betty Chang
27e950f857 Merge "Add setPackage for PendingIntent in SliceHelper" into rvc-dev am: 0c821c7be2
Change-Id: If0506f4bc29023e8109b20432584a55a879b7b33
2020-05-13 03:08:31 +00:00
Sunny Shao
d6d8f98844 Allows to launch only authenticator owned activities
- 3rd party developers can define himself-authenticator
  and use the accountPreferences attribute to load the
  predefined preference UI.
- If a developer defines an action intent to launch the
  other activity in xml and it would return true due
  to the true exported attribute and no permission.
- To avoid launching arbitrary activity. Here allows
  to launch only authenticator owned activities.

Bug: 150946634
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.accounts
Test: PoC app
Change-Id: I5ce1a0b3838db7b3fbe48c6ea23d5f093d625cdb
2020-05-13 10:55:49 +08:00
Betty Chang
0c821c7be2 Merge "Add setPackage for PendingIntent in SliceHelper" into rvc-dev 2020-05-13 02:53:40 +00:00
TreeHugger Robot
8f50f01f8b Merge "Revert "Create QS media player setting"" into rvc-dev am: cd3cde6169
Change-Id: Ib8c1bb043eae6c51671dec709fe3fe8ecd96641c
2020-05-13 02:37:41 +00:00
Arc Wang
a52782bc06 [Wi-Fi] Quit worker thread of WifiPickerTracker
Should quit worker thread when a fragment is about to
be destroyed.

Bug: 152454787
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AddAppNetworksFragmentTest
Change-Id: I809511b7f7c092cf9787e8f6bb7c7513c27c98c8
2020-05-13 10:34:51 +08:00
TreeHugger Robot
cd3cde6169 Merge "Revert "Create QS media player setting"" into rvc-dev 2020-05-13 02:20:05 +00:00
Jason Hsu
9beb837352 Merge "Fix the issue that title of Color inversion page is wrong" into rvc-dev am: 394f925729
Change-Id: Ic7f5a3f816bf47316386a60a0c112dad4b5dedd3
2020-05-12 20:46:26 +00:00
Jay Aliomer
09312d8e70 Merge "Unable to select twilight scheduling after enabling location" into rvc-dev am: a5e7d180f1
Change-Id: I602e493dccc708e9fbd919e94e8c4201bf141dbd
2020-05-12 20:46:04 +00:00
Kholoud Mohamed
c60cf0bc3e Merge "String changes in the cross profile settings page" into rvc-dev am: 311ff0c1ea
Change-Id: I578ee55ae704365805c9b370973076e8b78abf6d
2020-05-12 20:45:49 +00:00
PETER LIANG
e65f7a776d Merge "Add the settings content observer for shortcut preference." into rvc-dev am: a85f5dc80b
Change-Id: Id556df579ea8502b6e9e788e561640884da1dd13
2020-05-12 20:43:56 +00:00
Nate Myren
34bb53e29c Merge "Add Auto Revoke log to the App Info page" into rvc-dev am: 0c6037af5f
Change-Id: Id31df5ef00422f26511709be6e10d233521505f8
2020-05-12 19:22:12 +00:00
PETER LIANG
818eda8a79 Merge "Fix that the inconsistent accessibility content pages under Setup Wizard." into rvc-dev am: 7a31f2da60
Change-Id: I0e81255f25a331c152fe23cdf3689f49cc7c632e
2020-05-12 19:21:57 +00:00