Commit Graph

21960 Commits

Author SHA1 Message Date
Fan Wu
fd882624f9 Merge "Re-enable failed test in FactoryResetPreferenceControllerTest" into main 2024-03-22 04:13:29 +00:00
Fan Wu
e4bfb2d2b5 Merge "Fix test failures under settings/wallpaper" into main 2024-03-22 04:13:11 +00:00
Xinyi Mao
7f1a96537b Merge "Fix talkback focus on "Less than a min"" into main 2024-03-22 03:28:11 +00:00
josephpv
43c8d3a3f8 Add a preference in reset options to delete private space
This takses care to add an entry point in Settings->System->Reset
options->Delete private space when private space feature is supported on
the device. Entry point appears both when private space exists and also
when private is not created.
On selecting asks for user authentication and on successful
authentication using device lock shows a dialog asking for
confirmation and calls for deletion private space.

Based on this entrypoint it would not be possible to guess if private
space exists on the device.

Recording link : b/329041740#comment3

Bug: 329041740
Test: atest ResetOptionsDeletePrivateSpaceControllerTest and verified
this doesn't give away existence of private space

Change-Id: I9a5b908e7a3f9edaf609cf7e6a87f9842d689ce6
2024-03-21 21:54:52 +00:00
Andy Wickham
9aa1c402ae Allows for system navigation settings to be added dynamically.
This allows for controller-backed preferences to be added or
overridden via xml.

Similarly, if the controllers cause all of the preferences for
2 or 3 button nav to be unavailable, we hide the settings button.

Bug: 324036308
Test: Manual and unit tests
Flag: NA
Change-Id: I2371f3173076172489966728ac69c8767570cd56
Merged-In: I2371f3173076172489966728ac69c8767570cd56
2024-03-21 20:31:06 +00:00
Chelsea Hao
14b1831fda Merge "Remove flag, use new api for auto on in settings." into main 2024-03-21 13:09:03 +00:00
Jakub Rotkiewicz
de27acef86 Refactor Bluetooth Codec settings to dynamic ListPreference
Fetch supported codecs from native and present to user using
ListPreference.

Bug: 305779598
Bug: 311451118
Bug: 323319530
Tag: #feature
Test: atest SettingsRoboTests:com.android.settings.development.bluetooth.AbstractBluetoothListPreferenceController
Test: atest SettingsRoboTests:com.android.settings.development.bluetooth.BluetoothCodecListPreferenceControllerTest

Merged-In: Iedbfd01c0d1b59df8a073f4e9aedca3913e6d45f
Change-Id: I90ed0d83c3250c64789e27707b0b7bff30043335
2024-03-21 11:06:18 +00:00
Fan Wu
e2b861dce0 Re-enable failed test in FactoryResetPreferenceControllerTest
Bug: 314930928

Test: atest
Change-Id: Icb93a6e01310172d6f51fe332c2ea4cdf6b0c1c5
2024-03-21 19:00:06 +08:00
Chaohui Wang
f091754518 Merge "Fix readOnlyApnFields not applied" into main 2024-03-21 09:52:41 +00:00
Fan Wu
9997df38d3 Fix test failures under settings/wallpaper
Bug: 315124270

Test: atest
Change-Id: I95a87c3644880ba29d310b45142c3c1d20870cdf
2024-03-21 16:41:57 +08:00
Chaohui Wang
54b03da369 Fix readOnlyApnFields not applied
Some enabled not set correctly.

Remove the enabled values, and check readOnlyApnFields directly to fix.

Fix: 330566517
Test: manual with carrier config KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY
Test: unit test
Change-Id: Ifd6d4a0d9a96a900c9d124c9e357562e84bbc6c7
2024-03-21 16:32:38 +08:00
mxyyiyi
ff3786f451 Fix talkback focus on "Less than a min"
- update text "min" to "minute"

Fix: 317140357
Test: manual
Change-Id: Iad1b72064f1b17c9d1ef4ed02b3d2de280d5449c
2024-03-21 15:04:13 +08:00
Xinyi Mao
4e56242991 Merge "Update percentage symbol from western sign to arabic sign" into main 2024-03-21 06:41:15 +00:00
mxyyiyi
8ce68baa24 Update percentage symbol from western sign to arabic sign
(https://screenshot.googleplex.com/ALgEzpDKG4BMBB4)

Fix: 322855881
Test: manual
Change-Id: I1335996814a1b80006481f52201a107144497859
2024-03-21 12:09:55 +08:00
Chaohui Wang
dd5b4d3d31 Merge "Add BootBroadcastReceiver required permissions" into main 2024-03-21 03:35:57 +00:00
Daniel Norman
88feeec3c1 Merge "Remove usages of bugfix flag cleanup_accessibility_warning_dialog." into main 2024-03-20 17:49:34 +00:00
Andy Wickham
cc10abe1c2 Merge "Allows for system navigation settings to be added dynamically." into main 2024-03-20 03:00:10 +00:00
Daniel Norman
8ce099c2cd Remove usages of bugfix flag cleanup_accessibility_warning_dialog.
Flag has been in Trunkfood for over a month.

Includes one mechanical refactor to move a method from a now-removed
file into a private method in the class that uses it: createDisableDialog

(This flag guarded a preliminary cleanup and minor bug fix for
b/303511250, but the actual feature for b/303511250 is tracked in a
different flag 'skip_accessibility_warning_dialog_for_trusted_services')

Bug: 303511250
Test: existing tests in Presubmit (no change to behavior)
Change-Id: Iccf439adb2806e988310f503fb3891a6bd022054
2024-03-19 23:05:07 +00:00
Treehugger Robot
937693d538 Merge "Add new Cellular Network Security page" into main 2024-03-19 16:15:32 +00:00
Chaohui Wang
732636cbd5 Merge "Refactor AutomaticDataSwitchingPreference" into main 2024-03-19 11:14:25 +00:00
Manish Singh
acafaf94b9 Merge "Support private profile in spinner adapters" into main 2024-03-19 09:54:58 +00:00
Haijie Hong
ba80f1934e Merge "Add event for Spatial Audio toggle in Settings" into main 2024-03-19 09:52:01 +00:00
Haijie Hong
b2d6c06c5c Add event for Spatial Audio toggle in Settings
Bug: 322279959
Test: atest BluetoothDetailsSpatialAudioControllerTest
Change-Id: Id0a3e4c0bcdce80c25326c83db7913a51462ef58
2024-03-19 15:29:45 +08:00
Chaohui Wang
bfd8a517be Refactor AutomaticDataSwitchingPreference
Split into AutomaticDataSwitchingPreference.kt, and use
isMobileDataPolicyEnabledFlow.

Bug: 329061940
Test: manual - Set Automatic data switching
Test: unit test
Change-Id: I878ed70328307c0a5dba6dfb461ff5a85efbcf88
2024-03-19 14:17:20 +08:00
Chaohui Wang
a3507d535f Fix APN network type not updated
The issue is caused by SettingsDropdownCheckBox's interface is updated,
but ApnNetworkTypeCheckBox not updated.

Update ApnNetworkTypeCheckBox to fix.

Bug: 329547692
Test: manual - update network type
Test: unit test
Change-Id: I4a5a1ad7d9d97960799f5ba0d89b5178ce410b6e
2024-03-19 13:59:11 +08:00
George Chang
1df6f6a976 Merge "Revert "settings(dev): Remove NFC stack logging control"" into 24D1-dev 2024-03-19 05:06:34 +00:00
Ze Li
29168c0d3e Merge "[ConnectedDevicePage] Add setup to fix testing fail." into main 2024-03-19 05:05:40 +00:00
yomna
5599de4fb5 Add new Cellular Network Security page
Test: m & atest CellularSecurityNotificationsDividerControllerTest CellularSecurityNotificationsPreferenceControllerTest CellularSecurityEncryptionDividerControllerTest CellularSecurityPreferenceControllerTest
Bug: b/318428717
Change-Id: I4a6ec5f47beb36bd455e04c2e6c4cea0ba65110f
2024-03-18 21:22:10 +00:00
Chun-Ku Lin
59a329cae5 Merge "Make QS shortcut type as default preferred shortcut for A11yService that associate with a TileService" into main 2024-03-18 17:20:43 +00:00
Allen Su
354a78e33b Merge "Fix Locale unit test failure" into main 2024-03-18 14:11:08 +00:00
Ze Li
e1bff83335 [ConnectedDevicePage] Add setup to fix testing fail.
Test: manual test
Bug: 322712259
Change-Id: I770e56524ce28511b9d3f773b439d6ea419b1509
2024-03-18 19:22:41 +08:00
Chaohui Wang
ad0b01e7cf Add BootBroadcastReceiver required permissions
These permissions are required for any Settings tests to run, otherwise
the tests will fails.

Instead of adding these permissions to each of the tests, add it to the
Settings-core.

Bug: 329046490
Test: unit tests
Change-Id: I54dc1ebfdd062acc224021429dce318d7c12809b
2024-03-18 09:23:34 +00:00
Chaohui Wang
905d0ff82e Merge "Fix SubscriptionInfoListViewModelTest" into main 2024-03-18 09:23:03 +00:00
Allen Su
99fb1065fa Fix Locale unit test failure
Bug: 301380610
Bug: 313604701
Test: atest LocalePickerActivityTest
Change-Id: Icab8eeea62c7c40c160d745afd08f71fcca5ec9c
2024-03-18 08:52:34 +00:00
Jakub Rotkiewicz
1c4d2116da Merge "Refactor Bluetooth Codec settings to dynamic ListPreference" into main 2024-03-18 08:21:57 +00:00
chelseahao
74f65ed315 Remove flag, use new api for auto on in settings.
Test: atest com.android.settings.bluetooth
Bug: b/316822488 b/316985153
Change-Id: I8bc7651fd6e33175a3f95cce050b9a957ac6f241
2024-03-18 15:59:58 +08:00
Chaohui Wang
10f5bdabb4 Fix SubscriptionInfoListViewModelTest
Fix: 329160337
Test: unit test
Change-Id: I7a3d27cb53c930a56ab0f0896b545807bf4f9dc0
2024-03-18 13:43:04 +08:00
Chun-Ku Lin
5cdf972b50 Make QS shortcut type as default preferred shortcut for A11yService that
associate with a TileService

Bug: 322712028
Test: manual (Turn on the shortcut for the first time for various
feature with or without tile. Verify only the A11yService with tile
would show QS as the shortcut when directly turn on the main shortcut
toggle)
Test: atest com.android.settings.accessibility

Flag: aconfig android.view.accessibility.a11y_qs_shortcut
Change-Id: I569b417639d2db8b7eddd818a2b9037ed4be2509
2024-03-18 00:14:43 +00:00
Manish Singh
d7ff6fe966 Support private profile in spinner adapters
Screenshot - https://screenshot.googleplex.com/35czwQHeevX75pj
Video - https://drive.google.com/file/d/1LkYPJ3i8llArnQBE3ieLPYMctEOw3xdp/view?usp=sharing&resourcekey=0-j-3-VV4OyXJKBPXwAqJvKg

Bug: 328565911
Bug: 313610609
Bug: 302082696
Test: manual
Test: atest UserAdapterTest
Test: atest StylusDevicesControllerTest
Change-Id: If8395eba5cc73809ab4abc95bc13067451c38b8f
2024-03-15 17:16:57 +00:00
Treehugger Robot
6b6aa30bdc Merge "[i18n] Fix tests for RegionalPreference and TickButtonPreference" into main 2024-03-15 14:02:43 +00:00
Prince Donkor
5f35b28015 Merge "Toggle Home controls when user selects Home Control Panel Dream" into main 2024-03-15 13:35:08 +00:00
Zoey Chen
fe5e153a12 [i18n] Fix tests for RegionalPreference and TickButtonPreference
Bug: 329808623
Test: atest TermsOfAddressNotSpecifiedControllerTest
Test: atest TermsOfAddressFeminineControllerTest
Test: atest TermsOfAddressNeutralControllerTest
Test: atest TermsOfAddressMasculineControllerTest
Test: atest FirstDayOfWeekItemListControllerTest
Test: atest TemperatureUnitListControllerTest
Change-Id: I8f00e423799be75a222078247116558f3bb6b34b
2024-03-15 10:20:20 +00:00
Treehugger Robot
cef373c705 Merge "Support Private Space in battery usage." into main 2024-03-15 09:46:38 +00:00
Chaohui Wang
67579d564b New countryIfOriginLabel
And display this label as fallback when Regulatory Image is missing.

Bug: 329378943
Test: manual - on SIMs
Test: unit test
Change-Id: I0b8851da20face9ca444b3e6456a4a662b944b65
Merged-In: I0b8851da20face9ca444b3e6456a4a662b944b65
2024-03-15 09:23:31 +00:00
Chaohui Wang
167f9d4166 Merge "New countryIfOriginLabel" into main 2024-03-15 08:46:14 +00:00
Joseph Vincent
f2f44f50de Merge "Add entrypoint for Learn More in PS settings & Setup intro" into main 2024-03-15 07:39:16 +00:00
Chaohui Wang
87318b10cd New countryIfOriginLabel
And display this label as fallback when Regulatory Image is missing.

Bug: 329378943
Test: manual - on SIMs
Test: unit test
Change-Id: I0b8851da20face9ca444b3e6456a4a662b944b65
2024-03-15 15:25:55 +08:00
George Chang
b5d57eaa58 Revert "settings(dev): Remove NFC stack logging control"
This reverts commit a5bd1cf34f.

Bug: 329776725
Test: manual turn on/off debug logging.
Merged-In: I3c6026e230c7d35f04d9771442fadbf040a84b94
Change-Id: Ica004bb5f22636777287acfe1226b0f6a650d4f7
2024-03-15 05:55:41 +00:00
mxyyiyi
c9e8b8a011 Support Private Space in battery usage.
- Use database cache for single-user single-profile
- Reload battery usage info in other cases

Bug: 299032923
Test: manual
Change-Id: I5e524a094422639eedbf6e07eda498f3f72fccae
2024-03-15 11:13:34 +08:00
Chaohui Wang
67bfb4141f Merge "Fix simOnboardingLabelSimImpl_showItem_show3Items" into main 2024-03-15 03:08:22 +00:00