Commit Graph

51727 Commits

Author SHA1 Message Date
Chelsea Hao
11033433ee Merge "[Audiosharing] Impl "Listen with" row." into main 2023-11-22 10:56:43 +00:00
Jacky Wang
1ec4e51622 Merge "Prevent NPE in SettingsSliceProvider" into main 2023-11-22 10:56:15 +00:00
XingHai Lu
54e21392c6 Merge "Add sound related B&R function for Onboarding" into main 2023-11-22 10:12:53 +00:00
Yiyi Shen
f473b9f60e Merge "[Audiosharing] Reimpl audio sharing main switch" into main 2023-11-22 09:48:17 +00:00
chelseahao
43611adcf3 [Audiosharing] Impl "Listen with" row.
This row will show the currently connected and active LE buds. There
should be no more than one pair.

Bug: 308368124
Test: Manual
Change-Id: I281d7f7c6debaeb34b8206fe587cb776ea0eb0ec
2023-11-22 09:29:28 +00:00
Jacky Wang
2a617ae872 Prevent NPE in SettingsSliceProvider
NPE is raised when run `adb shell content query --uri
content://com.android.settings/settings/slice_uri_pairs`

Bug: 312400299
Test: manual test
Change-Id: I686476e5ea6b68bddbd6045c34bf889e249fa6b5
2023-11-22 17:25:49 +08:00
Shaowei Shen
fd45d6576f Merge "[PK Setting] Add null check on NewKeyboardSettingUtils.getInputDevice()" into main 2023-11-22 08:11:10 +00:00
shaoweishen
543a7589b1 [PK Setting] Add null check on NewKeyboardSettingUtils.getInputDevice()
return null if InputDeviceIdentifier is null in getInputDevice.

Test: n/a
Bug: 307109888
Change-Id: Ie2f951d97e0ff66833d74170e625fb0368d6de42
2023-11-22 05:02:49 +00:00
Yiyi Shen
ddebe7293b [Audiosharing] Reimpl audio sharing main switch
New flow: Automatically add sharing source to connected active device eligible for
audio sharing. And then pop up the dialog for users to choose an additinal eligible device
to share audio.

Old flow: Pop up the dialog first and add sharing source after user
interact to the dialog.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: If0d1609b2677ca9ecae926c198f305fd1f4e34d3
2023-11-22 11:38:01 +08:00
SongFerng Wang
7126fddfe4 Merge "Renew the API getCallState" into main 2023-11-22 01:47:55 +00:00
Amith Yamasani
6cf28bc052 Merge "Flag guard the quarantined apps screen" into main 2023-11-21 17:32:44 +00:00
Oli Thompson
c1e33f5080 Merge "Guard against duplicate calls to setQuietModeEnabled" into main 2023-11-21 13:37:03 +00:00
Marcelo Arteiro
a19a7e2cc9 Merge "Fixing wriong color on Setting's Profile Selector" into main 2023-11-21 13:31:50 +00:00
Treehugger Robot
e8f6a7572c Merge "Handle cached bluetooth device with stylus pref" into main 2023-11-21 12:59:39 +00:00
Yiyi Shen
5bbccc8701 Merge "[Audiosharing] Sort sharing candidates in Utils." into main 2023-11-21 12:23:59 +00:00
Ajinkya Chalke
dcb5bc6da5 Handle cached bluetooth device with stylus pref
- Checking whether a stylus has a tail button key is not possible when
  the device is cached, so assume that it does.
- Updated StylusDevicesControllerTest to use SwitchPreferenceCompat as
  there were unrelated tests that were failing. The actual test that
  would've caught the bug only started failing after the unrelated test
  failures were fixed.

Bug: 311334474
Test: atest StylusDevicesControllerTest
Flag: N/A
Change-Id: Iee2899bf0a77a70f4a4f76833f485d511d919c40
2023-11-21 11:15:29 +00:00
Charlotte Lu
41252bc6e6 Merge "Add delete apns" into main 2023-11-21 11:15:16 +00:00
Hansen Kurli
d881186df4 Merge "Create a new string to alert unsupported vpn start." into main am: 3c569b5379 am: 42ad676a4e am: b7ba4be4b3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2831551

Change-Id: Ib74982008d3e123b00cf235f39f1b2d8f182c585
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-21 10:02:27 +00:00
Hansen Kurli
b7ba4be4b3 Merge "Create a new string to alert unsupported vpn start." into main am: 3c569b5379 am: 42ad676a4e
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2831551

Change-Id: Iea863ecae495cd1273c8bb77ca61ee488b147865
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-21 09:30:49 +00:00
Chaohui Wang
8a5c1f422c Merge "New SystemUpdateRepository" into main 2023-11-21 09:27:24 +00:00
Marcelo Arteiro
17b8421469 Fixing wriong color on Setting's Profile Selector
Fixes: 283057775
Flag: N/A
Test: Manual
Change-Id: I8e79041634884c71b10a820083b42e971cff7330
2023-11-21 09:17:44 +00:00
Charlotte Lu
3fd6397a72 Merge "APNs missing while numeric is null in add mode." into main 2023-11-21 09:17:43 +00:00
Charlotte Lu
27ce9d95f8 Add delete apns
Test: Visual Test
Fix: 312361022
Change-Id: Idcc58ee6d511462bef857f29afab9fdd7be453d5
2023-11-21 17:15:05 +08:00
Zoey Chen
bfd3806613 Merge "[Regional Preference] Remove string from metrics" into main 2023-11-21 09:11:37 +00:00
Hansen Kurli
42ad676a4e Merge "Create a new string to alert unsupported vpn start." into main am: 3c569b5379
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2831551

Change-Id: I6ee70a33d9c5739ee2e44dcef8158c5f2b7767e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-21 08:59:06 +00:00
Hansen Kurli
3c569b5379 Merge "Create a new string to alert unsupported vpn start." into main 2023-11-21 08:21:33 +00:00
Yiyi Shen
1e71a03e65 [Audiosharing] Sort sharing candidates in Utils.
The active device is placed before the inactive one.
The bonded device is placed before the unbonded one.
The device with earlier bond timestamp is placed before the later one.
Otherwise, the device is ordered by name.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: Ie1eea7361fbed1635313b92790cec034cf669bbf
2023-11-21 07:59:14 +00:00
Charlotte Lu
3a1252a6d5 APNs missing while numeric is null in add mode.
Test: Visual Test
Fix: 312142091
Change-Id: I2b7d4580dcb3fda08ce8d147ed827ee4383befba
2023-11-21 14:47:15 +08:00
Zoey Chen
a76af961b2 [Regional Preference] Remove string from metrics
Bug: 296544040
Test: atest NumberingSystemItemControllerTest
Change-Id: I1e1dd678011a15bc22b167ddd12651a22f62dea9
2023-11-21 06:19:01 +00:00
Chaohui Wang
3534061f7b New SystemUpdateRepository
Extract getSystemUpdateIntent, and add unit test.

Bug: 311110616
Test: manual - on "Software updates" page
Test: unit test
Change-Id: Ic7c06490d1d324705f547b2394794605e85485a4
2023-11-21 14:09:57 +08:00
Charlotte Lu
6bb2c73579 Merge "APNs missing while numeric is null" into main 2023-11-21 05:32:12 +00:00
Hansen Kurli
e49454db98 Create a new string to alert unsupported vpn start.
Test: Manual test
Change-Id: Ic32db48671335a59c3bf8b43065cfef7c39c2936
2023-11-21 13:29:27 +08:00
Treehugger Robot
ccf02dcb11 Merge "Fix crash when clicking Spell Checker" into main am: e4f376f7ef am: 8a2a127435 am: 1e4c05ef7c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2828056

Change-Id: I4b6a924d4672cf4b101606a499c5f4f5143159d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-21 04:54:24 +00:00
Treehugger Robot
1e4c05ef7c Merge "Fix crash when clicking Spell Checker" into main am: e4f376f7ef am: 8a2a127435
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2828056

Change-Id: I34e1cefc34f737ecf1e4b13bf3a8839e7e3a4bee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-21 04:20:49 +00:00
Treehugger Robot
8a2a127435 Merge "Fix crash when clicking Spell Checker" into main am: e4f376f7ef
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2828056

Change-Id: Idb4ebe7592c2bdf2685fb20c95b57c20565c0dcd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-21 03:49:50 +00:00
Treehugger Robot
e4f376f7ef Merge "Fix crash when clicking Spell Checker" into main 2023-11-21 03:13:59 +00:00
Jason Chiu
1ffc3df42a Merge "Disable the large screen optimization system property by default" into main 2023-11-21 03:01:57 +00:00
Treehugger Robot
47a9ea6d33 Merge "Make Color inversion shortcut searchable" into main 2023-11-21 03:01:06 +00:00
Chun-Ku Lin
2d45bcccab Merge "Update strings for stopping accessibility services" into main 2023-11-20 19:46:25 +00:00
Chun-Ku Lin
698458c5cd Update strings for stopping accessibility services
Flag: EXEMPT
Flag exempt reason: low risk changes. Mostly text changes

Test: manual - turn on Talkback and turn off Talkback and see the dialog
Test: atest ToggleAccessibilityServicePreferenceFragmentTest
Bug: 286549065
Change-Id: I90869b5fca0500739f65d0b0ef3331cb728be685
2023-11-20 18:53:32 +00:00
Chris Antol
8e4c2473e8 Merge "Make Mainline Module update intent explicit" into main 2023-11-20 18:39:22 +00:00
Rongxuan Liu
d153a82f20 Merge "Control broadcast assistant profile connection with le toggle" into main 2023-11-20 18:32:06 +00:00
Charlotte Lu
276f30e3b0 APNs missing while numeric is null
Test: Visual Test
Fix: 312142091
Change-Id: I1920e3e2dd534d385d0282295e0c3680051d4728
2023-11-20 11:23:46 +00:00
SongFerng Wang
2d16858c17 Renew the API getCallState
Since the getCallState was marked as @Deprecated, renew this API as the getCallStateForSubscription. 

Bug: 279852410
Test: build pass

Change-Id: I224164a2d1089483d4f63da1651d7e87296e87f4
2023-11-20 10:49:19 +00:00
Quang Luong
8edc0b7052 Merge "Use WifiEntry.shouldShowSsid() to show SSID" into main 2023-11-20 08:24:24 +00:00
Roy Chou
5d9571bcee Merge "fix(text preference): fix preview block ui broken in SUW" into main 2023-11-20 03:11:29 +00:00
Roy Chou
004238d7f8 fix(text preference): fix preview block ui broken in SUW
As previous cl ag/25185014 we increased the preview block horizontal padding when landscape mode. However, in setup wizard it uses GlifPreferenceLayout so the settings page only has half screen width when landscape mode, so the preview block ui is squished due to limited width. Also, setup wizard package has overlay the paddings to larger than our prevoius adjust. Therefore, we rollback the changes in accessibility_text_reading_preview.xml to get the default padding, then add checker to increase the paddings if needed at runtime.

Bug: 309590083
Test: manually
Test: atest TextReadingPreviewPreferenceTest
Test: atest TextReadingPreferenceFragmentForSetupWizardTest
Change-Id: Ib907f4182eed272b84a4ab6208ea2d8a89ba96c4
2023-11-20 03:10:33 +00:00
Mill Chen
0fa4b503d9 Make Color inversion shortcut searchable
The color inversion shortcut is not searchable because this preference
is dynamically created. In order to make it searchable, we should add
index raw data for this preference.

Fixes: 223514734
Test: manual test
1) Open Settings search
2) Search for shortcut
3) check that the search results have Color inversion shortcut

Change-Id: I354d0c0e63cc12bd5012d7f26a165278a40bcf2d
2023-11-19 15:34:13 +08:00
Rongxuan Liu
54c2f4dd4b Control broadcast assistant profile connection with le toggle
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDetailsProfilesControllerTest
Test: manual test with le toggle and check bass profile is
enabled/disabled
Bug: 300227308

Change-Id: If61b1edadb24b53661bb74173c243826f31956ae
2023-11-17 23:59:43 +00:00
Amith Yamasani
f2f29ab20f Flag guard the quarantined apps screen
Ensure the screen itself is flag-guarded, not just the entry point
in Developer Options.

Fixes: 311724167
Test: m -j
      flash, ensure feature is off, search for quarantined in Settings
      search, ensure no results
Change-Id: I4efaf1f7c6452d2ce6115f40fffa16963ee7c244
2023-11-17 11:42:43 -08:00