Commit Graph

42073 Commits

Author SHA1 Message Date
YK Hung
b5b0bea16b Merge changes from topic "presubmit-am-57a4c6718ca64e5aa29f52e2a381bac4"
* changes:
  [automerge] [Security] Verify the permission first before querying installed apps 2p: 42d5979f69 2p: cc44f71530
  [automerge] [Security] Verify the permission first before querying installed apps 2p: 42d5979f69
  [Security] Verify the permission first before querying installed apps
2022-04-13 06:01:11 +00:00
Edgar Wang
6cb3a5ff2b Merge changes from topic "presubmit-am-5513fca9a4904e75827e4e4077587542" into tm-mainline-prod am: b6582aa68c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17614846

Change-Id: Ib7fbe47a5f44e47b5c11ca4e98f22ca62bfc00ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 05:01:16 +00:00
Edgar Wang
b6582aa68c Merge changes from topic "presubmit-am-5513fca9a4904e75827e4e4077587542" into tm-mainline-prod
* changes:
  [automerge] Fix LaunchAnyWhere in AppRestrictionsFragment 2p: 90e095dbe3
  Fix LaunchAnyWhere in AppRestrictionsFragment
2022-04-13 04:38:57 +00:00
Edgar Wang
e40e18c10d Merge changes from topic "presubmit-am-020809e13415452dbdf7bee571efa369"
* changes:
  [automerge] Index the gesture options in System Navigation Settings page 2p: 257ebe4a5e 2p: 739a359b07
  [automerge] Index the gesture options in System Navigation Settings page 2p: 257ebe4a5e
  Index the gesture options in System Navigation Settings page
2022-04-13 04:34:04 +00:00
Edgar Wang
2c52db547b Merge changes from topic "presubmit-am-020809e13415452dbdf7bee571efa369" into tm-mainline-prod
* changes:
  [automerge] Index the gesture options in System Navigation Settings page 2p: 257ebe4a5e
  Index the gesture options in System Navigation Settings page
2022-04-13 04:34:04 +00:00
Edgar Wang
8f0606d350 Merge changes from topic "presubmit-am-d486feda52034c51a2dd75eb56afa2c2"
* changes:
  [automerge] Fix "Factory Reset" fails to reset the device 2p: f8739eda93 2p: 8b50a41576
  [automerge] Fix "Factory Reset" fails to reset the device 2p: f8739eda93
  Fix "Factory Reset" fails to reset the device
2022-04-13 04:33:07 +00:00
Edgar Wang
e19f7f4222 Merge changes from topic "presubmit-am-d486feda52034c51a2dd75eb56afa2c2" into tm-mainline-prod
* changes:
  [automerge] Fix "Factory Reset" fails to reset the device 2p: f8739eda93
  Fix "Factory Reset" fails to reset the device
2022-04-13 04:33:07 +00:00
Presubmit Automerger Backend
68c5cbbf29 [automerge] [Security] Verify the permission first before querying installed apps 2p: 42d5979f69 2p: cc44f71530
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17730673

Bug: 227753723
Change-Id: Ia961edd92d096c60e9cc4826dc4d57aa168f9ddb
2022-04-13 03:27:22 +00:00
ykhung
42d5979f69 [Security] Verify the permission first before querying installed apps
Verify the target app "REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" permission first before querying installed apps information to avoid the exposed the installed apps information and improve the performance by applying the early return flow.

Bug: 227753723
Test: make RunSettingsRoboTests
Change-Id: Ib5826b8082f4bf14f93d5ff4d2d332dc395bf9a8
2022-04-13 03:27:06 +00:00
Presubmit Automerger Backend
8eadfcd0d6 [automerge] Fix that device isn't responding for a while when resetting all settings on “Display size and text” page. 2p: 09a2a49bd3 am: 74dd53583b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17614845

Change-Id: I76f447e38c77aff30b587694088d053d50a524c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 01:25:25 +00:00
Julia Reynolds
773c7e937e [automerge] Add missing extra when launching apps 2p: 87bb1b34c5 am: 3d8de3e21f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17721989

Change-Id: I305aa504ba2c4b242078341b9af15e62b8a25a04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 00:52:16 +00:00
PETER LIANG
8bd6647885 Merge "Fix that device isn't responding for a while when resetting all settings on “Display size and text” page." into tm-dev 2022-04-13 00:39:27 +00:00
Presubmit Automerger Backend
74dd53583b [automerge] Fix that device isn't responding for a while when resetting all settings on “Display size and text” page. 2p: 09a2a49bd3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17614845

Bug: 223747686
Bug: 220082104
Bug: 220070773
Change-Id: If66da507a1e49fa2abec0f4a36507cb73fb176b4
2022-04-13 00:38:51 +00:00
Peter_Liang
09a2a49bd3 Fix that device isn't responding for a while when resetting all settings on “Display size and text” page.
Goal:
Probably has the race condition issue between "Bold text" and  the other features including "Display Size", “Font Size” if they would be enabled at the same time, so our workaround is that the “Bold text” would be reset first and then do the remaining to avoid flickering problem.

Bug: 223747686
Bug: 220082104
Bug: 220070773
Test: make RunSettingsRoboTests ROBOTEST_FILTER=TextReadingPreferenceFragmentTest
Change-Id: If1425fe2579bec8dded69680ac73fbfb03c37321
2022-04-13 00:38:44 +00:00
TreeHugger Robot
6a489ca8b7 Merge "Apply only RING_VIBRATION_INTENSITY to ringtone vibrations" into tm-dev am: 7a4f6a5ba3 am: 54f6f65f13
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17474927

Change-Id: I221b376e3d1f844aa970b84936570d6bfd5c70ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 00:36:36 +00:00
TreeHugger Robot
14a3861f0b Merge "Add missing extra when launching apps" into tm-dev 2022-04-12 23:27:14 +00:00
Julia Reynolds
3d8de3e21f [automerge] Add missing extra when launching apps 2p: 87bb1b34c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17721989

Change-Id: Ib37af2c92b1da8de0ce14f643db2e4ad1775408b
2022-04-12 20:21:07 +00:00
Julia Reynolds
87bb1b34c5 Add missing extra when launching apps
As promised in the api docs

Test: AbstractZenModeAutomaticRulePreferenceControllerTest, view
schedule DND page
Fixes: 221423986

Change-Id: I7ddc1b112950da225afa2ba13ebf5df481922177
2022-04-12 16:20:01 -04:00
Julia Reynolds
45dccd14f3 Merge changes from topic "presubmit-am-1e7fa8f458a24c9bb07a3501870823fc"
* changes:
  [automerge] Fix some history issues 2p: 4d46dddbe7 2p: cf0c8f9868
  [automerge] Fix some history issues 2p: 4d46dddbe7
  Fix some history issues
2022-04-12 17:39:55 +00:00
Julia Reynolds
b28925ad48 Merge "Fix some history issues" into tm-dev 2022-04-12 17:39:55 +00:00
Julia Reynolds
7ba6728cd8 Merge changes from topic "presubmit-am-1e7fa8f458a24c9bb07a3501870823fc" into tm-mainline-prod
* changes:
  [automerge] Fix some history issues 2p: 4d46dddbe7
  Fix some history issues
2022-04-12 17:39:55 +00:00
TreeHugger Robot
7a4f6a5ba3 Merge "Apply only RING_VIBRATION_INTENSITY to ringtone vibrations" into tm-dev 2022-04-12 17:24:05 +00:00
Victor Truong
e493fafa88 Disable dream highlight when screensaver is disabled in Settings. am: cd11aa887a am: 9475c3d575
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17712388

Change-Id: I93c4c904c82be8f9caa2c8e278bc8d3bf561594e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 16:26:49 +00:00
Julia Reynolds
9987091312 [automerge] Fix some history issues 2p: 4d46dddbe7 2p: cf0c8f9868
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17710594

Change-Id: Ifd3bfdd17efdd12b4e0aa49a83d96d570d3942dd
2022-04-12 15:16:12 +00:00
Julia Reynolds
cf0c8f9868 [automerge] Fix some history issues 2p: 4d46dddbe7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17710594

Change-Id: Ia4166d749cab1f571f2becec77b3dfae996d5101
2022-04-12 15:16:04 +00:00
Julia Reynolds
4d46dddbe7 Fix some history issues
- Work profile notifs not showing
- Work profile icon is too big

Fixes: 228397748
atest: manually view work profile notifs in history
Change-Id: I76f7ad37bcfcf4ee7c909516f456920b7e19c541
2022-04-12 11:14:30 -04:00
Victor Truong
cd11aa887a Disable dream highlight when screensaver is disabled in Settings.
Bug: 228329639
Test: Manual
Change-Id: Ic6d9664cc800c28327fbcaa1628bb518c07354f2
2022-04-12 13:23:10 +00:00
Jason Hsu
7a5ade7e9f Merge "Write default accessibility service only when user enter into corresponding page." into tm-dev 2022-04-12 10:18:43 +00:00
Presubmit Automerger Backend
5ce913b1a7 [automerge] Write default accessibility service only when user enter into corresponding page. 2p: 2f2f0e982f 2p: e1e4a6747f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17655026

Change-Id: I53be724a2717e6d3c5ee74859e3b6d761d348fa7
2022-04-12 07:12:37 +00:00
Presubmit Automerger Backend
e1e4a6747f [automerge] Write default accessibility service only when user enter into corresponding page. 2p: 2f2f0e982f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17655026

Change-Id: Iced39d75bb57ea4cf0ba12b598c8a74193d9d8b1
2022-04-12 07:12:28 +00:00
jasonwshsu
2f2f0e982f Write default accessibility service only when user enter into corresponding page.
Based on ag/17463205, to help users not to mis-triggered
volume-key-accessibility shortcut, we will only write default
accessibility service when user enter into corresponding service page.

Fix: 228562075
Fix: 226866175
Test: manual test ->
      1. Do not enter into default config accessibility service page during setup wizard then finish setup wizard.
      2. Observe settings value of shortcut targets. It should be null.
Change-Id: I4f26598d646c8e6b312debd03eaaa9d2cd7010ea
2022-04-12 15:10:38 +08:00
YK Hung
6cf229c922 Merge "Replace HashSet with memory efficient ArraySet collection" into tm-dev 2022-04-12 01:21:40 +00:00
Presubmit Automerger Backend
a102030855 [automerge] Replace HashSet with memory efficient ArraySet collection 2p: c5b8287f1e 2p: 6125e7c969
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17680974

Bug: 195306545
Change-Id: I4847317e195d8b79ee114805b143670072b1e436
2022-04-11 17:12:42 +00:00
Presubmit Automerger Backend
6125e7c969 [automerge] Replace HashSet with memory efficient ArraySet collection 2p: c5b8287f1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17680974

Bug: 195306545
Change-Id: Idb78cf85fda8dbaecff1650a90be5bfac043c15c
2022-04-11 17:12:35 +00:00
ykhung
c5b8287f1e Replace HashSet with memory efficient ArraySet collection
https://developer.android.com/reference/android/util/ArraySet

Bug: 195306545
Test: N/A
Change-Id: I3f5831f2c5b5ec5ca50d312331c42eb90def2c61
2022-04-11 17:12:21 +00:00
Tom Hsu
e79605c652 Merge "[Panlingual] Fix settings crash due to no content view." into tm-dev 2022-04-11 15:44:52 +00:00
Tom Hsu
176b24b737 Merge changes from topic "presubmit-am-86edc02cc89b443ca1d69b5d4139164f"
* changes:
  [automerge] [Panlingual] Fix settings crash due to no content view. 2p: db1b6accac 2p: a7377878be
  [automerge] [Panlingual] Fix settings crash due to no content view. 2p: db1b6accac
  [Panlingual] Fix settings crash due to no content view.
2022-04-11 15:44:52 +00:00
Tom Hsu
2cee15a6cb Merge changes from topic "presubmit-am-86edc02cc89b443ca1d69b5d4139164f" into tm-mainline-prod
* changes:
  [automerge] [Panlingual] Fix settings crash due to no content view. 2p: db1b6accac
  [Panlingual] Fix settings crash due to no content view.
2022-04-11 15:44:52 +00:00
Edgar Wang
a8d7f3dede [automerge] Fix "Factory Reset" fails to reset the device 2p: f8739eda93 2p: 8b50a41576
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17684397

Change-Id: I2fa412d8b99e1ce87b1b89f632eb18f477cec167
2022-04-11 13:58:27 +00:00
Edgar Wang
8b50a41576 [automerge] Fix "Factory Reset" fails to reset the device 2p: f8739eda93
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17684397

Change-Id: I614552d70356794daa34623d26924c0a65f91430
2022-04-11 13:58:18 +00:00
Betty Chang
6ebed73fbe Merge "[LE Audio] Broadcast Sink UI" into tm-dev 2022-04-11 13:57:52 +00:00
Edgar Wang
f8739eda93 Fix "Factory Reset" fails to reset the device
when device didn't support PersistentDataBlockManager, Settings will
crash at get PersistentDataBlock service.
So we need to check if device support PersistentDataBlockManager
before call getService.

Fixes: 196634851
Test: manual verify on aosp build.
Change-Id: I5afba5df8c4831499478490b442c0fcf367d23ae
2022-04-11 21:50:01 +08:00
Edgar Wang
8b2165a414 [automerge] Index the gesture options in System Navigation Settings page 2p: 257ebe4a5e 2p: 739a359b07
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17684395

Change-Id: I84b8d5cd0c913106597377a2392489469f8f6c13
2022-04-11 13:29:21 +00:00
Edgar Wang
739a359b07 [automerge] Index the gesture options in System Navigation Settings page 2p: 257ebe4a5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17684395

Change-Id: I0d3b1e9416e0928cae610f1b36825b6f325f6b73
2022-04-11 13:29:12 +00:00
Edgar Wang
257ebe4a5e Index the gesture options in System Navigation Settings page
Fixes: 167536360
Test: manual verify & robotest
Change-Id: Ie1a24a7206153dc1405f8a28369a6bade11ddd39
2022-04-11 21:05:37 +08:00
tom hsu
3558492c55 [automerge] [Panlingual] Fix settings crash due to no content view. 2p: db1b6accac 2p: a7377878be
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17684392

Bug: 228563549
Change-Id: I0da02d0abc2eb416c05194748366b8b2e25fc607
2022-04-11 11:11:06 +00:00
tom hsu
db1b6accac [Panlingual] Fix settings crash due to no content view.
- Sometimes, listview may not created instantly, so move the action of
   addHeaderView after fragment finished the onResume;

Bug: 228563549
Test: local
Change-Id: Ie5d53c962bed35783decd374c743a168a98cbf6a
2022-04-11 19:10:18 +08:00
Presubmit Automerger Backend
301f134325 [automerge] [LE Audio] Broadcast Sink UI 2p: a56e198c61 2p: 81fe82cadd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17442209

Bug: 228274114
Change-Id: I98c0fe27e795c2115f7dd725eeda315497a724ad
2022-04-11 08:19:04 +00:00
Presubmit Automerger Backend
81fe82cadd [automerge] [LE Audio] Broadcast Sink UI 2p: a56e198c61
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17442209

Bug: 228274114
Change-Id: I327f34d0ffc5270d0869e20a4345d5f95adf42ec
2022-04-11 08:18:56 +00:00
changbetty
a56e198c61 [LE Audio] Broadcast Sink UI
- Add dialog for Broadcast and find broadcast source

 - Add Activity for find broadcast source

Bug: 228274114
Test: Manual test
Change-Id: I830efc3514fc42aaa4e53f491ed3a7459bd9bb41
2022-04-11 08:15:10 +00:00