Commit Graph

23874 Commits

Author SHA1 Message Date
Chaohui Wang
6938753392 Merge "Migrate to AppStorageRepository" into main 2025-01-13 00:24:31 -08:00
Chelsea Hao
d964109a9c Merge "Allow only password between 4 to 16 character." into main 2025-01-12 19:42:35 -08:00
Treehugger Robot
73196499c3 Merge "Fix WifiTetherSecurityPreferenceControllerTest bug" into main 2025-01-11 22:11:17 -08:00
Weng Su
8e2441b764 Fix WifiTetherSecurityPreferenceControllerTest bug
Bug: 389096329
Flag: EXEMPT bugfix
Test: Manual testing
atest -c SettingsUnitTests:WifiTetherSecurityPreferenceControllerTest

Change-Id: I71f55d3b091b744d4d98728ab62491f0b1f8cb22
2025-01-11 01:50:21 +08:00
Jan Tomljanovic
406b5dface Split biometrics resource into three.
Bug: 388476345
Test: Treehugger
Flag: com.android.settings.flags.biometrics_onboarding_education
Relnote: N/a
Change-Id: Ie6761f318e64e1cf2782c538d7b6af5b5094faa1
2025-01-10 17:21:13 +00:00
Julia Reynolds
e62afe5aa9 Merge "Layout improvements for notification pages" into main 2025-01-10 06:28:18 -08:00
Arun Voddu
ca666039d8 Merge "[Satellite] Satellite UX changes in SIM settings as per new UX design." into main 2025-01-10 05:11:45 -08:00
Jakub Rotkiewicz
6b7a5073f0 developer settings: remove unused a2dp Preference
Bug: 329809288
Flag: EXEMPT - unused code
Test: m -j
Change-Id: Ibd526fffddf5ea545afc437a5daee12bb1cf8746
2025-01-10 12:42:25 +00:00
chelseahao
0f73d15bb3 Allow only password between 4 to 16 character.
Test: atest
Bug: 308368124
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I997cdef02079f74e82698fe052e29d64956cad60
2025-01-10 17:51:45 +08:00
Ze Li
d6f13bc516 Merge "[Temp bonding] Block users to select temp bond device as primary device for call in "Call audio" under "Audio sharing" page" into main 2025-01-09 20:51:59 -08:00
Wenyu Zhang
aea94181aa Merge "a11y: Initialize slider position with cursor area size setting" into main 2025-01-09 17:58:57 -08:00
Jacky Wang
1c78d48489 Merge "Fix memory leak on Accessibility screen" into main 2025-01-09 15:25:19 -08:00
Wenyu Zhang
e031b30d1d a11y: Initialize slider position with cursor area size setting
When the preference loads, initialize the slider position using the
cursor area size value from settings.

In addition, match slider seekbar range and the cursor area size range.

Change-Id: Ib6a8ca8463358a3e2de5ae6be8afd5113a5826be
Bug: b/383901288
Test: ToggleAutoclickCursorAreaSizeControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
2025-01-09 22:31:17 +00:00
Julia Reynolds
41896428ea Layout improvements for notification pages
Changes for upcoming theming changes in Settings:
- replacing some margins with padding
- merging some (switch pref + info pref) combos into a single preference.
I flagged the one that was already launched, but changed the other directly
- added some section headers (unflagged)
- moved all app wide notification settings to a single section (unflagged)
- changed two plain text prefs into TopIntroPreference, the dedicated pref
type for that sort of UI
- fixed some UI issues with 'Show more categories' appearing too often
- removed a duplicate notifcation channel label (unflagged)
- replaced a button layout preference with ButtonPreference (unflagged)

Test: manual review with is_expressive_design_enabled on and off
Test: atest com.android.settings.notification.app
Flag: EXEMPT this feature is not using aconfig for flagging
Bug: 349652992
Change-Id: I2acd7b2eb9dbcf6929143bfde99cd67163f1f95d
2025-01-09 17:07:53 -05:00
Ioana Alexandru
2da22cd198 Merge "Update usages of TestModeBuilder" into main 2025-01-09 13:46:05 -08:00
Lucas Silva
ee449cebde Merge "Add posturing dream trigger to Settings UI" into main 2025-01-09 12:55:19 -08:00
Treehugger Robot
5667b48b34 Merge "Removing upstream flag as it is now the default. Also moving to internal robolectric projects to no longer use the _upstream suffix." into main am: 7aa0ef4049 am: e96beeeb46
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3443580

Change-Id: Iaf9c2effb80f752248786899b2fc32dad335358f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-09 10:44:22 -08:00
arunvoddu
4da20d24c4 [Satellite] Satellite UX changes in SIM settings as per new UX design.
Bug: 382707562
Flag: EXEMPT UX bug fix
Test: Verified UX on device
Change-Id: I9e600d8f1fd6c273329e05a74079f1e03c209c65
2025-01-09 15:32:20 +00:00
Jacky Wang
2ac3cdfb22 Fix memory leak on Accessibility screen
The root cause is that androidx.preference.Preference does not implement
equals and hashCode methods, but it is used as Map key (see bug comment2
for more details). Given that Preference.getParent() can find the
category, we can simplify the data structure from Map to List.

Bug: 388696327
Flag: EXEMPT bugfix
Test: Resume/Pause Accessibility screen 100 times
Change-Id: Ib70acbf2147048730f8a4e8fd66731f9efdadecf
2025-01-09 18:57:38 +08:00
Treehugger Robot
b7e1cc472e Merge "[Catalyst] Add back Wi-Fi switch metrics" into main 2025-01-09 02:45:29 -08:00
Ze Li
18279890cc [Temp bonding] Block users to select temp bond device as primary device for call in "Call audio" under "Audio sharing" page
Test: com.android.settings.connecteddevice.audiosharing.AudioSharingCallAudioPreferenceControllerTest
Bug: 362859132
Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui
Change-Id: Ideafaa1b113a40219830b8ba2b5156b599481eee
2025-01-09 18:23:54 +08:00
Menghan Li
e8dfb5d2fd Merge "fix(ReduceBrightColorsPreferenceController) Different feature configs" into main 2025-01-09 01:16:31 -08:00
Menghan Li
291e62ffd1 Merge changes from topic "SurveyFeatureProvider_isSurveyAvailable" into main
* changes:
  Add HaTS entrypoint for Magnification page
  Add controller for magnification feedback preference
  Add a new API: checkSurveyAvailable
2025-01-09 01:14:45 -08:00
Chaohui Wang
7e8e683e60 Migrate to AppStorageRepository
Bug: 321861088
Flag: EXEMPT bug fix
Test: manual - on All apps and App info
Test: atest AppStorageSizesControllerTest
Test: atest AppStoragePreferenceTest
Change-Id: I3143de720493cb09854621b115d07e76bebf6699
2025-01-09 16:56:42 +08:00
Angela Wang
44e13bf11e Merge "Remove flag enable_hearing_aid_preset_control" into main 2025-01-09 00:04:19 -08:00
Menghan Li
e218280902 Add HaTS entrypoint for Magnification page
This entry point allows users to access and adjust Magnification
settings for low vision accessibility. Visibility is controlled by
the aconfig flag and SurveyFeatureProvider#isSurveyAvailable.

NO_IFTTT=Revisit preference_list scope

Bug: 380346799
Test: atest ToggleScreenMagnificationPreferenceFragmentTest
Flag: com.android.server.accessibility.enable_low_vision_hats
Change-Id: I81a55487734fe7b139391a6c95834c7313e54d7a
2025-01-09 07:01:21 +00:00
Menghan Li
3f67747684 Add controller for magnification feedback preference
The controller's logic determines the visibility of this preference
based on the availability of surveys, as reported by
SurveyFeatureProvider.isSurveyAvailable.

Bug: 380346799
Test: atest MagnificationFeedbackPreferenceControllerTest
Flag: com.android.server.accessibility.enable_low_vision_hats
Change-Id: I7fe7aa4418a6be38e9e7af7efc76a9a25266198b
2025-01-09 07:00:09 +00:00
Treehugger Robot
66f86d4612 Merge "[Catalyst] Move PreferenceCoordinate" into main 2025-01-08 20:34:18 -08:00
Shawn Lin
10265d8d90 Merge "[Biometric Onboarding & Edu] Update Set up Face Unlock page" into main 2025-01-08 19:29:47 -08:00
Jacky Wang
a29db33025 [Catalyst] Move PreferenceCoordinate
Bug: 388420844
Flag: EXEMPT refactor
Test: N/A
Change-Id: Ieafb4ce4757e0935ffb276127a3e562a6ff0bcfa
2025-01-09 07:57:59 +08:00
Matthew DeVore
926f75ec5f Merge "Use topology listener to detect changes" into main 2025-01-08 15:44:06 -08:00
Alyssa Ketpreechasawat
81d25980f8 Merge "Remove ModuleInfo#isHidden Usage from the source code." into main 2025-01-08 15:33:42 -08:00
Rex Hoffman
3d508d0d12 Removing upstream flag as it is now the default.
Also moving to internal robolectric projects to no longer use the  _upstream suffix.

Test: CI
Bug: 386652866
Change-Id: Ic4376619f01834a97ec10c33c283fd7cab45900f
2025-01-08 21:05:34 +00:00
Rex Hoffman
b47f76cb7c Merge "Removing Dead Flag Test: CI Bug: 386652866" into main am: ccf197b366 am: 9b18787489
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3434134

Change-Id: I93f2d70019643bb3b1b2d28a9dcf9108e9468ce0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-08 12:55:43 -08:00
Menghan Li
4cbdc3f598 fix(ReduceBrightColorsPreferenceController) Different feature configs
This change updates the tests for ReduceBrightColorsPreferenceController
to account for different combinations of feature flags and
configurations, specifically related to the "Even Dimmer" flag and the
availability of Reduce Bright Colors.

The updated tests ensure that the preference controller correctly
determines its availability based on these factors, improving test
coverage and reliability. This addresses inconsistencies between the
code and test cases, ensuring accurate behavior across various device
configurations.

Bug: 387071233
Test: atest ReduceBrightColorsPreferenceControllerTest
Flag: com.android.server.display.feature.flags.even_dimmer
Change-Id: Ie565ce996c7d4f49e194b119b32bf01a6508393e
2025-01-08 20:47:14 +00:00
Rex Hoffman
ccf197b366 Merge "Removing Dead Flag Test: CI Bug: 386652866" into main 2025-01-08 12:17:27 -08:00
Lucas Silva
9c4dba40b4 Add posturing dream trigger to Settings UI
Adds ability for users to select posturing as the trigger for when
dreams will be shown.

Bug: 383208131
Test: locally - mp droid and verified posturing option is displayed in
Settings
Flag: android.service.dreams.allow_dream_when_postured

Change-Id: Iae69b9e488181b1e2af7474e3e9879a92b51274c
2025-01-08 14:59:58 -05:00
Weng Su
cd9af665c3 [Catalyst] Add back Wi-Fi switch metrics
- The original Wi-Fi switch metrics is recorded by WifiEnabler.

- Since the design of Catalyst removes WifiEnabler, the metrics needs to be added to Catalyst preference.

NO_IFTTT=Catalyst only

Bug: 388547699
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiSwitchPreferenceTest

Change-Id: I8819e8f660784b8b04c7958b65f4792b5d4d0919
2025-01-09 03:37:06 +08:00
Treehugger Robot
be203ea17d Merge "Fix NPE on modes page when schedule has no days" into main 2025-01-08 11:17:09 -08:00
Matías Hernández
5098df9b6c Fix NPE on modes page when schedule has no days
Fixes: 387088843
Test: atest ZenModeTriggerUpdatePreferenceControllerTest
Flag: EXEMPT trivial bugfix
Change-Id: I3b845784f5923521d7f3f6cae9d6d27a21f55361
2025-01-08 19:14:40 +01:00
Harry Cutts
cc30711d59 Merge "Touchpad: replace references to "trackpad" with "touchpad"" into main 2025-01-08 07:39:51 -08:00
Treehugger Robot
e28dcd02bc Merge "Fix sim status details not updated after sim hotswap" into main am: e9bc1949a9 am: 066efe6c55
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3431560

Change-Id: I176e94c9f718a14d5e4593471fadb1b1ef186dba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-08 04:21:29 -08:00
Harry Cutts
509fd17515 Touchpad: replace references to "trackpad" with "touchpad"
When we first added the touchpad settings we hadn't settled on whether
to refer to them as "touchpads" or "trackpads" yet. We've since settled
on "touchpad", but that's left us with some Settings code referring to
one and some to the other. Let's standardize on "touchpad" since that's
consistent with user-facing strings and the rest of the input codebase.

This CL doesn't change string identifiers, as I believe that would cause
them to get different Translation Console IDs and thus be retranslated.

Bug: 245989146
Test: m
Test: check strings and icons are still displayed correctly in the
      touchpad settings and tutorial, and that settings toggles and the
      tutorial still work
Test: atest SettingsRoboTests
Flag: EXEMPT refactor
Change-Id: I930e9fc85e09e03da3513e5f8443077fa8ea91b0
2025-01-08 11:52:45 +00:00
Treehugger Robot
e9bc1949a9 Merge "Fix sim status details not updated after sim hotswap" into main 2025-01-08 03:15:55 -08:00
Treehugger Robot
32f8eff7a9 Merge "Add notifications toggle to Settings > Date and Time" into main 2025-01-08 02:01:34 -08:00
Haijie Hong
fd4c6d100d Merge "Add audio sharing entrypoint in device details" into main 2025-01-07 22:32:29 -08:00
YK Hung
172245983c Merge "Create UI lifecycle aware executor factory." into main 2025-01-07 21:45:18 -08:00
Haijie Hong
cdcf50e3d2 Add audio sharing entrypoint in device details
BUG: 383935069
Test: local tested
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: Ib90422d262eba84c3a308d8e4c5652d8c5f96808
2025-01-08 13:03:12 +08:00
Zaiyue Xue
ecb9bccc46 Create UI lifecycle aware executor factory.
The executor factory can bind with an UI page life cycle and could
auto-shutdown when the onStop().

Bug: 384795117
Test: manual
Flag: EXEMPT bug fix
Change-Id: Ibd2538fa2def86b08d3874a44f23ae2450483a6e
2025-01-08 11:58:17 +08:00
hoffc
39d16d7bfb Fix sim status details not updated after sim hotswap
Telephony callback may be removed in onPause during sim hotswap, but they are not re-registered in onResume for sub info still null.

Listen sub info change and re-register telephony callback when need.

Test: function test pass and SimStatusDialogControllerTest unit test pass.

Change-Id: I17e60c9e3441fc593107048494f830408c37ae61
Bug: 384643359
2025-01-08 11:53:26 +08:00