Commit Graph

147089 Commits

Author SHA1 Message Date
Bill Yi
065cda3b1f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I199089f90c4ef1f16250a8944526eade2b0f0c80
2025-03-03 20:37:01 -08:00
Matthew DeVore
9e1e4f18a3 Merge changes I95721d9b,Id43d2f10 into main
* changes:
  Connected displays: use Robolectric for tests
  CD settings: minimal DisplayDevice metadata class
2025-03-03 11:10:00 -08:00
Daniel Norman
b0103842f5 Merge "fix(deep): Add intent actions for a11y magnification & flash notif pages" into main 2025-03-03 10:59:32 -08:00
Matthew DeVore
0a583b223e Connected displays: use Robolectric for tests
Use Robolectric for tests so that we don't have to deploy to a device
emulator. TestHandler is not available in Robolectric tests, so this CL
includes a substitute.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: atest <all moved tests>
Bug: b/399743032
Change-Id: I95721d9b90376374da7011e42c70e474b494e992
2025-03-03 10:37:48 -06:00
Matthew DeVore
ded1d1c0d6 CD settings: minimal DisplayDevice metadata class
This saves tests from interacting with DisplayManager completely,
simplifies the Injector API, and makes mocking that API easier. This
addresses the first difficulty I had in converting our tests to
Robolectric.

Bug: b/399743032
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: verify disabled and enabled displays appear correctly in display list fragment
Test: atest ExternalDisplayPreferenceFragmentTest.java
Test: atest ExternalDisplayUpdaterTest.java
Test: atest ResolutionPreferenceFragmentTest.java
Change-Id: Id43d2f108f3e85e6596eb2271b1de6b1afd2338f
2025-03-03 10:37:48 -06:00
Santos Cordon
43e0a04580 Merge "Remove EvenDimmer Toggle" into main 2025-03-03 07:19:04 -08:00
Yiyi Shen
395283839d Merge "[Audiosharing] Block pairing if there exists temp bond device" into main 2025-03-03 04:38:46 -08:00
Jacky Wang
531fe9df34 Use OnPreferenceChangeListener for VibrationMainSwitchPreference
NO_IFTTT=Catalyst only

Bug: 400335057
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: Id517a7246ba797fd6bcd9baeb6169acf913bcf7f
2025-03-03 20:21:52 +08:00
Treehugger Robot
6288eb50da Merge "[Expressive design] Update homepage preference layout" into main 2025-03-03 02:21:05 -08:00
Treehugger Robot
eb2196f913 Merge "[Expressive design] Update homepage injection icons" into main 2025-03-03 02:21:05 -08:00
Treehugger Robot
c794912537 Merge "[Expressive design] Apply colors to homepage icons" into main 2025-03-03 02:21:05 -08:00
Treehugger Robot
8ad06b4667 Merge "[Expressive design] Add colors for homepage icons" into main 2025-03-03 02:21:05 -08:00
Yiyi Shen
d021ff5c00 [Audiosharing] Block pairing if there exists temp bond device
Test: atest
Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui
Bug: 392004799
Change-Id: I641ec995e7e0883b428effe219acb25d2c2da9dd
2025-03-03 17:40:39 +08:00
Yiyi Shen
f4b8e05eeb Merge "[Audiosharing] Update the dialog content in place" into main 2025-03-03 01:27:26 -08:00
Yiyi Shen
dc5ed1f3a1 Merge "[Audiosharing] Disable the profile state change handling" into main 2025-03-03 01:27:26 -08:00
Yiyi Shen
4cbf81ea51 Merge "[Audiosharing] Finish handler activity if no dialog to show" into main 2025-03-03 01:27:26 -08:00
Yiyi Shen
351fca09f9 Merge "[Audiosharing] Refresh the dialog handling onNewIntent" into main 2025-03-03 01:13:47 -08:00
Jason Chiu
9c16e94552 [Expressive design] Apply colors to homepage icons
Bug: 396944193
Test: visual, robotest
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: I6ec24bdf8cb9a6f8454bd837daffe743b3b01526
2025-03-03 00:45:08 -08:00
Jason Chiu
b84b300523 [Expressive design] Update homepage injection icons
Bug: 396944193
Test: visual, robotest
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: I58274fb39b01f9c79abfb2e1e60925edacfa6573
2025-03-03 00:34:54 -08:00
Yiyi Shen
a55759efe0 [Audiosharing] Update the dialog content in place
We used to dismiss the dialog and then re-show to update the dialog
content. This change is to update the content in place by findViewById.

Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: I565d465c5c7d8aaef2a96f5d5f0cb70232a1d7cc
2025-03-03 15:51:10 +08:00
Yiyi Shen
f23bda264a [Audiosharing] Refresh the dialog handling onNewIntent
If an instance of the activity already exists at the top of the current task, the system routes the intent to that instance through a call to its onNewIntent() method, rather than creating a new instance of the activity.

So we need manually trigger the handling logic in onNewIntent to refresh
the dialogs.

Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: Iccb0ef649ee60cb97f7557943760f854d31ccc80
2025-03-03 13:12:10 +08:00
Yiyi Shen
dc78ca78e8 Merge "[Audiosharing] Start join handler activity from receiver" into main 2025-03-02 20:08:44 -08:00
Treehugger Robot
829a924de7 Merge "Validate SSID only on the Submit button" into main 2025-03-02 19:54:34 -08:00
Yiyi Shen
80fab0b84d [Audiosharing] Finish handler activity if no dialog to show
Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: Ibd93f30574bb89cf4fd5e3c9590eb441c74b0cc8
2025-03-03 11:38:13 +08:00
Weng Su
9f943bad9d Validate SSID only on the Submit button
- Avoid to validate the SSID when scanning a QR code

Bug: 399791242
Flag: EXEMPT bugfix
Test: Manual testing
  atest SettingsUnitTests:AddNetworkFragmentTest
Change-Id: I91f010f8708490e397d762c96401569fc13601dd
2025-03-03 10:29:57 +08:00
Jacky Wang
9c8cb4d520 Merge "[Catalyst] Fix UI flicker when toggle Airplane mode" into main 2025-03-02 17:32:53 -08:00
Treehugger Robot
49f129ee11 Merge "Fix disruptive announcement on PIN/Password set up" into main 2025-03-02 17:32:19 -08:00
Treehugger Robot
6e2bddaabd Merge "Stop app when toggling backcompat setting" into main 2025-03-02 16:59:40 -08:00
Jacky Wang
e60bff2d81 [Catalyst] Fix UI flicker when toggle Airplane mode
The UI flicker is because preference change is notified twice after
onActivityResult calls setBoolean: 1) Catalyst framework registers a
common listener on each preference's storage to update UI when
preference value is changed. 2) The PhoneStateListener in
AirplaneModeStorage. Remove the second listener fixes the issue.

NO_IFTTT=Catalyst only

Fix: 395774878
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: I9f93faf1da87d52a82d9019361b17b4b500d79fe
2025-03-03 07:54:42 +08:00
Yiyi Shen
0972a9f3b7 Merge "[Audiosharing] Finish handler activity when dialog destroy" into main 2025-03-02 07:57:51 -08:00
Treehugger Robot
11b78c6fef Merge "[Mag] Keyboard shortcut info shown when physical keyboard present" into main 2025-02-28 18:09:04 -08:00
Xiaomiao Zhang
8e3b899f30 Merge "Implement Web content filters entry point in Supervision Settings dashboard." into main 2025-02-28 17:58:08 -08:00
Xiaomiao Zhang
0dabc23adb Implement Web content filters entry point in Supervision Settings dashboard.
Test: atest SupervisionWebContentFiltersScreenTest
Bug: 395134536
Flag:android.app.supervision.flags.enable_web_content_filters_screen
Change-Id: I5471d8b2956e94b0120ae13bec6187065a5e738a
2025-02-28 16:46:10 -08:00
Matthew DeVore
57265d3575 Merge "Show options greyed out inactive display" into main 2025-02-28 16:31:24 -08:00
Treehugger Robot
d13dc6a1b7 Merge "fix(SUW): Update A11y Settings pages to use new expressive style" into main 2025-02-28 16:26:49 -08:00
Treehugger Robot
5e5a48d560 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-28 16:24:48 -08:00
Treehugger Robot
9731d5ab3a Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-28 16:24:48 -08:00
Treehugger Robot
2719be50de Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-28 16:24:48 -08:00
Treehugger Robot
34d1075280 Merge "Add content description for password&pin credential view." into main 2025-02-28 15:42:39 -08:00
Daniel Norman
843dbecf2c fix(deep): Add intent actions for a11y magnification & flash notif pages
This aligns these accessibility system feature settings pages with other
similar pages, allowing an external caller to launch this page by
sending an intent.

Similar to other accessibility system settings neither page is protected
by a permission since these settings provide no avenue for abuse.

Bug: 388304424
Test: adb shell am start -W -a android.settings.MAGNIFICATION_SETTINGS;
      Observe that the Magnification Settings page is opened.
Test: adb shell am start -W -a android.settings.FLASH_NOTIFICATIONS_SETTINGS;
      Observe that the Flash Notifications Settings page is opened.
Flag: EXEMPT low risk manifest change
Change-Id: Ibe9e1031f30416c5f3fcfb7ae2fe76e8dcd45714
2025-02-28 23:36:16 +00:00
Hao Dong
1cd98d4993 Add content description for password&pin credential view.
Bug: 384635437
Test: manual test with talkback on on settings device unlock
Flag: EXEMPT for a11y big fix
Change-Id: Ie9edd41dca8274cd69700d2a5dfc7b5fe5a7be8e
2025-02-28 21:24:10 +00:00
Ronald Braunstein
c5777c85f6 Merge "[owners] Remove curtislb@google.com from src/com/android/settings/password/OWNERS" into main am: e71f6991e2 am: b84bb949f2
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3510415

Change-Id: I80493e4a77edbb42f39909986d0618a7d48ab005
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-28 08:50:21 -08:00
Ronald Braunstein
b84bb949f2 Merge "[owners] Remove curtislb@google.com from src/com/android/settings/password/OWNERS" into main am: e71f6991e2
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3510415

Change-Id: I9125dced0a067fb2a2badae1b7e06f5b55b0b1f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-28 08:24:37 -08:00
Ronald Braunstein
e71f6991e2 Merge "[owners] Remove curtislb@google.com from src/com/android/settings/password/OWNERS" into main 2025-02-28 07:55:24 -08:00
Kanyinsola Fapohunda
2e1dec9d60 Merge "Remove legacy flag for time feedback" into main 2025-02-28 07:31:15 -08:00
Owner Cleanup Bot
227c77e5c7 Merge "[owners] Remove zachoverflow@google.com from src/com/android/settings/nfc/OWNERS" into main am: 12abcbc552 am: 8203d7a8b2
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3515715

Change-Id: I8d1614a66cde3c8cb065c2f5dd42a3e061a7c3d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-28 07:12:31 -08:00
Owner Cleanup Bot
8203d7a8b2 Merge "[owners] Remove zachoverflow@google.com from src/com/android/settings/nfc/OWNERS" into main am: 12abcbc552
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3515715

Change-Id: I94952bc03b112cde94d01681f919e98d03716b12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-28 06:47:37 -08:00
Owner Cleanup Bot
12abcbc552 Merge "[owners] Remove zachoverflow@google.com from src/com/android/settings/nfc/OWNERS" into main 2025-02-28 06:20:49 -08:00
Yiyi Shen
ab466747e7 [Audiosharing] Start join handler activity from receiver
Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: I7363ba5d7de9049f85dad4ce01467a93af4cb52e
2025-02-28 16:20:17 +08:00
Yiyi Shen
85d20f33be [Audiosharing] Disable the profile state change handling
on Connected devices page during audio sharing.
We have moved the handling to sysui via settingslib

Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: I29dd105f9317f78d8d8dacbb3da72e745286e105
2025-02-28 16:17:37 +08:00