Commit Graph

60448 Commits

Author SHA1 Message Date
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
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
60920beb86 Merge "Remove the xml for bubble pref in developer options" into rvc-dev 2020-05-12 20:15:49 +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
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
311ff0c1ea Merge "String changes in the cross profile settings page" into rvc-dev 2020-05-12 15:13: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
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
b0230a6106 Merge "Rearrange styles and remove the same attributes as the parent style" into rvc-dev 2020-05-12 09:33:54 +00:00
Tsung-Mao Fang
d6c88649f6 Fix broken test cases
Test: Run robo test
Fix: 127602715
Change-Id: Idec3351b76801de98fac502ea59b2396a60df937
2020-05-12 16:57:05 +08:00
TreeHugger Robot
defa38c7ae Merge "Revise the text limit of volume shortcut key." into rvc-dev 2020-05-12 08:49:40 +00:00
Peter_Liang
beb7d8485d Revise the text limit of volume shortcut key.
Revise the char limits as 100.

Bug: 156268057
Test: manual test
Change-Id: I76b9dd5adf5201d6640c7023c487a8205a56bc9a
2020-05-12 14:20:49 +08:00
Peter_Liang
785af0c15a 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
Change-Id: Icee0bb50f88987ea6c8a0be59bd936628a32ca1e
2020-05-12 14:15:54 +08:00
Jason Chiu
8ac1e4d49d Update icon tint color when the user toggles Dark theme
- Reload theme in slice provider when Dark theme mode changes for slices
- Reload theme in onCreate of Panel activity for its non-slice header
- Remove applyTheme from individual slices

Test: robotest
Fixes: 153700819
Change-Id: I40a7d2817c4b9100d7b2f2962a69c8a9ce6f7906
2020-05-12 10:58:54 +08:00
Tim Peng
550fd3ef9a When only one device is selected in dynamic group, the device should be disabled
-Check if device id is in selected group rather than comparing client package name
-Add test cases

Bug: 154916764
Test: make -j50 RunSettingsRoboTests
Change-Id: I7364a9e3d807bbfc6b26b8212ab2da67ea329582
2020-05-12 01:44:56 +00:00
Nate Myren
0c6037af5f Merge "Add Auto Revoke log to the App Info page" into rvc-dev 2020-05-11 22:37:04 +00:00
Kholoud Mohamed
bcbd9158d6 String changes in the cross profile settings page
Fixes: 155771527
Test: visually tested the string changes.
Change-Id: Idcde93e2035bb8d3d82213befb652aa29aa12efe
2020-05-11 18:38:05 +01:00
TreeHugger Robot
57150e5930 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-11 17:31:56 +00:00
TreeHugger Robot
ca5d1ee340 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-11 17:30:09 +00:00
Jay Aliomer
9073b2f968 Unable to select twilight scheduling after enabling location
Test: run settings tests
Change-Id: I74945dd69f0da9733ee0a5e27ab63852df9544e9
Bug: 153115261
2020-05-11 16:31:42 +00:00
Jason Chiu
7475ebe93d Rearrange styles and remove the same attributes as the parent style
Bug: 152831413
Test: visual
Change-Id: I9264d9385e923ee527714a28dcaf7cb7200d6007
2020-05-11 19:19:28 +08:00
Bill Yi
09194c9b92 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I3032d6a7cd3ac270c7b559a6dd67236e0e8c1530
2020-05-11 07:47:48 +00:00
PETER LIANG
7a31f2da60 Merge "Fix that the inconsistent accessibility content pages under Setup Wizard." into rvc-dev 2020-05-11 07:28:18 +00:00
Bill Yi
44df9f25de Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I8e37eb79c2b8121dc3962579fae05acd6babbbef
2020-05-11 06:43:45 +00:00
Peter_Liang
0cba2fe133 Fix that the inconsistent accessibility content pages under Setup Wizard.
Root cause:
Exist the inconsistent conditions.

Next:
1. Move all the condition related to description to the back fragment to determine whether to show the footer preference or not.
2. Add extras relate to animated image.

Bug: 156180932
Test: manual test
Change-Id: I56d4ead6c5121637a2da2e074ef9bff2a8146732
2020-05-11 11:22:36 +08:00
tim peng
72948ab538 Merge "Update "Play media to" in Sound Settings" into rvc-dev 2020-05-11 02:45:27 +00:00
TreeHugger Robot
9454ab07a8 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-11 01:26:37 +00:00
TreeHugger Robot
2356a1abe1 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-11 00:29:25 +00:00
Bill Yi
6dcb8e29e5 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I698e6aa1ee5ce76a18534d4e3e8e4e114d7a8edd
2020-05-10 17:08:33 -07:00
Bill Yi
61bc2d335f Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Idea84014aa3380a169636718ef1ff40069d9db9e
2020-05-10 16:25:15 -07:00
Arc Wang
e9e0b3fbfb [Wi-Fi] Fix connected to notification string bug
Should not reuse the bluetooth connected to string,
it's for a device not a network.

Bug: 156084653
Test: manual visual
Change-Id: I7de93b57c4a9f7df1baa942e6e97cadeafe21324
2020-05-09 16:23:04 +00:00
Jason Hsu
7af9c771bd Merge "Change to use ComponentName instead of String in log." into rvc-dev 2020-05-09 15:55:07 +00:00
jasonwshsu
d2572c3295 Change to use ComponentName instead of String in log.
* align framework log to use the same format in ag/11250012

Bug: 151285965
Test: manual test
Change-Id: Ia76e3d88c116ffa37fb022aed2866acc0f315bd9
2020-05-09 22:18:18 +08:00
TreeHugger Robot
37d7e20c3a Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-08 18:10:33 +00:00
Mehdi Alizadeh
bddb0eb3dd Merge "Hides gesture nav settings page from search, when not available" into rvc-dev 2020-05-08 17:29:56 +00:00
TreeHugger Robot
9b2f448b7f Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-08 16:46:30 +00:00
Bill Yi
3e2c20e730 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I8f1391a9c6bb4c8809b70bc3369cdbb6f7dec620
2020-05-08 16:38:19 +00:00
Bill Yi
bb6f69087b Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I1b94fd207672f83f491d95ca185f0675992875c4
2020-05-08 15:35:31 +00:00
Kweku Adams
71c78ed42b Merge "Hide RESTRICTED bucket from list when off." into rvc-dev 2020-05-08 15:01:03 +00:00
Jason Hsu
5d0e5f7624 Merge changes I3a0066e6,I080a538e into rvc-dev
* changes:
  Add the string for caption size
  Add the string for accessibility shortcut
2020-05-08 10:13:31 +00:00
TreeHugger Robot
83cc03d0b1 Merge "Add low battery level for case" into rvc-dev 2020-05-08 08:39:39 +00:00