Commit Graph

24170 Commits

Author SHA1 Message Date
Kevin Liu
4d38f48c68 Merge "Revert "Temp disable test that contains custom shadow within it"" into main 2025-02-27 07:29:29 -08:00
Matthew DeVore
29132988b2 Merge "Show expanded display settings in list fragment" into main 2025-02-27 07:22:05 -08:00
Matthew DeVore
b2252c9f74 Merge "CD updater: add missing call in tests" into main 2025-02-27 06:51:54 -08:00
Treehugger Robot
fb74cf60eb Merge "Fixed accessibility issues in Wi-Fi SSID view for SUW" into main 2025-02-26 23:22:21 -08:00
Yiyi Shen
9fa2160a31 Merge changes from topic "join_handler" into main
* changes:
  [Audiosharing] Handle device connected in handler activity
  [Audiosharing] Add activity skeleton to handle new connected sink
2025-02-26 23:02:05 -08:00
Yiyi Shen
51c5c2e473 [Audiosharing] Handle device connected in handler activity
Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: Icea9ad31d3115bf90557e8c2795987cd1d0c824b
2025-02-26 21:29:46 -08:00
Weng Su
288a5971d2 Fixed accessibility issues in Wi-Fi SSID view for SUW
- Keep the Save button enabled at all times

- Show "Enter the SSID" to remind the user

Bug: 386897596
Flag: EXEMPT bugfix
Test: Manual testing
  atest WifiDialogActivityTest \
        WifiConfigControllerTest
Change-Id: I577e78c34cbaa0640479adf09a916a526500fe68
2025-02-27 13:14:28 +08:00
Angela Wang
03faf6b111 Merge "Filter out non-discoverable scan result in hearing device pairing page" into main 2025-02-26 17:11:05 -08:00
Treehugger Robot
de81197c74 Merge "Migrate SeekBarPreference to SliderPreference for haptics" into main 2025-02-26 13:01:19 -08:00
Matthew DeVore
f87293fc5d Show expanded display settings in list fragment
Stop distinguishing between the display list and per-display fragments.
Instead, always show all displays that are available. This is closer to
how the UI will eventually look, which is each display in a tab.

Setting an OnChangeListener for multiple preferences with the same key
did not work, even though the conflicting preferences had different
parent preferences. Only the listener of the top-most preference was
notified even when changing a different one. So this CL changes
PrefBasics so that it can set unique keys for otherwise identical
preferences.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352648432
Test: ExternalDisplayPreferenceFragmentTest
Test: set rotation of two overlay displays to different non-default values
Change-Id: Idabef1e03afd496bfc955927a2894f14f999a105
2025-02-26 13:38:57 -06:00
Matthew DeVore
6a4ac9cdbf CD updater: add missing call in tests
ag/31885242 changed the behavior for registerCallback such that it no
longer automatically scheduled an update. This CL adds the missing call
in tests.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: atest ExternalDisplayUpdaterTest.java
Test: atest ConnectedDeviceGroupControllerTest.java
Bug: b/399273324
Change-Id: If030e7cc98289fe3062c1a638580ec6c6479d97a
2025-02-26 19:23:57 +00:00
Kevin Liu
78e05bbcec Revert "Temp disable test that contains custom shadow within it"
This reverts commit a9e22be8a5.

Reason for revert: No longer need to ignore this test, as the root cause is found and fixed in aosp/3506812

Change-Id: I56681bde8c0485c46f0cd2b84cb83fee5ea0e760
2025-02-26 11:04:50 -08:00
Evan Chen
60ff81faf8 Remove all associaitons when forget a device in Settings
The associations will be removed one forget the device.

Test: manually test
Bug: 365613753
Flag: com.android.settings.flags.enable_remove_association_bt_unpair
Change-Id: Ic2224952b6f8e776ffcf07ce4fa6953a98475490
2025-02-26 17:35:23 +00:00
Candice
4a97b31f42 Update the dark theme and EDT description
Bug: 315012822
Test: Manually. See screenshot in the bug
Test: atest DarkModeTopIntroPreferenceControllerTest
Flag: android.view.accessibility.force_invert_color
Change-Id: I94ba1af4e49c461978fc6b31e82e44c88ba19109
2025-02-26 15:56:44 +00:00
Kanyinsola Fapohunda
9d036d26ee Remove legacy flag for time feedback
This change removes the server flag for `time_help_and_feedback_feature_supported` as public ramps are generally discouraged in Android now. See go/android-legacy-flags. The trunk stable flag still exists, so this feature is still flagged properly.

This change also include minor refactor to simplify logic around flags now that the server flag is no longer needed.


Flag: EXEMPT removing time_help_and_feedback_feature_supported
Bug: 283239837
Change-Id: Ic5058a81186d63df4a2e57eaab4d1c120d0806bc
2025-02-26 07:32:21 -08:00
Treehugger Robot
dc8db1bd63 Merge "Add metrics for biometric onboarding & education" into main 2025-02-26 03:25:41 -08:00
Mir Noshin Jahan
975a12c269 Merge "Add nested toggle switches under Adaptive connectivity settings UI Bug: 393645580 Flag: com.android.settings.flags.enable_nested_toggle_switches Test: Manual testing atest AdaptiveConnectivityScreenTest hsv: https://hsv.googleplex.com/5165236934934528" into main 2025-02-26 01:23:56 -08:00
Yiyi Shen
4b13fb3655 [Audiosharing] Add activity skeleton to handle new connected sink
Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: Iff1378af8d9a8aa50ccd02b92630541acb24a1ad
2025-02-26 01:20:31 -08:00
Zoey Chen
29234e5934 Merge "[Settings] Add test case for new LocalePicker page - supported language" into main 2025-02-26 00:13:48 -08:00
Yiyi Shen
891d431f10 Merge "[Audiosharing] Add more checks before show notif from receiver" into main 2025-02-25 23:53:12 -08:00
noshinmir
16e32fae3f Add nested toggle switches under Adaptive connectivity settings UI
Bug: 393645580
Flag: com.android.settings.flags.enable_nested_toggle_switches
Test: Manual testing
atest AdaptiveConnectivityScreenTest
hsv: https://hsv.googleplex.com/5165236934934528

Change-Id: I12403f5c80290ebccc04f11771ec3f06ee216610
2025-02-26 07:16:38 +00:00
Zoey Chen
3fd943e8b3 [Settings] Add test case for new LocalePicker page - supported language
Bug: 396285228
Test: atest
Test: atest SettingsRoboTests:com.android.settings.localepicker.SystemLocaleAllListPreferenceControllerTest
Test: atest SettingsUnitTests:com.android.settings.localepicker.SystemLocaleAllListPreferenceControllerTest
Flag: EXEMPT refactor
Change-Id: I7ac4052df14a2657810c48199ac8c72e5dfc85a4
2025-02-26 06:39:55 +00:00
Angela Wang
5097cbe1ca Filter out non-discoverable scan result in hearing device pairing page
Flag: EXEMPT bugfix
Bug: 381027984
Test: atest HearingDevicePairingFragmentTest
Test: check with real device
Change-Id: I7ab70d5508d71472cbd2d0959bb749599d039058
2025-02-26 03:17:36 +00:00
Zhou Liu
bd03972fc3 Merge "Update the isEnabled state of preferences in supervision features group according to main switch" into main 2025-02-25 18:40:31 -08:00
Garvita Jain
06ba5d4d13 Merge "[L10n fix] Use whitespace regex for splitting string by delimiter." into main 2025-02-25 17:16:51 -08:00
Julia Reynolds
6191772de7 Merge "Add ability to exclude apps from adjustments" into main 2025-02-25 12:19:23 -08:00
Julia Reynolds
0762b81bcf Add ability to exclude apps from adjustments
Specifically bundling and summarization

Test: BundleManageAppsPreferenceControllerTest
Test: AdjustmentExcludedAppsPreferenceControllerTest
Test: SummarizationManageAppsPreferenceControllerTest
Flag: android.app.nm_summarization
Flag: android.app.notification_classification_ui
Bug: 390415383
Bug: 377697346
Change-Id: Ica4b77212f4660624bfe12be7e6c9c584cd2c812
2025-02-25 07:06:46 -08:00
Vadym Omelnytskyi
26d0f62bc3 Merge changes from topic "shadow-color-mode-manager-extend" into main
* changes:
  Display: make Colors settings entry preference reactive
  Display: refactor Color Mode settings
2025-02-25 03:07:55 -08:00
Garvita Jain
08e18d6241 [L10n fix] Use whitespace regex for splitting string by delimiter.
BUG: 387197875
Test: manual, logging
Flag: EXEMPT bugfix
Change-Id: Ic36257f33101d5e50496b5ca9e189efa447490f5
2025-02-25 09:28:06 +00:00
Zoey Chen
4cbc560d1d Merge "[Settings] Add test case for new LocalePicker page - suggested language" into main 2025-02-25 00:40:30 -08:00
Yiyi Shen
d800a32c57 [Audiosharing] Add more checks before show notif from receiver
Test: atest
Flag: com.android.settingslib.flags.promote_audio_sharing_for_second_auto_connected_lea_device
Bug: 395786392
Change-Id: I42a526914eb69d47db33230f2d23f2c8890880de
2025-02-25 15:45:08 +08:00
Zoey Chen
c0a09796b8 [Settings] Add test case for new LocalePicker page - suggested language
Bug: 396285228
Test: atest
Test: atest SettingsRoboTests:com.android.settings.localepicker.SystemLocaleSuggestedListPreferenceControllerTest
Test: atest SettingsUnitTests:com.android.settings.localepicker.SystemLocaleSuggestedListPreferenceControllerTest
Flag: EXEMPT refactor
Change-Id: I70d731b50775bf45ae0d73e4da9ea78dfcd3826c
2025-02-24 22:36:29 -08:00
Zoey Chen
6429735cb3 [Settings] Fix test failure
Change-Id: I06b56a378ab37f476801d0da97b68c4e3e07906c
Test: atest SettingsUnitTests:com.android.settings.localepicker.LocaleDialogFragmentTest
Bug: 396802384
Flag: EXEMPT bugfix
2025-02-24 20:09:09 -08:00
Wa Gao
c668a9e5c1 Merge "Disable the ContentProtection setting switch bar when current user is a guest user." into main 2025-02-24 16:02:09 -08:00
Zhou Liu
c0003fe0bd Update the isEnabled state of preferences in supervision features group according to main switch
Test: manually on real device
Test: atest SupervisionDashboardScreenTest
Bug: 397757430
Flag: android.app.supervision.flags.enable_supervision_settings_screen
Change-Id: Ie60e3cb358fde93566a9ff4b6d54589c25174c94
2025-02-24 23:14:09 +00:00
Treehugger Robot
b865f8a60d Merge "FactoryResetPreferenceController return null when permission isn't grandted." into main 2025-02-24 14:29:36 -08:00
Omer Ozer
3a8f193bb5 FactoryResetPreferenceController return null when permission isn't
grandted.

Flag: EXEMPT bugfix
Bug: 396580123
Test: manual
Change-Id: Id68dcebc600de21fddf8801757dfb56b92a1a773
2025-02-24 21:17:57 +00:00
Jan Tomljanovic
eeea2fc024 Always set source status, even when null.
This makes sure it erases old data about the source when it's no longer
used.

Bug: 398185839
Test: Treehugger
Flag: com.android.settings.flags.biometrics_onboarding_education
Relnote: N/a
Change-Id: I94020c99a1e15348868aaef180972439dcb3266f
2025-02-24 16:40:23 +00:00
Kanyinsola Fapohunda
ca552d4e89 Merge "Change namespace for time_help_and_feedback_feature_supported server flag" into main 2025-02-24 04:48:22 -08:00
Vadym Omelnytskyi
cc96950d12 Display: make Colors settings entry preference reactive
Added `display_color_mode` listener to Colors preference. As a result,
it becomes reactive and updates its color mode value summary.

Flag: EXEMPT minor change
Bug: 397659800
Test: changed color mode using `adb` commands and verify that Colors
summary reacts and print correct color mode

Change-Id: I963768e3dbb43b547ec53e6445b2791ec0f57cff
2025-02-24 10:39:19 +00:00
Vadym Omelnytskyi
a8f1da6994 Display: refactor Color Mode settings
1. Refactor Color Mode by moving color summary functionality to the ColorModeUtils
class.
2. Migrated `ColorModeUtils` from Java to Kotlin.
3. Changed ColorModePreferenceControllerTest according to changes

Bug: 390644464
Flag: EXEMPT refactoring
Test: atest com.android.settings.display
Test: atest -c packages/apps/Settings/tests/robotests/src/com/android/settings/display/colors/ColorModePreferenceControllerTest.kt
Test: atest -c packages/apps/Settings/tests/unit/src/com/android/settings/display/ColorModePreferenceFragmentTest.java

Change-Id: I55ac6129b93e4e35bd58f0313215b711ce954c0a
2025-02-24 10:36:23 +00:00
Haijie Hong
5e79d18636 Merge "Add Nearby share entrypoint in DevicePicker" into main 2025-02-23 23:30:32 -08:00
Shaowei Shen
49859abb4b Merge "[Physical Keyboard] Update Input Setting Dialog" into main 2025-02-22 02:36:32 -08:00
Yuhan Yang
664df0f4cc Update autoclick shortcut searchable
Add autoclick shortcut to search index when
enable_autoclick_indicator flag is enabled.
Hide it when the flag is off.

Bug: 397719419
Test: atest ToggleAutoclickPreferenceFragmentTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: Ib6d25067d024ff0dbea64d17d38fc544c615db97
2025-02-21 22:36:53 +00:00
Matthew DeVore
bdd9cca602 Merge changes I550fc918,I16b3ae92 into main
* changes:
  Disable mirror toggle if feature turned off
  Use PrefRefresh for Preference caching
2025-02-21 08:59:44 -08:00
Jason Hsu
d879711020 Merge "Fix default microphone for calls sometimes not work and not show UI" into main 2025-02-21 08:44:13 -08:00
Matthew DeVore
c37fc8b827 Use PrefRefresh for Preference caching
Refactor a couple of fields to use PrefRefresh for caching instead
instead of fields. This makes us construct PrefRefresh for display
categories, which we hadn't been doing before, and was causing
b/397466966. This also limits the tests' dependency on implementation.

We had been using fields for caching Preference objects, which doesn't
account for the same preference being needed for each display.
PrefRefresh is a more flexible mechanism for recycling View objects and
it largely makes the fields obsolete.

The reuse* methods (previously get*Preference) can actually be inlined
now that tests aren't calling into them, but to keep the diff easy to
review I left them as separate methods.

Because @NonNull doesn't actually do anything, and is considered the
default, I neglected to add them to new arguments, and deleted them from
lines I modified.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: ExternalDisplayPreferenceFragmentTest.java
Test: with fragment visible, plug-in and activate a new physical display with the Mirror prompt
Test: with topology disabled, verify footer is shown with and without a display attached
Bug: b/397466966
Bug: b/397591022
Change-Id: I16b3ae925ca3d9d79471fd5df00b571ae3fc696f
2025-02-21 09:43:10 -06:00
Haijie Hong
a9e67c0327 Add Nearby share entrypoint in DevicePicker
Bug: 381799866
Test: local build
Flag: com.android.settings.flags.enable_nearby_share_entrypoint
Change-Id: Ied79b9eebe7eaf669e45922787c5b01e504822d8
2025-02-21 17:24:10 +08:00
Shawn Lin
738d13829d Add metrics for biometric onboarding & education
Log the stats for the new changed buttons

Bug: 370940762
Test: atest FaceSettingsAppsPreferenceControllerTest
            FaceSettingsKeyguardUnlockPreferenceControllerTest
	    FingerprintSettingsAppsPreferenceControllerTest
	    FingerprintSettingsKeyguardUnlockPreferenceControllerTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: Ic14ffc43457a71f1f70ace0479410b7449dcc539
2025-02-21 08:39:46 +00:00
Tom Hsu
3c1e8e19cb Merge "Make Satellite UI updatable during receiving callback" into main 2025-02-20 23:27:01 -08:00