Commit Graph

147265 Commits

Author SHA1 Message Date
Bill Yi
4a907d6186 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-04 10:54:53 -08:00
Bill Yi
3a03699f69 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-04 10:54:53 -08:00
Srinivas Patibandla
aba8de169b Merge "24Q3: Remove Flag enable_hide_exclusively_managed_bluetooth_device" into main 2025-03-04 10:08:39 -08:00
Jason Chang
00dc2384f4 Merge "(1/n) Fix Wrong button color in lockscreen dialog." into main 2025-03-04 08:40:14 -08:00
Randy Pfohl
0d2afeeb33 Merge "Remove demo button from animation and move to gesture navigation settings fragment" into main 2025-03-04 08:13:40 -08:00
Azhara Assanova
db59b0e729 Update ActionDisabledByAdvancedProtectionDialog
For UI, the dialog was migrated to SpaDialogWindowTypeActivity, which
has a Material3 theme and can support rendering over QuickSettings.

This change also adds logic around which message to show depending on
the received extras for feature ID and the dialog type.

Finally, the dialog will display the support button if the help Intent
URI exists and resolves to an activity. Tests around the support button
will be added in a follow up CL.

Bug: 389080341
Test: Visual test
Test: atest ActionDisabledByAdvancedProtectionDialogTest
Flag: EXEMPT bug fix
Change-Id: I0ed23cd44666a40ad54d755f628cd36ef06cc145
2025-03-04 12:00:50 +00:00
Azhara Assanova
c278a92940 Update preference summary for ExternalSourcesDetails page when Advanced Protection is on
The summary is now "Disabled".

Bug: 398167869
Test: ExternalSourcesDetailsTest
Flag: EXEMPT bug fix
Change-Id: I1d8975671671c31b3176a39e07574ff623ed1a96
2025-03-04 11:49:26 +00:00
Oleg Petšjonkin
d82f6583fb Merge "Fixing resolution announced by Talkback" into main 2025-03-04 02:37:03 -08:00
Haijie Hong
ac0cb81ea0 Merge "Check bluetooth key missing count in BluetoothKeyMissingReceiver" into main 2025-03-04 00:37:36 -08:00
Jason Chang
dd4c8d2d1a (1/n) Fix Wrong button color in lockscreen dialog.
Use SUW API ThemeHelper.shouldApplyGlifExpressiveStyle() to update
AlertDialog style.

Flag: EXEMPT use SUW Expressive style API to check

Bug: 390544548

Test: atest SetupSkipDialogTest
Test: build and manually check the UI and its behaviors
Change-Id: I953270f4dc38796c3b64cba8cc3e84c3f4dcc2f2
2025-03-04 07:07:46 +00:00
Nick Croll
809c055562 Merge "Support apply override feature in SupportPreferenceController" into main 2025-03-03 20:49:09 -08:00
Treehugger Robot
87ca4b0ea8 Merge "[Expressive] Apply expressive style for Factory Reset page" into main 2025-03-03 20:47:45 -08:00
Bill Yi
7ea265bbd5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I58080ea2d161ab82ff70136e47d187ec59d56837
2025-03-03 20:39:10 -08:00
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
Casey Burkhardt
046b5038b9 Ensure accessibility shortcut preference summaries are not focusable
In this case, keyboard focusability causes TalkBack to exclude summary
text from the grouped content surfaced when focusing the top-level list
item.

Bug: 400538324
Test: Manually with TalkBack, including ClickableSpan in summaries
Flag: EXEMPT bug fix
Change-Id: Ib8bc3276aee857121381de7bc4e23e05cd512383
2025-03-03 20:26:05 -08:00
Nick Croll
86626c886a Support apply override feature in SupportPreferenceController
- Let SupportPreferenceController call SupportFeatureProvider#applyOverrides to override Support preference.

Bug: 397691102
Change-Id: I16fefe3058d5f3f318ed4a5aa6aa4868012be505
Test: MANUAL
Flag: EXEMPT no-op new APIs for partner override
2025-03-03 19:01:35 -08:00
Treehugger Robot
0aa7850791 Merge "Use userContext instead of context" into main 2025-03-03 18:24:44 -08:00
Justin Yun
11a995c0c5 [automerger skipped] Revert "Replace system_ext container with system" am: 48b13e5cb1 -s ours
am skip reason: Merged-In I8f52d5f86e6ffaccd624846fbe1ba0a8fc842af6 with SHA-1 1337a88d11 is already in history

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

Change-Id: I44d1d6cca9744ca734b16cd4dbe5bccd8d98c999
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-03 15:13:31 -08:00
Treehugger Robot
26023eb72f Merge "Use Fake context and settings provider to prevent test flakiness" into main 2025-03-03 15:06:43 -08:00
Jan Tomljanovic
6fd9cd771b Merge "Always set source status, even when null." into main 2025-03-03 14:57:37 -08:00
Pawan Wagh
e713abaae7 Use userContext instead of context
- update string to remove word 'forced'

Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Bug: 389696304
Flag: EXEMPT bug_fix
Change-Id: I79d4ec1afbf44131bd53d786c126c14c163a9207
2025-03-03 22:43:09 +00:00
Yomna N
ec412eb802 Merge "Handle failing calls to TelephonyManager" into main 2025-03-03 14:35:40 -08:00
Srinivas Patibandla
6607546f1e 24Q3: Remove Flag enable_hide_exclusively_managed_bluetooth_device
Bug: 324475542
Test: atest: com.android.settings.bluetooth.ConnectedBluetoothDeviceUpdaterTest
Test: atest: com.android.settings.bluetooth.SavedBluetoothDeviceUpdaterTest
Flag: EXEMPT removing com.android.settingslib.flags.enable_hide_exclusively_managed_bluetooth_device
Change-Id: Ibcf78a0a72409371557f07f4c42c676d07c0741b
2025-03-03 12:51:53 -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
Allen Su
25c54af982 Add Confirmation Dialog
Bug: 388418881
Test: atest LocaleListEditorTest
Flag: EXEMPT bug fix
Change-Id: Iacec13b9ef6edd44f9548354888cac39fd6b2892
2025-03-03 17:58:14 +00:00
yomna
3d66e6b6fe Handle failing calls to TelephonyManager
If the phone process has died, Settings cannot make calls to
TelephonyManager. Update the handling of this case to new best
practices.

Bug: b/394077023
Test: m & atest CellularSecurityPreferenceController
Flag: EXEMPT bugfix
Change-Id: I64ecb143d0830873b590ce4a397c398d8b41943f
2025-03-03 17:34:14 +00: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
Haijie Hong
ca69e6fddc Check bluetooth key missing count in BluetoothKeyMissingReceiver
Bug: 388018781
Test: local build and tested. I didn't find a good way to add unit test for reflection
Flag: EXEMPT minor fix
Change-Id: I9cf6e0b3121114c6eca571dff5df3ea4115fbbf1
2025-03-03 15:47:08 +08:00
Shawn Lin
52874a641a Support the ability to enroll face unlock first
Add a new EXTRA value to indicate whehter the face enrollment should be
launched first.

Bug: 370940762
Test: atest BiometricEnrollActivityTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: I7c85212c7fbcc6fe9dd53a26515412623c80ecbf
2025-03-03 06:17:25 +00: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