Commit Graph

24170 Commits

Author SHA1 Message Date
Shawn Lin
744ed22075 Merge "Support the ability to enroll face unlock first" into main 2025-03-04 19:06:09 -08:00
Wes Okuhara
79563030fb Settings: Do not show install info for Play Store app
Clicking the "App details" row in the info subpage for the Play Store
app results in a crash. It appears that this app is not considered a
mainline module and has an installer label, but this app is a special
case. Hide the row for the Play Store app.

Bug: 302093631
Test: atest com.android.settings.spa.app.appinfo.AppInstallerInfoPreferenceTest
Flag: EXEMPT bugfix
Change-Id: I291ee3e5dec2075381cb52d041982583cdd04323
2025-03-04 19:05:23 -08:00
Yongshun Liu
20d1a7d1b6 a11y: Add cursor following mode dialog
This a pure UI change that adds a new magnification cursor following
mode dialog behind a flag. The framework support will be added
separately later.

There are 3 modes as the following:
  - continuous mode
  - center mode
  - edge mode

It also renames magnification mode dialog xml file for general purpose
within accessibility.

NO_IFTTT=linter not working

Bug: b/388335935
Flag: com.android.settings.accessibility.enable_magnification_cursor_following_dialog
Test: SettingsRoboTests:com.android.settings.accessibility.ToggleScreenMagnificationPreferenceFragmentTest &&
      SettingsRoboTests:com.android.settings.accessibility.MagnificationModePreferenceControllerTest &&
      SettingsRoboTests:com.android.settings.accessibility.MagnificationCursorFollowingModePreferenceControllerTest
Change-Id: If2672186faf7443cc210d79630b1ea4f3808d7e4
2025-03-04 23:47:56 +00:00
Azhara Assanova
07f9680835 Merge "Update ActionDisabledByAdvancedProtectionDialog" into main 2025-03-04 11:52:18 -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
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
Haijie Hong
ac0cb81ea0 Merge "Check bluetooth key missing count in BluetoothKeyMissingReceiver" into main 2025-03-04 00:37:36 -08:00
Nick Croll
809c055562 Merge "Support apply override feature in SupportPreferenceController" into main 2025-03-03 20:49:09 -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
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
Michael Mikhail
aec68e2372 [catalyst] migrate media controls settings
Flag: com.android.settings.flags.catalyst_media_controls
Fixes: 337243570
Fixes: 389133530
Fixes: 389133114
Test: atest MediaControlsLockScreenSwitchPreferenceTest
Test: atest MediaControlsSwitchPreferenceTest
Change-Id: Ibe8fed064cd6223085764f5125cff45a9bea734d
2025-03-03 22:50:05 +00: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
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
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
Treehugger Robot
c794912537 Merge "[Expressive design] Apply colors to 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
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
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
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
Chun-Ku Lin
877f2a6d35 Use Fake context and settings provider to prevent test flakiness
**Root cause**
The ReduceBrightColorsIntensityPreferenceControllerTest would modify the
settings during test. However, since this is a unit test, it shouldn't
trigger modifying the brightness on the attached test device. Otherwise,
the test would be unstable depends on how stable the device is, which
should be tested by the integration test.

Bug: 397762527
Test: abtd
Flag: EXEMPT test only
Change-Id: I0c0d7327d4356482295121c11c3a1e5ed814ffec
2025-02-28 23:59:34 +00:00
David Padlipsky
99b20e5c36 Map pointer speed slider on mouse page to control mouse speed
Currently, the pointer slider on the mouse settings page is actually
controlling touchpad pointer speed. Modify this to instead control the
mouse pointer speed.

Bug: 398034722
Test: Manually on device
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I66cec4ef0a758e250bab89c194073eb408402431
2025-02-28 19:42:09 +00:00
Kanyinsola Fapohunda
2e1dec9d60 Merge "Remove legacy flag for time feedback" into main 2025-02-28 07:31:15 -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
Yiyi Shen
c9d18f1724 [Audiosharing] Finish handler activity when dialog destroy
Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: I0e7f3da759eb53328b57322b136bb2859cfa2f47
2025-02-27 18:50:36 -08:00
Katie Dektar
e94d88c74e [Mag] Keyboard shortcut info shown when physical keyboard present
Shows keyboard shortcut info in magnification settings when a
physical keyboard is present. See bug for screenshots.

Hides touchscreen info in magnification settings when a touchscreen
is not present.

Adds ShadowInputDevice support for physical full keyboards.

Bug: b/388847050
Test: Manual, atest ToggleScreenMagnificationPreferenceFragmentTest
Flag: com.android.server.accessibility.enable_magnification_keyboard_control
Change-Id: Ib53fbd8f929d1cc8e294f6f04bab405c9bb576a9
2025-02-27 23:00:12 +00:00
Evan Chen
0f9c687bf3 Merge "Remove all associaitons when forget a device in Settings" into main 2025-02-27 13:04:53 -08:00
Yuhan Yang
01d938228a Merge "Add revert to left click to autoclick settings page" into main 2025-02-27 12:24:48 -08:00
Daniel Norman
551534959c Merge "Update the dark theme and EDT description" into main 2025-02-27 11:26:10 -08:00
Yuhan Yang
d96bcf8f85 Add revert to left click to autoclick settings page
Screenshot: go/screenshot-4sdpfqk5rf3u23l
UI mock: go/screenshot-vcu7ui2ar9bjrm6

Bug: 388845719
Test: ToggleAutoclickRevertToLeftClickControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: I813613f3d920ce6795e6750c440449e78d9b9c37
2025-02-27 17:32:41 +00:00
Kevin Liu
eeeefb3d6b Merge "Revert "Temp disable test that contains custom shadow within it"" into main am: 4d38f48c68 am: 7cef5ae136
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3510292

Change-Id: I4f2b0c41460ad2be22116972576a567bf039bd7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-27 08:22:50 -08:00
Matthew DeVore
02fff0174f Show options greyed out inactive display
Test: ExternalDisplayPreferenceFragmentTest
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/398846256
Change-Id: I6020212843c10867447809910a0202b7dbacd909
2025-02-27 09:43:04 -06:00