Commit Graph

24234 Commits

Author SHA1 Message Date
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
Tom Hsu
4829391574 Merge "[Satellite] Remove useless unitest" into main 2025-03-17 09:33:17 -07:00
Treehugger Robot
1bb0fe126f Merge "[Satellite] Refactor code to controller base." into main 2025-03-17 08:34:53 -07:00
tom hsu
9757bd2d5f [Satellite] Remove useless unitest
Flag: EXEMPT bug fix
Bug: b/387596751
Test: atest pass
Change-Id: I26c676b36ebfd6727b69adadb753e3c2697c8780
2025-03-17 14:34:32 +00:00
tom hsu
f0efc2e363 [Satellite] Refactor code to controller base.
- Your mobile plan

Flag: EXEMPT refactor
Bug: b/403149290
Test: atest pass
Change-Id: Ia21f3d8b301401799263a1a2b43d82e9a46729a5
2025-03-17 13:52:58 +00:00
Jacky Wang
91dab36efd Change storage_summary string id to fix crash
ag/32322018 reverts storage_summary string for default locale but other
languages might be still using stale translations and cause
MissingFormatArgumentException crash.

As a quick fix, change the string id to make it as a new string. The
side-effect is that storage summary is not localized for a while.

Fix: 404116634
Flag: EXEMPT bugfix
Test: Verified with zh_TW locale
Change-Id: I5d7d6be2c1eb524622f1013120cb44403b1f6f29
2025-03-17 19:41:57 +08: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
Treehugger Robot
3c6c586407 Merge "[Satellite] Move entitlment check to auto type only." into main 2025-03-16 22:56:23 -07:00
Treehugger Robot
b08aeb717c Merge "Fix test failed due to wrong string." into main 2025-03-16 22:51:19 -07:00
Yiyi Shen
470f275feb Merge "[Audiosharing] Use getBroadcastToUnicastFallbackGroup to get primary" into main 2025-03-16 22:15:17 -07:00
tom hsu
6828692238 Fix test failed due to wrong string.
Flag: EXEMPT bug fix
Fix: b/404076543
Test: atest pass
Change-Id: Id1152aeed25cb2956b54a9071a0a76bc2a938b15
2025-03-17 04:41:06 +00:00
tom hsu
7ca28dd3d6 [Satellite] Move entitlment check to auto type only.
Flag: EXEMPT bug fix
Bug: b/401648126
Test: atest pass
Change-Id: Ide6f8520b5e1e60f700586ef00970a4f55f5babe
2025-03-17 03:52:02 +00:00
Treehugger Robot
accbe2362a Merge "Screen Resolution: add space for 4-digit values" into main 2025-03-14 13:28:57 -07:00
Vadym Omelnytskyi
14050c89f5 Screen Resolution: add space for 4-digit values
Add logic that composes screen resolution string with non-breaking
spaces. Now setting page will show "1 080 x 1 280" instead of "1080 x
1280"

Test: atest -c <SETTINGS_APP_PATH>/tests/unit/src/com/android/settings/display/ScreenResolutionFragmentTest.java
Test: verified on device
Flag: EXEMPT no API change
Bug: 385895191
Change-Id: I9a4bbd7c20e8c700dee6e997a36d4fda69f4d780
2025-03-14 18:52:45 +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
Treehugger Robot
cec2696f62 Merge "Revert "L10n fix for IW locale in storage_summary string"" into main 2025-03-14 03:09:18 -07:00
Jason Chiu
54c9bffa9f Merge "Support icon color scheme for homepage injections" into main 2025-03-14 02:48:57 -07:00
Treehugger Robot
078fcd0925 Merge "[Satellite] Refactor about content of Satellite setting" into main 2025-03-14 02:22:41 -07:00
Treehugger Robot
594062970c Merge "Use WaitForDeviceAvailable" into main 2025-03-14 01:24:58 -07:00
Garvita Jain
76943a5b1d Revert "L10n fix for IW locale in storage_summary string"
This reverts commit 4e5595050f.

Reason for revert: <Settings crash in Beta 3>

Change-Id: Icb882eef67904ebbe2ecd3d1eb6620e64453d23b
2025-03-14 01:08:30 -07:00
Garvita Jain
d987500c52 Merge "Revert "[L10n fix] Use whitespace regex for splitting string by delimiter."" into main 2025-03-14 01:02:05 -07:00
tom hsu
c19341db32 [Satellite] Refactor about content of Satellite setting
Flag: EXEMPT refactor
Bug: b/403149290
Test: Manual test pass
Test: atest pass
Change-Id: I55868869a9442648995343c857758c23fe358bc2
2025-03-14 07:42:27 +00:00
Treehugger Robot
b4a1d57206 Merge "[Satellite] Move satellite setting related code to a folder" into main 2025-03-14 00:16:07 -07:00
Pawan Wagh
cc282f8470 Use WaitForDeviceAvailable
WaitForDeviceOnline doesn't gurantee that device
can execute commands

Test: atest -c Enable16KbTest
Bug: 401597066
Change-Id: Icf55035ebe4b4a028892dc22665dafc8a5b492b4
2025-03-14 06:46:47 +00: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
Garvita Jain
0cac1c2b43 Revert "[L10n fix] Use whitespace regex for splitting string by delimiter."
This reverts commit 08e18d6241.

Reason for revert: <Followup to splitting freespace string>

Change-Id: I169abdd990d94d6a04d0a500b9802ff438c21876
2025-03-13 20:15:41 -07:00
Treehugger Robot
b09e60e9bd Merge "Customize Max Screen Timeout" into main 2025-03-13 20:14:55 -07:00
Adrian Roos
3ab16de602 Merge "packages/apps/Settings: remove usages of deprecated Mockito matchers" into main 2025-03-13 13:31:54 -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
Amit Talreja (xWF)
bfab8a80d9 Merge "Updated the 2G enable setting title. Bug:391709444 Test: atest Enable2gPreferenceControllerTest Flag: EXEMPT bugfix" into main 2025-03-13 10:47:52 -07:00
tom hsu
93f714446a [Satellite] Move satellite setting related code to a folder
Flag: EXEMPT refactor
Fix: b/403149290
Test: build pass
Test: atest pass
Change-Id: I849adc99fb16d1278efd1d481a4fd99fadb45e98
2025-03-13 16:12:16 +00: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
Shawn Lin
2ed16df7ca Merge "Update biometrics metrics enums" into main 2025-03-13 03:29:22 -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
Adrian Roos
693035ab86 packages/apps/Settings: remove usages of deprecated Mockito matchers
Upstream Mockito has deleted the deprecated matchers
in the latest version. Migrate usage to replacements
to unblock upgrade.

Test: m checkbuild
Flag: TEST_ONLY
Bug: 310268946
Change-Id: I18160e93912d136f3962e3379a68ba2be82c1c78
2025-03-13 09:54:49 +01: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
Shawn Lin
9dfc6173c4 Update biometrics metrics enums
Bug: 370940762
Test: atest FaceSettingsAppsPreferenceControllerTest
            FaceSettingsKeyguardUnlockPreferenceControllerTest
	    FingerprintSettingsAppsPreferenceControllerTest
	    FingerprintSettingsKeyguardUnlockPreferenceControllerTest
Flag: com.android.settings.flags.biometrics_onboarding_education

Change-Id: Iabd5d27358a3cec966210af2fe54079c0d535808
2025-03-13 07:26:24 +00:00
talreja
868299303e Updated the 2G enable setting title.
Bug:391709444
Test: atest Enable2gPreferenceControllerTest
Flag: EXEMPT bugfix

Change-Id: I66bd05441e29b4976343d145ebecaf11fa924b0c
2025-03-12 19:12:48 -07:00
Shawn Lin
a0e0065766 Merge "Launch multiple biometric enrollment when no biometric is enrolled" into main 2025-03-12 19:01:45 -07: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
Vitor Carvalho
67b21fb238 Merge "Update ParentalControlsUtils to use a new utility that is able to retrieve the component for the EnforcedAdmin." into main 2025-03-12 12:00:30 -07:00
Jan Tomljanovic
17f51b712a Merge "Add owners files for safetycenter in settings." into main 2025-03-12 10:47:00 -07: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