Commit Graph

140443 Commits

Author SHA1 Message Date
Roy Chou
c9d3b39a62 refactor(magnification suw): hide follow typing toggle in setup wizard
Originally we cache mFollowingTypingSwitchPreference in fragment so in
ToggleScreenMagnificationPreferenceFragmentForSetupWizard we can set the
preference visible to false to hide it. After creating MagnificationFeaturePreferenceController,
the MagnificationFollowTypingPreferenceController can extend it and
check isInSetupWizard internally then dicide whether to hide. Therefore,
we don't need to cache mFollowingTypingSwitchPreference in fragment
and let the fragment control the preference visibility anymore.

Bug: 340721852
Flag: NONE
Test: manually
      atest MagnificationFollowTypingPreferenceControllerTest
      atest ToggleScreenMagnificationPreferenceFragmentForSetupWizardTest
      atest ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: I44f7f0589b2df3d83a27139323fc68a0561f1cfa
2024-05-21 03:36:51 +00:00
Roy Chou
3761f61c7e chore(magnification suw): hide always on toggle in setup wizard
Bug: 340721852
Flag: NONE
Test: manually
      atest MagnificationAlwaysOnPreferenceControllerTest
Change-Id: I39868ac1d4423584e43473683db20a2259311049
2024-05-21 03:36:38 +00:00
Roy Chou
9780020f6b chore(magnification suw): create MagnificationFeaturePreferenceController
Add a new abstract class MagnificationFeaturePreferenceController
that extends TogglePreferenceController, to wrap inSetupWizard
setter/getter. Then for magnification feature preference controllers
like alwaysOn or followTyping, they can just check isInSetupWizard to
decide whether hiding in setup wizard.

Besides, in ToggleScreenMagnificationPreferenceFragment we cache a flag
mInSetupWizard when fragment created, so we can pass the info to the
preferece controllers when creating them.

Bug: 340721852
Flag: NONE
Test: build pass
Change-Id: I05c59a766219862117d2a6ede775d68a4c3dedac
2024-05-21 03:36:06 +00:00
Chaohui Wang
7a8d8fd091 Reapply "Migrate AppOps"
This reverts commit 19b01bd68b.

Bug: 341016088
Test: manual - on Special app access
Change-Id: I000274ae9c725f848e1c8910120ba886fcc5be95
Merged-In: I000274ae9c725f848e1c8910120ba886fcc5be95
2024-05-21 03:20:04 +00:00
Omer Ozer
4506b6287a Add get permissions flag to package info query in factory
reset preference controller.

Bug: 341802418
Test: manual
Change-Id: I1603662b706ec94e109afe957b585577876c8e75
2024-05-21 01:30:27 +00:00
Joshua McCloskey
f6849078c5 UDFPS Enrollment Refactor (5/N)
Adding minor touch ups, such as starting the
FingerprintEnrollConfirmation when enrollment has been completed.

Bug: 297082837
Test: atest
Change-Id: I7b3edebb141bdb3e4648f71527d45dc5a0185b60
2024-05-20 23:21:57 +00:00
Treehugger Robot
1a5eb3ed59 Merge "Avoid update the le audio mode as bluetooth turn off" into main 2024-05-20 22:36:48 +00:00
Joshua Mccloskey
03a0812931 Merge "UDFPS Enrollment Refactor (4/N)" into main 2024-05-20 21:53:16 +00:00
Julia Reynolds
2bd1799fb9 Migrate people settings to new modes UI
Flag: android.app.modes_ui
Bug: 337079247
Test: make -j RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.notification.modes
Change-Id: If5e7b82a006e856b4aceca7acdfc8cc0d11092a7
2024-05-20 21:29:13 +00:00
Julia Reynolds
f60595d0d5 Merge "Fix test failures" into main 2024-05-20 18:24:42 +00:00
Lais Andrade
73e7243a4c Merge "Update haptic settings owners" into main am: 1c3e44a2da am: e2d8c52b71
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3093005

Change-Id: Icc17a5ea395823823dc92520ee9b41660f74c135
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 18:19:49 +00:00
Lais Andrade
e2d8c52b71 Merge "Update haptic settings owners" into main am: 1c3e44a2da
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3093005

Change-Id: I8e673cf6ddb5a805e8f9e759f39fa8d5e57c1191
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 17:35:43 +00:00
Julia Reynolds
44044a1898 Fix test failures
Test: ZenModesBackendTest
Flag: android.app.modes_ui
Fixes: 341693051
Change-Id: I4149db371a85abe8008c10cf76a84206f75143f6
2024-05-20 13:31:40 -04:00
Lais Andrade
1c3e44a2da Merge "Update haptic settings owners" into main 2024-05-20 17:11:17 +00:00
Song Chun Fan
b17c5b2489 Merge "Rmove unuseful test for PackageMonitor change" into main 2024-05-20 16:59:11 +00:00
Lais Andrade
6eeddc8c29 Update haptic settings owners
Bug: 338334977
Change-Id: I789268bda12a5cc6ff49b0adfaf41a42e52d64d6
Test: N/A
2024-05-20 16:54:06 +00:00
Yuri Lin
fdb948df20 Add mode names to search results dynamically.
The resulting search result takes the user to the modes aggregator page.

Flag: android.app.modes_ui
Bug: 332937523
Test: ZenModesListPreferenceControllerTest, manual with modes_ui on and off
Change-Id: I7372307cb995667f6f7234530a3140f5295ab06a
2024-05-20 11:29:29 -04:00
TYM Tsai
9fc6c88697 Rmove unuseful test for PackageMonitor change
In PackageMonitor, it is no longer based on broadcast receivers to
listen package added/removed/... events. Therefore the verification
should be removed.

Bug: 340387113
Test: atest SettingsRoboTests:com.android.settings.accessibility.AccessibilitySettingsTest
Change-Id: I7b0d46add06c74f1b9bf1097f92dececa9b130de
2024-05-20 15:13:37 +00:00
Treehugger Robot
1b1c159d9f Merge "Kill tasks that are neither visible nor in focus" into main 2024-05-20 14:27:25 +00:00
Julia Reynolds
1be83b6466 Merge "Some minor additions (icons, sorting) to modes" into main 2024-05-20 12:34:12 +00:00
Edgar Wang
57dc45cc4c Merge "Adjust emergency settings position and reduce the gap between 2 groups" into main 2024-05-20 12:22:15 +00:00
Faye Yan
222b92b203 [automerger skipped] Revert "Add Voice activation apps into Settings->Apps->Special a..." am: a7065f4d36 -s ours
am skip reason: Merged-In I4977e7d543cb800fc9fb6962bba3afebb9480dcc with SHA-1 d0b0881810 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27394025

Change-Id: I94e992d17b3e6b6be0683b7529ab440098acf7dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 10:32:58 +00:00
Faye Yan
cd219f00ab [automerger skipped] Revert "Add Voice activation apps into Settings->Apps->Specific app->AppInfo->Voice activation apps" am: f6b5904511 -s ours
am skip reason: Merged-In Idfabfd48f45d2ace7de9f8498181f281ad0358a1 with SHA-1 b5aab77162 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27394024

Change-Id: Iadd13a308e8fdef5c1f1935d3f858402be45dfb3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 10:32:52 +00:00
Edgar Wang
7f0a1b66c7 Adjust emergency settings position and reduce the gap between 2 groups
Bug: 341045630
Change-Id: I7cade71626a776dfe0ce0cf9b864e6bb9c60a068
Test: visual
2024-05-20 09:36:23 +00:00
Edgar Wang
46119c9cbb Make Choose Profile dialog scrollable
Fixes: 326846585
Test: manual
Change-Id: I15d25c7c123bfdd4f550fe923e3058ef576be653
2024-05-20 09:33:26 +00:00
Chaohui Wang
c6b49c4f99 Merge "Sort selectable subscriptions by sim slot index" into main 2024-05-20 08:35:41 +00:00
Edgar Wang
ea5e44f1d7 Merge changes I53ea81ce,I84505033,I4bd5c343 into main
* changes:
  Apply round corner group background for large screen
  Update suggestion card padding in Homepage
  Update Search Bar layout in Homepage
2024-05-20 08:29:03 +00:00
Edgar Wang
542cd44266 Apply round corner group background for large screen
Bug: 340510477
Test: manual

Change-Id: I53ea81cee3b6bf543a71237030a61df6aef0e967
2024-05-20 06:49:24 +00:00
Edgar Wang
d0a35f619d Update suggestion card padding in Homepage
Bug: 340759836
Test: visual
Change-Id: I845050339f85d7459bd7c69f0a538d5c85651ec6
2024-05-20 06:49:24 +00:00
Edgar Wang
66c16d57af Update Search Bar layout in Homepage
Bug: 340513864
Bug: 340773713
Bug: 340799397
Bug: 340759836
Test: visual
Change-Id: I4bd5c3438aa55ca764f61b180a37c10206ee78be
2024-05-20 06:49:12 +00:00
Treehugger Robot
3c32c3e2f1 Merge "Fix CdmaSystemSelectPreferenceControllerTest" into main 2024-05-20 06:30:02 +00:00
Chaohui Wang
c8b89dde09 Fix CdmaSystemSelectPreferenceControllerTest
Fix: 337417917
Test: unit test
Change-Id: If215f04ad09c44a3ef7d89b0bac5116026463e4e
2024-05-20 13:34:38 +08:00
Chaohui Wang
8c1eaf73cf Merge "Reapply "Migrate AppOps"" into main 2024-05-20 04:45:27 +00:00
Faye Yan
a7065f4d36 Revert "Add Voice activation apps into Settings->Apps->Special a..."
Revert submission 25108596-va-special-access

Reason for revert: voice activation is not going in V

Reverted changes: /q/submissionid:25108596-va-special-access

Bug: 306447565
Bug: 393727896

Test: presubmit

Change-Id: I4977e7d543cb800fc9fb6962bba3afebb9480dcc
Merged-In: I4977e7d543cb800fc9fb6962bba3afebb9480dcc
2024-05-20 11:56:48 +08:00
Faye Yan
f6b5904511 Revert "Add Voice activation apps into Settings->Apps->Specific app->AppInfo->Voice activation apps"
This reverts commit 7f2fbc2e4c.

Reason for revert: voice activation is not going in V

Test: manual - on Special app access
Change-Id: Idfabfd48f45d2ace7de9f8498181f281ad0358a1
Merged-In: Idfabfd48f45d2ace7de9f8498181f281ad0358a1
2024-05-20 11:56:47 +08:00
Chaohui Wang
ec8ce02ba4 Sort selectable subscriptions by sim slot index
To match the sorting order in
SubscriptionManagerService.getAvailableSubscriptionInfoList.

Fix: 340361264
Test: manual - on SIMs
Test: unit test
Change-Id: I06b6c61304f9e6c9515b5f989294417ac3f82a60
2024-05-20 11:38:58 +08:00
Chaohui Wang
fb48926fe8 Reapply "Migrate AppOps"
This reverts commit 19b01bd68b.

Bug: 339846642
Test: manual - on Special app access
Change-Id: I000274ae9c725f848e1c8910120ba886fcc5be95
2024-05-20 10:39:30 +08:00
Chaohui Wang
35d91e9870 Fix EnabledNetworkModePreferenceControllerTest
Fix: 337418033
Test: atest EnabledNetworkModePreferenceControllerTest
Change-Id: I5614a6d863b804442cbb14c1fbc136db9d800a28
2024-05-20 02:18:56 +00:00
Chris Antol
9c0654daea [automerger skipped] Merge "Fix NPE in AudioSwitchPreferenceController" into 24D1-dev am: c4c5ad5642 -s ours
am skip reason: Merged-In Ic97d1a6269a6d98ffd15a9b512f6ae24ff1c5b5e with SHA-1 7ac80f0a0a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27342577

Change-Id: I0a070c63cd6e8da2903fa0a75a4cac78632d5eeb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 16:39:25 +00:00
Chris Antol
afade2c4c2 [automerger skipped] Fix NPE in AudioSwitchPreferenceController am: f5cc663a8a -s ours
am skip reason: Merged-In Ic97d1a6269a6d98ffd15a9b512f6ae24ff1c5b5e with SHA-1 7ac80f0a0a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27342577

Change-Id: I3e6a143158acf9708cb29de92d1bcd2e4706c251
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 16:39:20 +00:00
Chris Antol
c4c5ad5642 Merge "Fix NPE in AudioSwitchPreferenceController" into 24D1-dev 2024-05-17 16:19:32 +00:00
Aurélien Pomini
5c8d8a295b Merge "Remove old contrastDialog from dev options" into main 2024-05-17 16:10:36 +00:00
ELIYAZ MOMIN
67c0cd96d9 Revert "Migrate AppOps" am: 19b01bd68b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27382787

Change-Id: Iaa26113d70e2ee8792aa75bc625b2c68bc50f81d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 14:52:17 +00:00
Julia Reynolds
b42553dccc Some minor additions (icons, sorting) to modes
Test: manually viewing pages
Flag: android.app.modes_ui
Fixes: 331429435
Fixes: 308819461
Bug: 322373473
Change-Id: I17e6df82e17a4cfadc2948258829746cdb5473db
2024-05-17 14:21:54 +00:00
Manish Singh
9447b63197 Kill tasks that are neither visible nor in focus
Bug: 336754145
Test: manual
Change-Id: I559886b172c0f2e6a5d9882f8109b8d51644315c
2024-05-17 13:22:42 +00:00
Oli Thompson
383b7960f1 Backup connected apps settings
Save the preference for connected apps for backup and restore

Flag: android.app.admin.backup_connected_apps_settings
Bug: 175067666
Test: manual

Change-Id: Ic46fbd1ab82f551ecf89caf800e41d6afe48fc68
2024-05-17 13:18:29 +00:00
ELIYAZ MOMIN
19b01bd68b Revert "Migrate AppOps"
Revert submission 27392016-cherrypick-AppOpsController-AppOps-w48m53c1or

Reason for revert: <Potential culprit for b/341210811- verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.>

Reverted changes: /q/submissionid:27392016-cherrypick-AppOpsController-AppOps-w48m53c1or

Change-Id: Ib9813a48170f4ef38de9eee811c677ad75f5401e
2024-05-17 10:48:57 +00:00
Yiyi Shen
66b69fbbb8 Merge "[Audiosharing] Migrate feature from overlay to Settings" into main 2024-05-17 09:30:14 +00:00
Xinyi Mao
4f1920f215 Merge "Update view alpha to improve text color constract in Battery usage" into main 2024-05-17 08:39:08 +00:00
Manish Singh
29cd25e8a8 Merge "Apply the AlertDialog theme" into main 2024-05-17 08:08:44 +00:00