Commit Graph

19367 Commits

Author SHA1 Message Date
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
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
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
Yiyi Shen
5d09af06de Merge "Avoid unintended pref removal after CSIP main/member switch" into main 2025-03-13 07:07:52 -07:00
Treehugger Robot
91056fc841 Merge "Fixed accessibility issues in Wi-Fi password view for SUW" into main 2025-03-13 06:40:20 -07:00
Yiyi Shen
efe2738735 Avoid unintended pref removal after CSIP main/member switch
Test: atest
Bug: 394765052
Flag: EXEMPT small fix
Change-Id: I5b4646ff9ee092b851d3f8d5cc3ac2030f189430
2025-03-13 17:32:38 +08:00
noshinmir
5d7dfdea71 Add Wi-Fi and adaptive mobile network (5G PM) toggle event in Adaptive Connectivity UX
Bug: 393645580
Flag: com.android.settings.flags.enable_nested_toggle_switches
Test: Manual testing
atest AdaptiveConnectivityScreenTest
atest AdaptiveMobileNetworkTogglePreferenceTest
atest WifiScorerTogglePreferenceTest

Change-Id: Ic3b8e4aca5e2096b4e94aed10cd516c3f94e48c1
2025-03-13 08:01:01 +00:00
Haijie Hong
3ac9b6baaa Update dialog UI for bonding loss
Bug: 380801155
Test: atest BluetoothKeyMissingDialogTest
Flag: com.android.settings.flags.enable_bluetooth_key_missing_dialog
Change-Id: I0530d6a590666684578f3e94fc8f0da4fae64c7f
2025-03-13 00:41:06 -07:00
Weng Su
351e6a94e0 Fixed accessibility issues in Wi-Fi password view for SUW
- Keep the Save button enabled at all times

- Show "*required" or "The password is invalid" to remind the user

Bug: 386897596
Flag: EXEMPT bugfix
Test: Manual testing
  atest WifiConfigControllerTest
Change-Id: I442d2f958efd85f3c92309d0bed7cd3aa9ec9876
2025-03-13 15:40:12 +08:00
Chelsea Hao
5c203edc6f Merge changes from topic "audio_stream_broadcast" into main
* changes:
  A broadcast receiver to handle `ACTION_LE_AUDIO_PRIVATE_BROADCAST_RECEIVED`.
  Add a broadcast receiver for private broadcast receive data.
2025-03-12 18:25:39 -07:00
Yuhan Yang
92b2b56174 Merge "Add observer to autoclick main switch controller" into main 2025-03-12 14:41:46 -07:00
Yuhan Yang
a8eecd48d9 Add observer to autoclick main switch controller
Add an observer in ToggleAutoclickMainSwitchPreferenceController
so when the autoclick is toggled on/off at somewhere else such as
autoclick shortcut, the main switch will change accordingly.

screen cast:
go/screencast-njawnjqynzi2ode1mzm0nhxmztqwmddjzc03oa

Bug: 391416057
Test: verified manually
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: I6e2a3af55cbd3f03b4feeb268b84510fc55518bf
2025-03-12 19:13:05 +00:00
Junchen Quan
9b0ece9799 Merge "[Device Supervision] Implement createConfirmSupervisionCredentialsIntent API" into main 2025-03-12 10:34:49 -07:00
juquan
160b8bc1bb [Device Supervision] Implement createConfirmSupervisionCredentialsIntent API
The `ConfirmSupervisionCredentialsActivity` has been added and it's intended to be launched via the intent.

Bug: 392961554
Flag: android.app.supervision.flags.enable_supervision_settings_screen
Test: atest SupervisionMainSwitchPreferenceTest
Change-Id: I2322256a5711d5b90f826f467110c6861a7734ad
2025-03-12 10:34:06 -07:00