Commit Graph

140741 Commits

Author SHA1 Message Date
Sunny Shao
c725c5ba5a Split ChangeReason and decouple it from Observer
Observer is flexible to be used for other scenarios.

Bug: 325144964
Test: atest SettingsLibDataStoreTest
Test: atest com.android.settings.fuelgauge
Change-Id: I50c0c6267b29460efa3861e609d64a4d92db7b89
2024-05-29 11:39:23 +08:00
Chun-Ku Lin
774bbc1ff2 Reduce the number of calls to updateAllPreferences
We call updateAllPreferences in onCreate and onResume. If we always call
the method in onResume, the call in onCreate seemed redundant.

Bug: 327052480
Flag: EXEMPT low risk bugfix
Test: manual (able to see the accessibility screen as before)
Test: atest com.android.settings.accessibility
Change-Id: I40b44ed6b667f7b1375ec0e339fc2b28a3f70dc5
2024-05-29 03:15:15 +00:00
Chun-Ku Lin
a384bb2cbc Merge "Use CheckFlagsRule when the test requires the device's implementation" into main 2024-05-29 03:10:17 +00:00
Jason Hsu
e6c6b24f1e Merge "Add Quick Settings shortcut option into Hearing Devices accessibility settings page" into main 2024-05-29 02:55:37 +00:00
Joseph Vincent
9ebdedd2f6 Merge "Private space auto lock on device restart during setup" into main 2024-05-29 02:12:44 +00:00
Chun-Ku Lin
88414d4e4b Replace Magnification preview
Bug: 326229430
Bug: 324312956
Test: manual (View the image on the Magnification page in DT/LT)
Flag: EXEMPT low risk
Change-Id: I991104a2aaf2768ded9fb57d88a93ae725d60303
2024-05-29 01:44:48 +00:00
Chun-Ku Lin
833bbccd30 Update a11y shortcut images
- Update QS, gesture, volume keys shortcut type images
- Change FAB image to animated image
- Change 2-finger double tap, triple tap animated images
- Fix the alpha value set in the FAB preview

Bug: 324312956
Test: Run and view the images
Test: atest com.android.settings.accessibility
Flag: EXEMPT low risk, resource change
Change-Id: Ic0f1953ca20fc8a3dc7b684f95ee18dae67c4f09
2024-05-29 01:43:44 +00:00
Chun-Ku Lin
0122f8a1dc Use CheckFlagsRule when the test requires the device's implementation
Bug: 341699461
Test: atest com.android.settings.accessibility on next-userdebug build
Flag: TEST_ONLY
Change-Id: I348252519a8af4b7c890b4e8a03752c918c94b94
2024-05-29 01:35:09 +00:00
Austin Wang
309599bd37 Add "icons" search term for Wallpaper & style
"Themed": handled by "theme"
"Themed icon": handled by "icon"
"Themed icons": missing, should be handled by "icons"

Flag: EXEMPT bugfix
Fixes: 328165760
Test: manual
Change-Id: I58dc6e02c995423aa1b5e12e7c0326f57f472248
2024-05-28 15:16:44 -07:00
Alexander Roederer
c512046eb9 Adds modes settings page for bypassing apps
Adds the settings page that a user will reach from a mode settings page
when they tap on "App," to allow  them to select whether all, none, or
priority modes can break through and send notifications.

Bug: 308819928
Bug: 331267485
Flag: android.app.modes_ui DEVELOPMENT
Test: build and test, controller unit tests
Change-Id: I5bcebfca0fc2882f839afdced8d2b817dad14e6c
2024-05-28 22:12:27 +00:00
Nate Myren
7667643ef6 Convert clipboard access to use new APIs
Convert the preferences for the clipboard access
notifications to use the new API values

Bug: 263305143
Test: manual
Change-Id: I3b366ff43afabf5664847040b1fb096caed4ef8c
2024-05-28 20:30:48 +00:00
Kevin Liu
1df39c3d5f Merge "Add strict_mode: false" into main 2024-05-28 20:09:07 +00:00
Julia Reynolds
a5a7c14b0f Merge "Add button for activating modes manually" into main 2024-05-28 20:08:25 +00:00
SongFerng Wang
b462f9fa11 Merge "The pages of sim onboarding flow is wrong." into main 2024-05-28 19:58:55 +00:00
David Jacobo
7b986e7e45 Merge "Revert "settings: Make use of ACTION_NETWORK_PROVIDER_SETTINGS"" into main 2024-05-28 19:38:10 +00:00
Lucas Silva
593ab5ee2d Merge "Fix CommunalPreferenceControllerTest" into main 2024-05-28 19:13:36 +00:00
Bill Yi
c9bd94276d [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 8aa583506f -s ours
am skip reason: contains skip directive

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

Change-Id: I2acb88144d2ea3b5a3ee934d8b337316a842c581
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-28 18:58:56 +00:00
Bill Yi
92d1924f2b [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: f24ce25bf0 -s ours
am skip reason: contains skip directive

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

Change-Id: I3a6f0019697c30170185764243f966983681deb0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-28 18:56:08 +00:00
Bill Yi
9229014769 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-28 18:45:20 +00:00
Bill Yi
2efd6d30fd Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-28 18:45:20 +00:00
Jigar Thakkar
176f1a630a Do not request confirmation by default for private space unlocks
Fix face unlock confirmation button behavior to respect "always
require confirmation" setting. Adjust the description of the
confirmation toggle in private space face unlock settings to
reflect this change.
Screenshot: https://screenshot.googleplex.com/4uHfm9Z3ZE56ZaT.png

Bug: 342383195
Test: Tested manually by flashing local build
Change-Id: I0f742839a862fe66cacad9f5704dbe8b0df3a0c2
2024-05-28 17:59:17 +00:00
Lucas Silva
8b13cd4b6d Fix CommunalPreferenceControllerTest
Migrate test to robolectric, as this test doesn't require a device to
run. This also speeds up the test, and allows for use of roboelectric
shadows.

Fixes: 337417918
Test: atest CommunalPreferenceControllerTest
Flag: EXEMPT fix broken test
Change-Id: I32b2760c98bf527b33a8ccbe46314395a03da1e0
2024-05-28 13:21:58 -04:00
Julia Reynolds
97b462dbf0 Add button for activating modes manually
Fixes: 308819907
Flag: android.app.modes_ui
Test: ZenModeButtonPreferenceControllerTest
Test: atest com.android.settings.notification.modes
Change-Id: Id018d360c648dd948d2f950ca67cfbea71cc5c68
2024-05-28 13:17:43 -04:00
Guojing Yuan
854227055d Merge "[CDM] Catch IllegalArgumentException when association is not found" into main 2024-05-28 16:48:37 +00:00
josephpv
7ef9c46afa Private space auto lock on device restart during setup
After creation of private space value of auto-lock setting is explicitly
set to lock on device restarts. Just before the end of the setup flow
the auto-lock setting is changed to auto-lock on device lock before the
last screen of private space setup.

Bug: 342398315
Test: atest PrivateSpaceMaintainerTest
Change-Id: I8eeb0058c7ecb31d6e30b4cc78ec5877ed316f75
2024-05-28 16:27:09 +00:00
Yining Liu
3e46f1f1c9 Merge changes I081a35c8,I8a84f688,I60b64a0c into main
* changes:
  Clean un-used code for notification cool down
  Add tests for updating Settings Page for Avalanche Suppression
  Update Settings Page for Avalanche Suppression
2024-05-28 15:55:14 +00:00
Treehugger Robot
0dca9f78c5 Merge "Fix Messages onClick." into main 2024-05-28 15:13:23 +00:00
Liahav Eitan
20c78149f0 Increase char limit for add_device_admin_msg
Flag: DOCS_ONLY
Bug: 333040579
Test: None
Change-Id: I46c757f8700ee0ab168a1f68e4213f24f44aacd0
2024-05-28 14:53:09 +00:00
Julia Reynolds
91c67cf728 Fix Messages onClick.
The state of the preference doesn't change until after we get the
callback.

Test: ZenModePrioritySendersPreferenceControllerTest
Flag: android.app.modes_ui
Fixes: 337079247
Change-Id: I1c98561de89e9398f26300bb14710f18991f78f4
2024-05-28 13:42:38 +00:00
Joseph Vincent
8f8bf944e6 Merge "Update strings in private space delete dialog" into main 2024-05-28 13:36:37 +00:00
Himanshu Gupta
9bc1bc3c39 Merge "Do not move to ALL_APPS when default Launcher is not system." into main 2024-05-28 11:41:39 +00:00
Yiyi Shen
5ae060ac00 Merge "[Audiosharing] Update media devices section title in audio sharing" into main 2024-05-28 11:20:48 +00:00
Jason Chiu
d1b0ad25fa Suppress rawData settings from indexing when page is disabled for search
Test: robotest, manual
Fix: 324424783
Change-Id: Ie8423d16df387f13cf35c03005640cfd08a5b492
2024-05-28 17:26:18 +08:00
songferngwang
98efa51681 The pages of sim onboarding flow is wrong.
Switch from SS mode to DSDS mode, the esim status will use the last
status. It causes the condition of page selection is wrong.

Bug: 342972402
Test: atest SimOnboardingPageProviderTest
Change-Id: I8bb0b5f2802ec24f10467bac179ce54d13a9755e
2024-05-28 08:47:23 +00:00
Treehugger Robot
9efdfafb9e Merge "Refer the SoftApCapability cache if getUsableChannels is unsupported" into main 2024-05-28 06:37:06 +00:00
Xinyi Mao
2550fb6dbf Merge "Revert "Fix atest build error in settings.fuelgauge."" into main 2024-05-28 05:27:41 +00:00
Xinyi Mao
d91809b752 Revert "Fix atest build error in settings.fuelgauge."
This reverts commit 3b962e3b9d.

Reason for revert: No need to update long -> int

Change-Id: I060b57c5b8c871ccc938ca84fe1aa916293acada
2024-05-28 05:15:43 +00:00
Bill Yi
cb0a71c275 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1e0ffa104d80321bf562d561b465c8264b158166
2024-05-27 22:10:11 -07:00
Weng Su
8d4eb82d95 Refer the SoftApCapability cache if getUsableChannels is unsupported
- Get SAP band capability from SoftApCapability#getSupportedChannelList

Bug: 272450463
Bug: 338503507
Bug: 340789513
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiHotspotRepositoryTest

Change-Id: I7b792c27bc3c41e78417032f797d57b030d6db72
2024-05-28 13:08:45 +08:00
Bill Yi
8aa583506f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I86bcb14aa95baa917a752c6ea7ca95b703167a1d
2024-05-27 22:07:54 -07:00
Bill Yi
3aba3a26ea Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I25ef4cba885e681ec9c7cbb7e0696e901ea25c34
2024-05-27 22:06:01 -07:00
Bill Yi
f24ce25bf0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0d49889374971412df625e1bfc1a65de6842f44d
2024-05-27 22:02:05 -07:00
Chaohui Wang
33d73862bf Refactor signal strength in SIM status
- Move data logic into repository for better testing
- Check carrier config first, if not shows some items, we don't need to
  load data
- Tests in SimStatusDialogControllerTest will be fixed in later cls

Bug: 337417520
Test: manual - on SIM status
Test: unit test
Change-Id: Iccd209fd455d66d4f6438652ee7481d2a0e72a99
2024-05-28 12:35:10 +08:00
Chaohui Wang
3b925a0cfe Refactor SimStatusDialogRepository
- Move data logic into repository for better testing
- Check carrier config first, if not shows some items, we don't need to
  load data
- Tests in SimStatusDialogControllerTest will be fixed in later cls

Bug: 337417520
Test: manual - on SIM status
Test: unit test
Change-Id: Ia0c32882f0b35ec9154b3da58ac6a7b98c879efc
2024-05-28 11:41:24 +08:00
Yiyi Shen
bce1511a75 [Audiosharing] Update media devices section title in audio sharing
Bug: 305620450
Test: atest
Change-Id: I2451fd11921270f624067d9655cc41b881910a92
2024-05-28 11:38:39 +08:00
Chaohui Wang
659e512b1c Merge "Fix CellDataPreferenceTest" into main 2024-05-28 02:21:30 +00:00
Treehugger Robot
f91bd7ba24 Merge "Extend SfpsEnrollmentFeature for text updating when progress changes" into main 2024-05-27 15:38:22 +00:00
josephpv
cbd8c0b75f Update strings in private space delete dialog
Screenshots:
go/ss/4NA3kFQhhewrfAR.png
go/ss/6VxtgFzAP72V6mi.png
go/ss/3B5ijxeP7U2CUGV.png

Bug: 339781941
Test: Manual
Change-Id: Ia0ae9aa78307cf86f2c20597ed6a6fe1a51e2e2f
2024-05-27 12:59:59 +00:00
Chaohui Wang
a54a9756c0 Merge "Setup backup calling for new UI" into main 2024-05-27 09:03:01 +00:00
Chaohui Wang
49feaed3b7 Merge "Sort in slot selectable subscriptions first" into main 2024-05-27 09:02:40 +00:00