Commit Graph

19378 Commits

Author SHA1 Message Date
Yuri Lin
0773c4d93f Merge "Merge bundle global & type preference controllers." into main 2025-03-24 12:13:24 -07:00
Zhibin Liu
32bc5aab59 Merge "Add support to configure state of operator name in status bar [2/2]" into main am: 7c598253ff
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3516771

Change-Id: Icbafc5ffafb3181412e181800505c3d8be6ae5f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-24 00:57:43 -07:00
Zhibin Liu
7c598253ff Merge "Add support to configure state of operator name in status bar [2/2]" into main 2025-03-24 00:15:24 -07:00
Yvonne Jiang
081fab1330 Merge "Update "Manage PIN" entry point." into main 2025-03-21 15:05:09 -07:00
Yvonne Jiang
2887142833 Update "Manage PIN" entry point.
- Updates default icon to outlined version
- Makes availability conditional on existence of supervising credential
- Does not disable entry point when the main switch is disabled

Bug: 405159398
Test: atest SupervisionPinManagementScreenTest
Test: atest SupervisionDashboardScreenTest
Flag: android.app.supervision.flags.enable_supervision_settings_screen
Change-Id: I764a6b767019007a93aacf29ecf47677e16cb058
2025-03-21 12:10:30 -07:00
Treehugger Robot
af3a006b2a Merge "Add context to FingerprintExtPreferencesProvider" into main 2025-03-21 02:23:39 -07:00
Treehugger Robot
dc34cabee1 Merge "Show hearing device pairing intro according to the device's supported status" into main 2025-03-21 01:55:57 -07:00
jasonwshsu
e3eb185e00 Show hearing device pairing intro according to the device's supported status
Bug: 390078046
Test: atest HearingDevicePairingIntroPreferenceControllerTest
Flag: EXEMPT bugfix
Change-Id: I19b9825a55732c9edb058dd517d6021549e55307
2025-03-21 14:28:12 +08:00
MiltonWu
7379aee081 Add context to FingerprintExtPreferencesProvider
Bug: 405274627
Test: atest FingerprintSettingsFragmentTest
Flag: EXEMPT interface changed
Change-Id: I66527bab885555df1dcab087862e5b1a96593ef5
2025-03-21 06:24:47 +00:00
Kevin Liu
c4cba7cd6b Merge "Fix the deprecated directlyOn method" into main am: a519bd5654
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3545520

Change-Id: I6ed116e75f81b391734e28dc800513f2ed1d643b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-20 08:50:01 -07:00
Marcelo Arteiro
157030dcef Pending Location information added to Dark Theme
Resolved an issue in Settings where sunset/sunrise dark mode failed silently when a location was unavailable. Now, an error dialog is shown, even if location services are enabled, but a specific location is missing.

A footer stating the same issue is now present while the location is pending.

Existing banner that appears when Location is disabled is now being removed once Location is turned on. Previously the UI would refresh only after exiting and returning to the preference view.

Bug: 324548844
Bug: 402025928
Test: atest UiModeManagerServiceTest
Flag: EXEMPT bugfix
Change-Id: I914937185f11a686b453f929728b6329ebd05389
2025-03-20 03:21:45 -07:00
Yiyi Shen
cf5646c92b Merge "[Audiosharing] Refresh preference when onServiceConnected" into main 2025-03-20 03:14:38 -07:00
Yiyi Shen
d09272e607 Merge "[Audiosharing] Avoid dup volume control entries" into main 2025-03-20 01:02:37 -07:00
Haijie Hong
d22895a781 Don't show key missing dialog for exclusively managed device
Test: local tested
Flag: EXEMPT minor fix
Bug: 404890083
Change-Id: I5ec0541b55af81bd3424e3b1af329cecd3a480ad
2025-03-20 00:22:42 -07:00
Treehugger Robot
0a1019cc64 Merge "Only call super.updateState when work profile exists" into main 2025-03-19 16:31:38 -07:00
Xiaomiao Zhang
76069fe415 Merge "Create data store for safe search preference." into main 2025-03-19 15:40:28 -07:00
Yuri Lin
2034843773 Only call super.updateState when work profile exists
Since the updateState() method is being called regardless of the availability of a work profile, we were trying to get settings for USER_NULL, which was leading to crashes.

Flag: com.android.server.notification.polite_notifications
Fixes: 402317471
Test: manual with existing work profile & without existing work profile
Change-Id: Icddabd9a7575713f42a0f5bd955b65a7e46c7f45
2025-03-19 17:53:12 -04:00
Xiaomiao Zhang
b7de2ba4a5 Create data store for safe search preference.
Test: atest SupervisionSafeSearchPreferenceTest
Test: atest SupervisionWebContentFiltersScreenTest
Test: manually tested with physical device
Flag: android.app.supervision.flags.enable_web_content_filters_screen
Bug: 401568995
Change-Id: Ia9e3f73ac6e9efbe7933dc2958443e9fdb5b4422
2025-03-19 20:59:14 +00:00
Haijie Hong
a58a764686 Merge "Scroll to top when opening more settings page" into main 2025-03-19 06:16:02 -07:00
Haijie Hong
ce73cba979 Scroll to top when opening more settings page
Test: local tested
Flag: EXEMPT minor fix
Bug: 343317785
Change-Id: I5e90e4b1b3bcd5329c6574655ad6a3dee537438c
2025-03-19 04:28:25 -07:00
Zaiyue Xue
08a3aa7f33 Support phonetype control for Settings Battery database retention time
Bug: 404740486
Fix: 404740486
Test: atest
Flag: EXEMPT bug fix
Change-Id: Ifc9032e19a5b26e307d1426ea5c07de84e1613f4
2025-03-19 17:53:41 +08:00
Yiyi Shen
049835b568 [Audiosharing] Avoid dup volume control entries
Test: atest
Bug: 402384034
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I1c975a39106d50746c692586bf682301dd299f40
2025-03-19 17:45:33 +08:00
Yuanru Qian
0a4000d723 Merge "Update the audio sharing QR code logic to enable OEMs providing customized QR code image" into main 2025-03-19 00:24:22 -07:00
Haijie Hong
6c608b7e8a Merge "Show bond loss UI in device details" into main 2025-03-19 00:22:21 -07:00
Daniel Huang
44a205b6a5 Merge "Improve dialog popup" into main 2025-03-18 19:47:22 -07:00
Haijie Hong
4bc471f61e Merge "Move enable/disable LE Audio to Utils" into main 2025-03-18 07:25:17 -07:00
Haijie Hong
1ac71efdc4 Merge "Check bond state when bluetooth key is missing" into main 2025-03-18 07:24:52 -07:00
Shivangi Dubey
f01555e294 Merge changes from topic "integrate-auto-rotate-manager" into main
* changes:
  Refactor ShadowDeviceStateAutoRotateSettingManager
  Integrate refactored device-state auto-rotate setting manager
2025-03-18 06:48:17 -07:00
Haijie Hong
a333827d6d Move enable/disable LE Audio to Utils
Bug: 381353150
Test: atest UtilsTest
Flag: EXEMPT minor refactor
Change-Id: Id017f2b5a0f51d19878bf91b219334baeda97d6d
2025-03-18 19:44:47 +08:00
Yiyi Shen
0e786c01f7 [Audiosharing] Refresh preference when onServiceConnected
Test: atest
Bug: 305620450
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I58334f674398ff6e053c178810e9f9d290c0ad2b
2025-03-18 19:03:55 +08:00
Shivangi Dubey
9e3b9146dd Refactor ShadowDeviceStateAutoRotateSettingManager
Update ShadowDeviceSttaeAutoRotateSettingManager as per the latest changes to DeviceStateAutoRotateSettingManager.
Test: atest DeviceStateAutoRotateSettingControllerTest
Bug: 394303723
Bug: 394303731
Flag: com.android.window.flags.enable_device_state_auto_rotate_setting_refactor

Change-Id: I8ea694709ccfd08310b241713b5ec67f2e070e2c
2025-03-18 04:03:43 -07:00
Haijie Hong
fc10fdf30b Check bond state when bluetooth key is missing
Bug: 403847818
Test: local tested
Flag: EXEMPT minor fix
Change-Id: I3f310b5758ebecd7591d76988b351d3c6a7dfc67
2025-03-18 18:56:24 +08:00
Allen Su
e8bd9e66b8 Improve dialog popup
1. Disable dialog when the sys language doesn't change
2. Associate region with system locale

Bug: 402600866
Test: atest LocaleListEditTest
Flag: EXEMPT bugfix
Change-Id: I2c7ddbf89b6caa02a35e247ebe97086f5880adee
2025-03-18 10:37:37 +00:00
Bharath
7aa330d5ab Add support to configure state of operator name in status bar [2/2]
This keeps the Settings entry under Display Settings for
Operator name in Status bar to be configurable.

Bug: 399826221
Test: atest SettingsRoboTests:com.android.settings.display.ShowOperatorNamePreferenceControllerTest
Change-Id: I6a7777868175e6970f28060a6d74c70f582ca770
2025-03-18 01:57:03 -07:00
Haijie Hong
519f1752f0 Show bond loss UI in device details
Bug: 380801155
Test: atest BluetoothDetailsFragmentTest
Flag: EXEMPT minor change
Change-Id: I458778e1a3adde4ec1ddd8b84b8dc7f1d91621f5
2025-03-18 11:41:52 +08:00
Xiaomiao Zhang
2897cf5def Add SafeSearch content filters preference.
Test: atest SupervisionSafeSearchPreferenceTest
Test: locally deployed on physical device
Bug: 401569571
Flag: android.app.supervision.flags.enable_web_content_filters_screen
Change-Id: Ia889c4c8f4df8d1b714909b19a7e0b5ef40154cf
2025-03-17 19:49:43 +00:00
Yuri Lin
53f94f0495 Merge bundle global & type preference controllers.
This change allows the combined preference controller to be a central place to manage dependencies between the global switch and the individual type checkboxes. When the last individual checkbox is unchecked, the global switch turns off as well. When the global switch is flipped, the individual type preferences become visible or invisible.

Flag: android.service.notification.notification_classification
Bug: 380291070
Test: atest BundleCombinedPreferenceControllerTest, manual
Change-Id: I4e97d3d999c6114dd8c71100a0b0de1eb8f94e31
2025-03-17 15:04:38 -04:00
Shivangi Dubey
b830e703f3 Integrate refactored device-state auto-rotate setting manager
Added DeviceStateAutoRotateSettingManagerProvider to provide appropriate implementation of DeviceStateAutoRotateSettingManager based on flag.
Integrate DeviceStateAutoRotateSettingManagerImpl to be used when auto-rotate refactor flag is ON.
For more info:go/auto-rotate-refactor
Bug: 394303723
Bug: 394303731
Flag: com.android.window.flags.enable_device_state_auto_rotate_setting_refactor
Test: atest DeviceStateAutoRotateSettingManagerProviderTest

Change-Id: I63494b6548f1f533a9a1979f2b19640c3ad1dc8d
2025-03-17 18:28:02 +00:00
Xiaomiao Zhang
4d0be536c7 Create data store for supervision safe sites preference.
Test: atest SupervisionWebContentFiltersScreenTest
Test: atest SupervisionSafeSitesPreferenceTest
Test: deployed locally to a physical device
Flag: android.app.supervision.flags.enable_web_content_filters_screen
Bug: 401568468
Change-Id: I7fe8a9c5932b4c8f63c4067ba6914eb73d0e2373
2025-03-17 17:55:57 +00:00
Treehugger Robot
a9ef330701 Merge "Move the content description for Display size and text preview to xml" into main 2025-03-17 10:47:30 -07:00
Mir Noshin Jahan
b96eb497da Merge "Add Wi-Fi and adaptive mobile network (5G PM) toggle event in Adaptive Connectivity UX" into main 2025-03-16 23:18:27 -07:00
Yiyi Shen
470f275feb Merge "[Audiosharing] Use getBroadcastToUnicastFallbackGroup to get primary" into main 2025-03-16 22:15:17 -07:00
Candice
526dacdc82 Move the content description for Display size and text preview to xml
Bug: 395882764
Test: atest TextReadingPreviewControllerTest
Test: atest TextReadingPreviewPreferenceTest
Flag: EXEMPT BUGFIX
Change-Id: I070ec2b9b39a205fd3a97636f0c45fb50b670049
2025-03-17 03:02:32 +00:00
Kevin Liu
99b5a00f83 Fix the deprecated directlyOn method
Adjust to directlyOn method with method string and parameter type

Test: atest SettingsRoboTests
Change-Id: Ia15a8a722e6c8387b639da096377d9716a944b7e
2025-03-14 22:45:39 +00:00
Weng Su
040e2a867a Fixed accessibility issues in Wi-Fi password view in Settings
- Keep the Save button enabled at all times

- Show "*required" or "The password is invalid" to remind the user
  - Show "Password (optional)" to indicate that it can remain unchanged, when modifying Wi-Fi configuration

Bug: 386897596
Bug: 402694144
Flag: EXEMPT bugfix
Test: Manual testing
  atest SettingsUnitTests:AddNetworkFragmentTest
  atest WifiConfigControllerTest \
        WifiConfigController2Test \
        WifiDialogActivityTest
Change-Id: I09b7684674ff376139565fcc196cde8d8d20a864
2025-03-14 21:05:16 +08:00
Jason Chiu
54c9bffa9f Merge "Support icon color scheme for homepage injections" into main 2025-03-14 02:48:57 -07:00
Jason Chiu
3e064619ec Support icon color scheme for homepage injections
Bug: 402607181
Test: visual, atest SettingsRoboTests:DashboardFeatureProviderImplTest
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: Iac6434864c38b08e2a35cc58f910a3cf1a6dc113
2025-03-14 14:34:36 +08:00
Haijie Hong
fe3cf14287 Merge "Update dialog UI for bonding loss" into main 2025-03-13 20:32:26 -07:00
Treehugger Robot
b09e60e9bd Merge "Customize Max Screen Timeout" into main 2025-03-13 20:14:55 -07:00
Yongshun Liu
19ad5b3eaf Merge "a11y: Only show the cursor following mode setting with detected mouse" into main 2025-03-13 13:16:39 -07:00