Commit Graph

135470 Commits

Author SHA1 Message Date
Allen Su
00c40d85cd Implement B&R for locale notification
Bug: 275306477
Test: by manual
Change-Id: I11471227a1c9263846f9451002d1ef149b460f7d
2023-10-11 16:28:27 +00:00
Allen Su
7b31a7a612 Fix notificaiton not working in work profile
Bug: 298592379
Test: atest SettingsRoboTests:com.android.settings.localepicker
Change-Id: I1da93e0dd2a7f98c2e635a1d7a520c88ba8258e0
2023-10-02 09:34:40 +00:00
Charlotte Lu
4b453bad21 Merge "Add SettingsExposedDropdownMenuBox and SwitchPreference." into main 2023-09-20 07:02:19 +00:00
Angela Wang
e0313e1abe Merge "Hide pair other ear button after device connected via CSIP" into main 2023-09-20 05:59:08 +00:00
Chaohui Wang
feda805041 Merge "New NetworkOperatorSettingsTest" into main 2023-09-20 04:22:54 +00:00
Charlotte Lu
b0d09d2ad2 Add SettingsExposedDropdownMenuBox and SwitchPreference.
Bug: 298906796
Test: Munual
Change-Id: I666c51b79589b9529b623c81c156a545af269e03
2023-09-20 12:22:19 +08:00
Chun-Ku Lin
74cf9db43f Merge "Fix ScreenFlashNotificationColorDialogFragmentTest by launching the fragment in modern way." into main 2023-09-20 03:42:54 +00:00
XingHai Lu
09b7b127e5 Merge "Add flag for B&R sound settings" into main 2023-09-20 01:59:30 +00:00
Becca Hughes
dce410276c Merge "Use isPrimary bit when determining settings data change" into main 2023-09-19 22:08:30 +00:00
Jason Chang
ba14b4b5c2 Merge "Fix rotate device at face unlock detailed page, device will display redundant face unlock header." into udc-qpr-dev am: 7c1b1fc934 am: 0e850e9d73
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24399253

Change-Id: Icb44d81e49551a43374eceadc709a1c1d680c8a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 16:49:47 +00:00
Becca Hughes
640b9958b3 Merge "Fix crash in settings page (enterprise)" into main 2023-09-19 16:40:01 +00:00
Jason Chang
0e850e9d73 Merge "Fix rotate device at face unlock detailed page, device will display redundant face unlock header." into udc-qpr-dev am: 7c1b1fc934
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24399253

Change-Id: I204498f1e2f580d5d8f7ce8a64e904a780b9e25a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 15:51:56 +00:00
Jason Chang
7c1b1fc934 Merge "Fix rotate device at face unlock detailed page, device will display redundant face unlock header." into udc-qpr-dev 2023-09-19 15:15:24 +00:00
Treehugger Robot
8a1fc230f2 Merge "Fixed the robo test failed in AmbientDisplayAlwaysOnPreferenceControllerTest" into main 2023-09-19 13:46:21 +00:00
SongFerng Wang
176d358c32 Merge "Remove the cached display name" into udc-qpr-dev am: 26a1866b8d am: c7ea38203a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24793547

Change-Id: If9ddb12284b6e4022c18bd54095eb67b8809d985
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 13:17:07 +00:00
Sunny Shao
cd75cad83e Fixed the robo test failed in AmbientDisplayAlwaysOnPreferenceControllerTest
- Change the test name because the function content was swapped
  between isPublicSlice and isSliceable.

Fixes: 300376009
Test: atest AmbientDisplayAlwaysOnPreferenceControllerTest
Change-Id: I922810c81a44d6954cd167097c62cdc798238e2e
2023-09-19 20:27:23 +08:00
SongFerng Wang
c7ea38203a Merge "Remove the cached display name" into udc-qpr-dev am: 26a1866b8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24793547

Change-Id: I0c006b215c02acda9a44e717165249fbbd8f353a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 12:22:25 +00:00
SongFerng Wang
26a1866b8d Merge "Remove the cached display name" into udc-qpr-dev 2023-09-19 11:41:38 +00:00
Chun-Ku Lin
186644aa6e Fix ScreenFlashNotificationColorDialogFragmentTest by launching the
fragment in modern way.

Fix: 300158485
Test: atest ScreenFlashNotificationColorDialogFragmentTest
Change-Id: I3396b05ad78501b38e68360e25389966d379aacb
2023-09-19 08:40:36 +00:00
Treehugger Robot
ed05dd4994 Merge "Move spatial_audio_speaker to res-product" into main 2023-09-19 08:18:03 +00:00
Treehugger Robot
d7d8184bb7 Merge "Use system properties for the le audio toggle ui config instead" into udc-qpr-dev am: 2d7a469264 am: b15719119e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24768698

Change-Id: I88024462c4587db39a5e6671223504a5b7938c49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 08:00:32 +00:00
Treehugger Robot
b15719119e Merge "Use system properties for the le audio toggle ui config instead" into udc-qpr-dev am: 2d7a469264
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24768698

Change-Id: Ie138a425906541eb2bc8f1c08a8956636363a141
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 07:05:06 +00:00
Chaohui Wang
3cba8ab408 Move spatial_audio_speaker to res-product
Bug: 289155281
Test: m Settings
Change-Id: I72582965c18e5ba4850a1dbd3f54421b71ddd9a9
2023-09-19 14:57:18 +08:00
Treehugger Robot
47a587ae36 Merge "Clean up ChartDataUsagePreference.setColors()" into main 2023-09-19 06:47:13 +00:00
Treehugger Robot
2d7a469264 Merge "Use system properties for the le audio toggle ui config instead" into udc-qpr-dev 2023-09-19 06:31:29 +00:00
SongFerngWang
d21f14a002 Remove the cached display name
If the display name is changed, then the Settings should remove the
cached display name.

Bug: 296157273
Test: [pass] atest SubscriptionUtilTest  [pass]Build and manual test
Change-Id: I3b1297ddddf9f9051dd16523b97fc27255cf3923
2023-09-19 06:25:33 +00:00
Chaohui Wang
e5f9d27690 Merge "Add ApnData class and SettingsOutlinedTextField." into main 2023-09-19 06:24:32 +00:00
XingHai Lu
990412f23a Add flag for B&R sound settings
Bug: 278975761
Test: adb shell device_config put onboarding_experience com.android.settings.flags.enable_sound_backup true
Change-Id: Ia774b1d5f3740b4964eb3cb1501ea4779f203956
2023-09-19 14:06:58 +08:00
Angela Wang
7a15ecafde Hide pair other ear button after device connected via CSIP
The pair other ear button should disappear after both ears of binaural
hearing aids are connected.

Remove checking if CSIP is enabled since CSIP is always enabled in
pairing stage.

Bug: 296646732
Test: check the UI manually
Change-Id: I804819eef41b5d3754ad0a79d9fc1afc66cef5cc
2023-09-19 04:49:35 +00:00
Xinyi Mao
b7b653d66e [automerger skipped] Merge "App anomaly tips on PowerUsage App list" into udc-qpr-dev am: 821ed07099 am: 8d91b3116b -s ours
am skip reason: Merged-In Ic02db49cb3794ef134759d9dcec5f5ef32454a95 with SHA-1 56ba1c09d9 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24677374

Change-Id: I5916e93a6c1d88256641b766b92e9117da7b9e8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 03:38:48 +00:00
Treehugger Robot
88c1d16d8f Merge "Update the Spatial audio strings for tablet." into udc-qpr-dev am: 724e3c430d am: d297394f68
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24632576

Change-Id: I8526c0e639b9952741303e8a766aad189ece025d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 03:37:30 +00:00
Xinyi Mao
8d91b3116b Merge "App anomaly tips on PowerUsage App list" into udc-qpr-dev am: 821ed07099
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24677374

Change-Id: I15dad922e0942175e56370a7001ada1afe2c19b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 03:36:03 +00:00
Xinyi Mao
821ed07099 Merge "App anomaly tips on PowerUsage App list" into udc-qpr-dev 2023-09-19 03:10:17 +00:00
Xinyi Mao
acb47b00f4 Merge "App anomaly tips on PowerUsage App list" into main 2023-09-19 03:09:48 +00:00
Charlotte Lu
4964deb8b5 Add ApnData class and SettingsOutlinedTextField.
Bug: 298906796
Test: Munual
Change-Id: Iba6563fee091302989d2653c0b59b5c18accce4d
2023-09-19 11:03:00 +08:00
Treehugger Robot
d297394f68 Merge "Update the Spatial audio strings for tablet." into udc-qpr-dev am: 724e3c430d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24632576

Change-Id: Iadc0656d48d1027123d6ea2f2186b7b8a23a9715
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 02:42:44 +00:00
Treehugger Robot
724e3c430d Merge "Update the Spatial audio strings for tablet." into udc-qpr-dev 2023-09-19 01:50:18 +00:00
Guojing Yuan
dfc20ff941 [CDM Perm Sync] Fix a NPE for Perm Sync toggle am: 8c51d9c71d am: cf705cf873
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24790419

Change-Id: I10fccd7b4036a57cdb665eb22a79b600fb006898
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18 23:17:16 +00:00
Guojing Yuan
cf705cf873 [CDM Perm Sync] Fix a NPE for Perm Sync toggle am: 8c51d9c71d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24790419

Change-Id: I8cdf0fb8b740ffd32fac9c01aa0d4dfa51904b14
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18 22:20:37 +00:00
Becca Hughes
0335c2281a Use isPrimary bit when determining settings data change
Test: ondevice
Bug: 300538357
Change-Id: Ic155835761f850358527648a0628b72aab9a2323
2023-09-18 14:00:00 -07:00
Becca Hughes
d0375beae9 Fix crash in settings page (enterprise)
Fixes a crash on the settings page
where the managed user fetcher
will return null.

Test: cts, atest, flash on enterprise device
Bug: 298678607
Change-Id: I8866bad92790f342a8a767b317967b5bf784d865
2023-09-18 13:32:09 -07:00
Guojing Yuan
8c51d9c71d [CDM Perm Sync] Fix a NPE for Perm Sync toggle
Bug: 290063372

Test: manual test on the breaking build.
Change-Id: I1f0a5c3840a4c97962fa9986d8f67ab0f652015f
2023-09-18 18:44:10 +00:00
Behnam Heydarshahi
7549d613e6 Set a11y focus for selected Settings item
When a Settings preference item is selected via a settings panel or
settings search, the system takes user to its corresponding subsettings
activity. There, in the past, the selected preference was highlighted
but the a11y focus was set on the back button. This code sets the a11y
focus on the selected preference.

Bug: b/285512439
Test: atest HighlightablePreferenceGroupAdapterTest
Change-Id: I7edc697e2e3870b1822279c115230add14e82df0
2023-09-18 18:30:12 +00:00
Chaohui Wang
79f0f6e368 Clean up ChartDataUsagePreference.setColors()
This method is no-op.

Bug: 290856342
Test: manual - on DataUsageList
Change-Id: Ice64630bc43afe7116b797425a5ea81b2d0ad5af
2023-09-18 23:45:54 +08:00
Jason Chang
f0fccc22a4 Fix rotate device at face unlock detailed page, device will display
redundant face unlock header.

In AndroidManifest.xml to apply Theme.Settings.NoActionBar theme
attribute to avoid action_bar appears accidentally.

Bug: 293978245

Test: manually check UI with reproducible steps:
Pre-Condition:
1) enroll face
2) enable auto rotate

Procedure:
1) go to settings > security > face & fingerprint unlock
2) enter screen lock
3) click face unlock
4) rotate device into landscape mode and then back to portrait mode
5) check the UI

Change-Id: I065ff5821a91eb8060dd98b373fce34cae769c66
2023-09-18 12:28:43 +00:00
mxyyiyi
56ba1c09d9 App anomaly tips on PowerUsage App list
Screenshots:
[in bg - banner] https://screenshot.googleplex.com/MzLC6LfX93TkkYf
[in bg - hints] https://screenshot.googleplex.com/9JLXNsRiVG8arAU
[in fg - banner] https://screenshot.googleplex.com/9oYbwUkeeLbQX2t
[in fg - hints] https://screenshot.googleplex.com/53DTTUCUnf8rsoE
[apps anomaly highlight hint + settings anomaly banner]
https://screenshot.googleplex.com/8NdS2VMrSzwv2DM

Bug: 291689643
Bug: 291689623
Test: manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bfd0f5859b6e5ffef4727ee562009f2050de7a58)
Change-Id: Ic02db49cb3794ef134759d9dcec5f5ef32454a95
2023-09-18 10:41:27 +00:00
mxyyiyi
e9378d27f7 App anomaly tips on PowerUsage App list
Screenshots:
[in bg - banner] https://screenshot.googleplex.com/MzLC6LfX93TkkYf
[in bg - hints] https://screenshot.googleplex.com/9JLXNsRiVG8arAU
[in fg - banner] https://screenshot.googleplex.com/9oYbwUkeeLbQX2t
[in fg - hints] https://screenshot.googleplex.com/53DTTUCUnf8rsoE
[apps anomaly highlight hint + settings anomaly banner]
https://screenshot.googleplex.com/8NdS2VMrSzwv2DM

Bug: 291689643
Bug: 291689623
Bug: 284893240
Test: manual
Change-Id: Ic02db49cb3794ef134759d9dcec5f5ef32454a95
Merged-In: Ic02db49cb3794ef134759d9dcec5f5ef32454a95
Merged-In: I7015cdf5a96d518febb160934d780ae84fe14427
2023-09-18 18:28:20 +08:00
Treehugger Robot
71235aa403 Merge "Fixed the robo test failed in FoldLockBehaviorSettingsTest" into main 2023-09-18 07:36:10 +00:00
Sunny Shao
572636110a Fixed the robo test failed in FoldLockBehaviorSettingsTest
- Use the ShadowSystemSettings instead of SystemSettings.

Fixes: 300201006
Test: atest SettingsRoboTests:com.android.settings.display.FoldLockBehaviorSettingsTest
Change-Id: I360bda0b0b35692e0eaf2060aadb791ecb9dd039
2023-09-18 14:27:16 +08:00
Charlotte Lu
fcf31b668d Merge "Use flag to switch to the new UI." into main 2023-09-18 05:24:30 +00:00