Commit Graph

19301 Commits

Author SHA1 Message Date
Candice Lo
c8d9ab2c55 Merge "Add content descriptions for Display size and text previews" into main 2025-03-11 19:25:23 -07:00
Shawn Lin
50d8d10c58 Merge "Update strings for summary in device unlock page" into main 2025-03-11 19:25:14 -07:00
Yuhan Yang
3fbdd379bf Merge "Initial commit to add autoclick main toggle" into main 2025-03-11 18:55:09 -07:00
Nikhil Nayunigari
989c4cf698 Merge "Edits ethernet interface details settings subpage with more info" into main 2025-03-11 15:57:38 -07:00
William Leshner
1a8bf51a04 Merge "Move hub mode settings under display." into main 2025-03-11 14:50:35 -07:00
Nikhil Nayunigari
a821ac9185 Edits ethernet interface details settings subpage with more info
Adds IPAddress, Mac address, RX/TX Speed and Metering options to the
settings sub page.

Flag: com.android.settings.connectivity.ethernet_settings

Test: atest SettingsRoboTests:
com.android.settings.network.NetworkProviderSettingsTest

Bug: 390709492

Change-Id: I9a310f94037e089f3d57ff36f77b88edbb0ee1f1
2025-03-11 21:06:55 +00:00
Xiaomiao Zhang
04cfbe0520 Merge "Add SafeSites related content filters preference." into main 2025-03-11 13:53:42 -07:00
Xiaomiao Zhang
bb8b603f94 Add SafeSites related content filters preference.
Test: atest SupervisionSafeSitesPreferenceTest
Test: maunally tested locally
Bug: 401568993
Flag: android.app.supervision.flags.enable_web_content_filters_screen
Change-Id: I556019bdeba5ed459996102217836cda0e3c7f71
2025-03-11 18:15:31 +00:00
Yuhan Yang
a572f89f43 Initial commit to add autoclick main toggle
screen cast: go/screencast-ntc4mdgxndq2mdyxnjcwnhw2yjbhymvlnc0wna

Bug: 391416057
Test: atest ToggleAutoclickMainSwitchPreferenceControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: I6bfa346016d0ab08a61e4813b2c9e16b76281799
2025-03-11 15:49:20 +00:00
Haijie Hong
2b47ca1608 Merge "Reimplement device details UI without ComposePreference" into main 2025-03-11 01:29:30 -07:00
Menghan Li
173dceca7c Merge "refactor(A11yFeedback): Simply feedback logic into menu controller" into main 2025-03-11 00:49:19 -07:00
Haijie Hong
02bd645834 Reimplement device details UI without ComposePreference
Replace ComposePreference with androidx.preference.Preference.

ANC toggle will still use Compose until SegmentedButtonPreference is ready.

BUG: 402036473
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I5114af8f2d679d695b3c5ef4d7be2874245c435e
2025-03-11 14:51:30 +08:00
Menghan Li
a389ff59ab refactor(A11yFeedback): Simply feedback logic into menu controller
Bug: 393980229
Test: atest FeedbackMenuControllerTest
Flag: com.android.server.accessibility.enable_low_vision_generic_feedback
Change-Id: I03af00957c2bcca1d1cc81970eccad6dd69bb4ac
2025-03-11 02:43:32 +00:00
Will Leshner
417b667be4 Move hub mode settings under display.
And add a "when to show" setting.

Bug: 401001786
Test: manually
Flag: com.android.systemui.glanceable_hub_v2

Change-Id: I5f660a1be4bdbb5ab5bb14aa070bfa81b31da6b4
2025-03-10 11:08:57 -07:00
Jacky Wang
6f684c73e0 [MainSwitchPreference] Remove SettingsMainSwitchPreferenceController
NO_IFTTT=Update base class

Bug: 401406987
Flag: EXEMPT refactor
Test: manual
Change-Id: I68093366f63fa5b4184aa7b3dde8bc2609f17dfb
2025-03-11 00:35:01 +08:00
Candice
7270567527 Add content descriptions for Display size and text previews
Bug: 395882764
Test: manually
Test: atest TextReadingPreviewControllerTest
Test: atest TextReadingPreviewPreferenceTest
Flag: EXEMPT bugfix
Change-Id: Ia8702c3d0bdbbfdd554c945000777fcee6714abe
2025-03-10 06:49:43 +00:00
Jacky Wang
2380c5d1e4 [Catalyst] Avoid PreferenceMetadata.getPreferenceTitle call
Bug: 388167106
Flag: EXEMPT refactor
Test: atest
Change-Id: I6491f076c22e5cca4981d4a9270f92cd53173f74
2025-03-10 10:40:59 +08:00
Jacky Wang
8db6c33b46 [Catalyst] Avoid PreferenceMetadata.getPreferenceSummary call
PreferenceMetadata.getPreferenceSummary is implementation detail.

Bug: 388167106
Flag: EXEMPT refactor
Test: atest
Change-Id: I4ec429723f0275c540b4e91e46dfc19fd592c524
2025-03-10 10:20:14 +08:00
Michael Mikhail
0d44396f76 Merge "[catalyst] migrate media controls settings" into main 2025-03-07 07:27:51 -08:00
Jacky Wang
0da0270ff7 [MainSwitchPreference] Remove OnCheckedChangeListener from NightDisplayActivationPreferenceController
Bug: 400335057
Flag: EXEMPT refactor
Test: manual
Change-Id: I97506685a9a188755297c90d15ead738667c8d5c
2025-03-07 19:44:59 +08:00
Jacky Wang
206d27d778 [Catalyst] Extract datastore for VibrationMainSwitchPreference
NO_IFTTT=Catalyst only

Bug: 368360218
Flag: EXEMPT refactor
Test: atest
Change-Id: I3c308b0ed1462a10ddd0daf55f30996a23e747d7
2025-03-07 16:53:26 +08:00
Yongshun Liu
8a333df6fa Merge "a11y: Clean up TestDialogHelper for magnification tests" into main 2025-03-06 20:29:05 -08:00
Zoey Chen
8c3d699dc3 Merge "[Settings] Add test cases for App LocalePicker page" into main 2025-03-06 18:56:36 -08:00
Yongshun Liu
f171468e69 a11y: Clean up TestDialogHelper for magnification tests
This moves TestDialogHelper to a separate file, and cleans up a couple
of magnification tests.

Bug: b/397530196
Flag: EXEMPT refactor
Test: SettingsRoboTests:com.android.settings.accessibility.MagnificationModePreferenceControllerTest &&
      SettingsRoboTests:com.android.settings.accessibility.MagnificationCursorFollowingModePreferenceControllerTest
Change-Id: I68e70061b84dacacf95bc05c784677b8d9794754
2025-03-07 01:55:45 +00:00
Zoey Chen
bf014ead27 [Settings] Add test cases for App LocalePicker page
Test: atest SettingsRoboTests:com.android.settings.localepicker.AppLocaleAllListPreferenceControllerTest
Test: atest SettingsRoboTests:com.android.settings.localepicker.AppLocaleSuggestedListPreferenceControllerTest
Bug: 396285228
Flag: EXEMPT refactor
Change-Id: Icd3bcddda47e38cabdca2702f7a42e6b6b43c67e
2025-03-07 00:58:05 +00:00
Aleksander Morgado
c5136b82fc Merge "Hide 'Reset mobile network settings' if not telephony capable" into main 2025-03-06 06:20:31 -08:00
Candice Lo
f922d9bf95 Merge "Add a content description for the illustration if it is an animation" into main 2025-03-06 01:28:57 -08:00
Chelsea Hao
256a816e18 Merge "Small clean up to get ready for receive state based triggering." into main 2025-03-06 00:57:56 -08:00
chelseahao
ada92d5d6c Small clean up to get ready for receive state based triggering.
1. Maintain a map from device to its source state as they could be different.
2. Ensure thread safety.

Test: atest
Bug: 398700619
Flag: com.android.settingslib.flags.audio_stream_media_service_by_receive_state
Change-Id: I056c80401c12401c78037eb15bed007eb592c12a
2025-03-05 23:40:47 -08:00
Candice
7f70f5b633 Add a content description for the illustration if it is an animation
Since `isAnimatable` is decided in `onBindViewHolder`, we need to register
an onBindListener and update the content description if the current
illustration is an animation.
For the static images, we would like to skip them in Talkback since they
are decorative images.

Bug: 395882764
Test: manually. attach screenshot to the bug
Test: atest ToggleFeaturePreferenceFragmentTest
flag: EXEMPT. bugfix
Change-Id: I57bf96d0891ba553ef29d25ae9489f34b2a832e9
2025-03-06 06:53:48 +00:00
chelseahao
61c41c9ef3 [Audiosharing] Disable flag in test.
Test: atest
Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui
Bug: 400879282
Change-Id: I0f1aeef5419afc0a23564f726e67d36563a91333
2025-03-06 14:51:58 +08:00
Yongshun Liu
e5e3803470 Merge "a11y: Add cursor following mode dialog" into main 2025-03-05 18:04:17 -08:00
David Padlipsky
d83aa9b83c Merge "Map pointer speed slider on mouse page to control mouse speed" into main 2025-03-05 11:52:40 -08:00
Chun Zhang
f7a128496c Add WearSafetySource (Without Listener)
Bug: 389841524
Test: TreeHugger
Test: manual
Test: atest SafetySourceBroadcastReceiverTest
Test: atest LockScreenSafetySourceTest
Test: atest ActiveUnlockStatusUtilsTest
Test: atest WearSafetySourceTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: I7f4b41bf33d1e0fb7988f756a466e4d80bcec25e
2025-03-05 17:31:26 +00:00
Daniel Huang
2871b8dfce Merge "Add Confirmation Dialog" into main 2025-03-05 05:51:36 -08:00
Azhara Assanova
fe0ee75515 Merge "Update preference summary for ExternalSourcesDetails page when Advanced Protection is on" into main 2025-03-05 03:47:43 -08:00
Aleksander Morgado
e96d71fc41 Hide 'Reset mobile network settings' if not telephony capable
The entry is hidden either via the build-time
config_show_sim_info=false boolean flag, or when not
declaring the PackageManager.FEATURE_TELEPHONY_DATA feature flag.

Bug: 399208058
Test: mm && atest NetworkResetPreferenceControllerTest
Flag: EXEMPT bugfix

Change-Id: I178a0cae9d4ffd1ea4492a6b1feca697373d6e20
2025-03-05 00:43:11 -08:00
Menghan Li
86fa16ba52 Merge changes from topics "A11yFeedback1P", "A11yFeedbackTopLevelPage", "AccessibilityPageIdFeatureProvider" into main
* changes:
  refactor(A11yFeedback): Rename AccessibilityMetricsFeatureProvider
  feat(A11yFeedback): Add feedback entry for downloaded Accessibility
  chore(A11yFeedback): Removing Legacy Android M Menu Behavior
  feat(A11yFeedback): Implements page ID to feedback bucket ID mapping
2025-03-05 00:06:01 -08:00
Menghan Li
b511fe690b refactor(A11yFeedback): Rename AccessibilityMetricsFeatureProvider
The AccessibilityMetricsFeatureProvider currently provides page IDs
derived from component names, primarily for metrics purposes.
However, its functionality should be expanded to also support
feedback needs, not just metrics collection, by returning
appropriate settings enum values.

Bug: 393980229
Test: atest AccessibilityMetricsFeatureProviderGoogleImplTest
Flag: com.android.server.accessibility.enable_low_vision_generic_feedback
Change-Id: I2d64db866010ae5e3c6a9738f92860df3d0b86aa
2025-03-05 05:25:05 +00:00
Menghan Li
9ffca7cbfc feat(A11yFeedback): Add feedback entry for downloaded Accessibility
This entry point allows users to access in the action bar.
Visibility is controlled by the aconfig and FeedbackManager#isAvailable

Bug: 393980229
Test: Manual testing on Pixel and non-Pixel devices
Test: atest ToggleFeaturePreferenceFragmentTest
Flag: com.android.server.accessibility.enable_low_vision_generic_feedback
Change-Id: Ie6dfb6a887fe5a894622e86bab39878f8adea758
2025-03-05 05:24:38 +00:00
Menghan Li
c26eb7fd24 feat(A11yFeedback): Implements page ID to feedback bucket ID mapping
This change adds a new API to a Pixel overlay feature provider,
allowing Android to map page IDs to feedback bucket IDs.

Bug: 393980229
Test: Manual testing for Pixel and non-Pixel overlay in real device
Test: atest AccessibilitySettingsTest
            FeedbackManagerTest
Flag: com.android.server.accessibility.enable_low_vision_generic_feedback
Change-Id: I8a110b08816cac9c8a8e8c3e1218530fffb6f121
2025-03-05 05:23:00 +00:00
Shawn Lin
10cf921fb7 Update strings for summary in device unlock page
Bug: 370940762
Test: atest FaceStatusUtilsTest
            FingerprintStatusUtilsTest
            ScreenLockPreferenceDetailsUtilsTest
	    FaceSafetySourceTest
	    FingerprintSafetySourceTest
	    FaceStatusPreferenceControllerTest
	    FingerprintStatusPreferenceControllerTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: I0927529e939a8e16ddf6692adc8ad427bdbe1bca
2025-03-05 03:11:27 +00: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
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
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
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