Commit Graph

60932 Commits

Author SHA1 Message Date
Bonian Chen
9a39343b6c [Settings] Avoid from redraw UI when first time onResume am: 17ad56b3fc
Change-Id: I320397098a349fc64bfd318add8baf55afde019c
2020-05-13 13:53:29 +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
1cace42fa6 Merge "Update icon tint color when the user toggles Dark theme" into rvc-dev am: 8224a5ad3d
Change-Id: I4026116f951443626cea1e4a444bf89de49f56d7
2020-05-13 09:59:44 +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
0abfe5743c Merge "Add the settings content observer for shortcut preference." into rvc-dev am: 31e6002ee8
Change-Id: I14ed7773be0ecfff4fedeb55fa0f2b69a38cffab
2020-05-13 09:02:46 +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
e1edf91c71 Merge "Show the app pinning description after user enables it" into rvc-dev am: 0cc66ea23c
Change-Id: Iee1dfc45d2646ad5be91352f152378315e4fcec9
2020-05-13 08:56:29 +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
Tim Peng
9a70887d75 Refine layout for output switcher panel
Bug: 156045699
Test: manual test
Change-Id: Ic889c0e755086e7d48c9a493f4ee5a8e394fdbe5
2020-05-13 15:20:54 +08: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
1b131510b7 Merge "Allows to launch only authenticator owned activities" into rvc-dev am: dfb3f561ea
Change-Id: I0b74053bd27231a4a526e7edf12b3033d8d4b3f8
2020-05-13 05:29:35 +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
f123452437 Merge "Revert "Unable to select twilight scheduling after enabling location"" into rvc-dev am: 6d2ad68e1a
Change-Id: I07fc3eece3f06cb008f6f0eb91a3f46f304d48be
2020-05-13 05:20:48 +00:00
TreeHugger Robot
a3193a7e8c Merge "Revert "Add the settings content observer for shortcut preference."" into rvc-dev am: 9ae5b47aee
Change-Id: I63a4daf0214cee4fe51a0796296629d89561aae3
2020-05-13 05:20:41 +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
7387ba02cc Merge "[Wi-Fi] Quit worker thread of WifiPickerTracker" into rvc-dev am: 02b7b16c93
Change-Id: Idd6cd53763acf62e108af501960fa46d636d86f3
2020-05-13 04:36:44 +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
Pasty Chang
d6117eb0cb Merge "Set the text of accessibility description in suw to center" into rvc-dev am: e060311358
Change-Id: I57cdfd499d8e3832f301fa9a51f7742715a2c03d
2020-05-13 03:09:04 +00:00
Betty Chang
ab167db8b3 Merge "Add setPackage for PendingIntent in SliceHelper" into rvc-dev am: 0c821c7be2
Change-Id: I4d39417a94e25cb52412575ac8db2f0e3117e1fa
2020-05-13 03:08:46 +00:00
Pasty Chang
e060311358 Merge "Set the text of accessibility description in suw to center" into rvc-dev 2020-05-13 03:03:50 +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
9a2efbfb81 Merge "Revert "Create QS media player setting"" into rvc-dev am: cd3cde6169
Change-Id: I4e02b9e4f221eb7c1ef26b5ee4d30c42fc5d6ceb
2020-05-13 02:37:53 +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
TreeHugger Robot
aa8d499942 Merge "Remove the xml for bubble pref in developer options" into rvc-dev am: 60920beb86
Change-Id: I367fb0ce2eaaa2149aea78d2641aa27c2e501315
2020-05-12 20:28:34 +00:00
TreeHugger Robot
60920beb86 Merge "Remove the xml for bubble pref in developer options" into rvc-dev 2020-05-12 20:15:49 +00:00
Jason Hsu
7f1661a4e5 Merge "Fix the issue that title of Color inversion page is wrong" into rvc-dev am: 394f925729
Change-Id: I69101ca523a62b1879b4411049aa6d5640824d0a
2020-05-12 18:24:16 +00:00
Jason Hsu
394f925729 Merge "Fix the issue that title of Color inversion page is wrong" into rvc-dev 2020-05-12 18:04:49 +00:00
Mady Mellor
0216de39d9 Remove the xml for bubble pref in developer options
Fixes: 154246711
Test: build & install settings, check no bubbles option
      in developer options
Change-Id: I50166c21401b9c196d2ec2d039df2c03a080bb4d
2020-05-12 10:46:37 -07:00
Lucas Dupin
d207f1baee Revert "Create QS media player setting"
This reverts commit 665c36eae2.

Reason for revert: New media experience landed
Fixes: 156369996

Change-Id: Icb997a3508cec1e15f523b8ca5b923deacee66b4
2020-05-12 16:51:06 +00:00
Jay Aliomer
e6a070f783 Merge "Unable to select twilight scheduling after enabling location" into rvc-dev am: a5e7d180f1
Change-Id: I1f2da3406d25872f4cfb9df4380ebd7b1681f306
2020-05-12 15:58:14 +00:00
Jay Aliomer
a5e7d180f1 Merge "Unable to select twilight scheduling after enabling location" into rvc-dev 2020-05-12 15:42:49 +00:00
jasonwshsu
112cd4d6d1 Fix the issue that title of Color inversion page is wrong
* Title need to be set from getPreferenceScreenResId(), recover the xml file.

Bug: 156201719
Test: manual test
Change-Id: Ib8b79c320c6a48b1dd679738ddc7022ccaeaed86
2020-05-12 23:35:11 +08:00
Kholoud Mohamed
64a52a32dd Merge "String changes in the cross profile settings page" into rvc-dev am: 311ff0c1ea
Change-Id: I60adf2b3a9ec105a2ab6b145a28a708e22b2adea
2020-05-12 15:29:57 +00:00
Kholoud Mohamed
311ff0c1ea Merge "String changes in the cross profile settings page" into rvc-dev 2020-05-12 15:13:32 +00:00
TreeHugger Robot
54f975c0e0 Merge "Fix broken test cases" into rvc-dev am: defd64c797
Change-Id: I079a37742a0989c54777bf347724692cad571be7
2020-05-12 12:42:32 +00:00
TreeHugger Robot
defd64c797 Merge "Fix broken test cases" into rvc-dev 2020-05-12 12:28:04 +00:00
pastychang
ca42bd3efc Set the text of accessibility description in suw to center
Bug: 155509097
Test: manual
Change-Id: I774ec3b58b9ff9ac38d8063a72d309af70708c84
2020-05-12 19:50:26 +08:00
Stanley Wang
4c5c80d421 Fix the search result "Free up space" doesn't work.
Can't find the target component if add the class name
and package name to the intent. So remove them.

Fixes: 152682394
Test: manual test the search result
Change-Id: I3b69486f6338b458c795860f7b3de9c119cb09de
2020-05-12 19:45:53 +08:00
PETER LIANG
3d05e96083 Merge "Add the settings content observer for shortcut preference." into rvc-dev am: a85f5dc80b
Change-Id: I8dd4747d99ba385f6a17f2d4e9230ee543e5ddaa
2020-05-12 11:42:59 +00:00
PETER LIANG
a85f5dc80b Merge "Add the settings content observer for shortcut preference." into rvc-dev 2020-05-12 11:29:11 +00:00
Jason Chiu
bee14256df Add metrics log for special cases
Support Wifi toggle, Smart storage toggle, Manage storage, Face unlock,
Pixel Imprint

Bug: 137559984
Test: robotest
Change-Id: I3e2e666a8bee1e54d6bd13349b5bedb48fbc42df
2020-05-12 18:06:22 +08:00
changbetty
0383d76a5e Add setPackage for PendingIntent in SliceHelper
Bug: 151645867
Bug: 151646375
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiCallingSliceHelperTest
      make RunSettingsRoboTests ROBOTEST_FILTER=Enhanced4gLteSliceHelperTest
Change-Id: I33c1333f9b5472cdb962b272f6be52a2d2959376
Merged-In: I33c1333f9b5472cdb962b272f6be52a2d2959376
2020-05-12 17:56:48 +08:00
Jason Chiu
fa3ac11a67 Merge "Rearrange styles and remove the same attributes as the parent style" into rvc-dev am: b0230a6106
Change-Id: I567975b0f9cf28fcdbefd47e8ec12d36f6c7d408
2020-05-12 09:43:42 +00:00
Jason Chiu
b0230a6106 Merge "Rearrange styles and remove the same attributes as the parent style" into rvc-dev 2020-05-12 09:33:54 +00:00