Commit Graph

53415 Commits

Author SHA1 Message Date
Joshua Mccloskey
4c43b094d9 Merge "Adding back screenshot test to Settings." into main 2023-11-09 23:27:56 +00:00
Hao Dong
9cade2cbc0 Merge "Add fingerprint name to delete button content description." into main 2023-11-09 19:45:10 +00:00
Hao Dong
f2d2de494d Add fingerprint name to delete button content description.
Test: atest FingerprintPreferenceTest
Bug: 308671557

Change-Id: I5a7d402835124a50fd1268745eca1e28c865dc18
2023-11-09 17:14:42 +00:00
Tetiana Meronyk
80ae4b3c41 Disable multiuser toggle om COPE device and add explanation dialog
Bug: 304359233
Test: set up device in COPE mode and check toggle in Settings -> System -> Multiple Users

Change-Id: I0edd58651f94c9f9a51349025a29e33a1e1a9c14
2023-11-09 14:46:55 +00:00
Chaohui Wang
d8b21d7846 Avoid unnecessary Html.fromHtml()
Check if string contains html tag, before call Html.fromHtml()

Fix: 308681068
Test: atest SubscriptionsPreferenceControllerTest
Test: atest ProviderModelSliceHelperTest NetworkProviderWorkerTest
Test: manual - on Internet page
Change-Id: Id914689f2861a8c997d18afd03ecfdf47b91c631
2023-11-09 11:10:43 +00:00
Chaohui Wang
62e64c592e Merge "Let SpaBridgeActivity support ActivityEmbedding" into main 2023-11-09 09:39:36 +00:00
Manish Singh
cb33938d90 Merge "Deep copy the existing Arguments" into main 2023-11-09 09:20:03 +00:00
Joseph Vincent
164e2e4ff7 Merge "Start All Apps on successful PrivateSpace setup completion" into main 2023-11-09 09:15:30 +00:00
Treehugger Robot
34bca0fc59 Merge "[Panlingual] Only set description for STS and TB in remove mode" into main 2023-11-09 05:49:11 +00:00
Treehugger Robot
96718215a2 Merge "Refine FaceEnrollEducation UI" into main 2023-11-09 05:01:47 +00:00
Quang Luong
9d6cff4665 Merge "Show wifi list progress bar when scanning" into main 2023-11-09 04:51:21 +00:00
Zoey Chen
192d379ace [Panlingual] Only set description for STS and TB in remove mode
Bug: 301715723
Test: manual
Change-Id: I09403830cad362b4f839645f645cf620e33047fa
2023-11-09 04:33:31 +00:00
Manish Singh
6ce9c37701 Deep copy the existing Arguments
Otherwise we end up using the same bundle for all the fragments.

Bug: 304697867
Test: manual
Test: atest ProfileSelectFragmentTest
Change-Id: Ia31f2440516783c22849593922467756c8c54cb9
2023-11-08 20:53:58 +00:00
Manish Singh
ba6d29db7e Merge "Check all users if anyone needs a new tab" into main 2023-11-08 20:29:00 +00:00
Treehugger Robot
713c324cee Merge "Validate ringtone URIs before setting" into udc-dev am: 410fe2f16e am: e808116b30
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24969251

Change-Id: Iac60d9e5d71e6c544ee4b4d2224e3c2bc1cae051
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 20:18:08 +00:00
Treehugger Robot
deddbe2720 Merge "Validate ringtone URIs before setting" into udc-dev am: 410fe2f16e am: 8f3d594305
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24969251

Change-Id: I6f6b9daa2a8794cfc7eb64217b87184f75a0e383
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 19:20:14 +00:00
Treehugger Robot
8f3d594305 Merge "Validate ringtone URIs before setting" into udc-dev am: 410fe2f16e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24969251

Change-Id: Idefa9ae0fd0a1bbd2353d518307bf32369c1f21b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 18:46:03 +00:00
Treehugger Robot
e808116b30 Merge "Validate ringtone URIs before setting" into udc-dev am: 410fe2f16e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24969251

Change-Id: I974f2442cb132cc97bdd843fbc3840e268f361fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 18:42:27 +00:00
Treehugger Robot
410fe2f16e Merge "Validate ringtone URIs before setting" into udc-dev 2023-11-08 18:05:31 +00:00
Omer Ozer
1d9c2a6f11 Change the existing permission to a system level perm
for factory reset prep.

Bug: 302016478
Test: local
Change-Id: If8ede49445ce1e26a77af04216654c8f9db9c421
2023-11-08 16:31:51 +00:00
Hansen Kurli
eea7c3c8d5 Catch UnsupportedOperationException of startLegacyVpn
startLegacyVpn may throw UnsupportedOperationException. Instead
of crashing Settings, catch the exception and show a Toast.

Bug: 161776767
Test: Manual test, connect legacy vpn profile and observe Toast.
Change-Id: I5947f2043aa68478f659b34531202f225eab4568
2023-11-08 20:39:00 +08:00
Ajinkya Chalke
e9c09d9c83 Merge "Conditionally add tail button pref" into main 2023-11-08 11:09:28 +00:00
Jason Chiu
769fbae59f Prevent ANR while receiving volume broadcasts to update slices
Use ConcurrentHashMap for registering Uri to the audio stream, and
remove synchronized blocks from the receiver.

Fix: 302234235
Fix: 301777614
Test: manual, robotest
Change-Id: I5cca209baf9756aebb8ff44b7e8e9671d2c7aaad
2023-11-08 10:44:57 +00:00
josephpv
6def09c9eb Start All Apps on successful PrivateSpace setup completion
Bug: 309130594
Test: Verified Launcher App Alls is launched on setup complete
Change-Id: I6842d85617e3862f18b2183e8dda7bd7b575bce8
2023-11-08 10:38:09 +00:00
Yiyi Shen
28ef49e0ac [Audiosharing] Impl the stop audio sharing dialog.
Show the dialog when an ineligible remote device connected during the
sharing session.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: I3b3cc2e5e20dab7c07f9979bc01f53d6127ea20b
2023-11-08 18:08:35 +08:00
Chaohui Wang
0e1edc6c74 Merge "Fix ContentProtectionTogglePreferenceController" into main 2023-11-08 09:05:22 +00:00
Chaohui Wang
32d9280e97 Merge "Revert^2 "Migrate to CompoundButton.OnCheckedChangeListener"" into main 2023-11-08 09:05:22 +00:00
Treehugger Robot
f883aa843e Merge "Fix ListPreference title cutted off problem" into main 2023-11-08 08:42:48 +00:00
Quang Anh Luong
884c5ab9bf Show wifi list progress bar when scanning
Show the progress bar in Internet Settings while we're currently
scanning for networks, and then stop when we receive the results of the
scan.

Bug: 308567866
Test: manually verify progress bar is shown while wifi is scanning
Change-Id: Ice500c69d24f7843b1a6b64c9ac5245b16c7c0db
2023-11-08 17:30:52 +09:00
MiltonWu
96591ed001 Refine FaceEnrollEducation UI
Update switch button style and adjust the margin for head motion swith
button on the end of FaceEnrollEducation page

Bug: 293274664
Test: Manually check UI
Change-Id: Ifff42364c75bc7c0a83a0211743dcd1e50f04aac
2023-11-08 16:10:53 +08:00
Xinyi Mao
7350779738 Merge "Add log of BatteryEvent and BatteryUsageSlot while dumpping." into main 2023-11-08 08:06:44 +00:00
Sunny Shao
b0942b61ed Fix ListPreference title cutted off problem
- Remove the code of the setSingleLineTitle.
- Remove the additional code in the SpellCheckerPreference.

Fixes: 306795084
Test: manual test
Change-Id: Ib279496b9456cab9df9c542b8fee455d28ef01d9
2023-11-08 15:54:11 +08:00
Yiyi Shen
0a5bbd34b9 Merge "[Audiosharing] Add audio sharing section to Connected devices page." into main 2023-11-08 07:33:09 +00:00
mxyyiyi
56aa92f7c4 Add log of BatteryEvent and BatteryUsageSlot while dumpping.
Test: manual
Bug: 294945588
Change-Id: If3cb4a4014d20f0d0c6275f54d141c1bdb4ac962
2023-11-08 14:46:52 +08:00
Chaohui Wang
972a94a374 Merge "Prevent Erase SIM during call" into main 2023-11-08 06:11:30 +00:00
Yiyi Shen
2f2afa22fd [Audiosharing] Add audio sharing section to Connected devices page.
The section will show up during a sharing session.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: I59cf81b35dcbf328b253d72d7fdc86af450251ee
2023-11-08 13:41:05 +08:00
Yiling Chuang
c57d1ef69a Merge "Provide the flexibility to add more tip detector" into main 2023-11-08 04:51:57 +00:00
Faye Yan
af9bbb9faf Merge "Filter out apps that are not pre-granted with voice activation permission for voice activation apps." into main 2023-11-08 04:40:48 +00:00
fayey
3c533755ec Filter out apps that are not pre-granted with voice activation
permission for voice activation apps.

Bug: 306447565
Bug: 303727896
Bug: 309677303
Test: presubmit
Change-Id: Iecdfdb158029e139283233cbfbae7b405a916f24
2023-11-08 03:24:44 +00:00
Chaohui Wang
478ab50c01 Prevent Erase SIM during call
By collecting call state and only enable preference when idle.

Fix: 298893271
Test: manual - on Mobile Settings during call
Test: unit tests
Change-Id: Ifd567a6b68a3efbb0b42bfa0233f7c54eca07ae1
2023-11-08 03:08:56 +00:00
Yi-Ling Chuang
ac8925518a Provide the flexibility to add more tip detector
Bug: 309054332
Test: robotests
Change-Id: I650141072b6de6c4dcdbbb853fb9997295d6e929
2023-11-08 10:39:59 +08:00
Kyle Zhang
061cf714f8 Add Widevine developer option to settings
Bug: 301669353
Change-Id: Idcca4cc6ce2e614a79a0ac95eb8c39cf05b91f56
2023-11-08 00:25:33 +00:00
Treehugger Robot
a1903353da Merge "Scroll-down after click accessiblity button" into main 2023-11-07 22:52:21 +00:00
Ajinkya Chalke
15c617625a Conditionally add tail button pref
- The connected device settings shouldn't show the tail button pref
  setting if the input device doesn't support it.

Bug: 293472525
Test: atest StylusDevicesControllerTest
Flag: NONE
Change-Id: I50ab43e971b0dd8530a5bdab8544a46e889366ee
2023-11-07 17:39:29 +00:00
YK Hung
b75a956c10 Merge "Update the constant fields in the BatteryOptimizeUtils" into main 2023-11-07 16:27:32 +00:00
Manish Singh
779cda70d9 Check all users if anyone needs a new tab
Earlier we were making decision based on the first user that has the
SHOW_IN_SETTINGS_SEPARATE property. A later user could require a new tab
as well.

Bug: 309605138
Test: manual
Change-Id: Ib4fd88d31153974dfad07c0b815ef011b11d1567
2023-11-07 15:01:37 +00:00
Chaohui Wang
bf70edddd0 Fix ContentProtectionTogglePreferenceController
The OnMainSwitchChangeListener is replaced with OnCheckedChangeListener

Bug: 306658427
Test: m Settings
Change-Id: I24021cb9acb308c3f85e51e9f79ad2bf564c789a
2023-11-07 14:18:13 +00:00
Chaohui Wang
08a1c9876e Revert^2 "Migrate to CompoundButton.OnCheckedChangeListener"
8979681a8d

Change-Id: I60edd3aabf49afbe4aa016af780baa68d928bddf
2023-11-07 14:17:15 +00:00
Sebastian Pickl
8979681a8d Revert "Migrate to CompoundButton.OnCheckedChangeListener"
Revert submission 25147565-onSwitchChanged-CompoundButton

Reason for revert: breaking builds 

Bug:309601476

Reverted changes: /q/submissionid:25147565-onSwitchChanged-CompoundButton

Change-Id: Ie746db87d9c642599593aa3d5e5baf6b7ba89c0e
2023-11-07 13:26:36 +00:00
Chaohui Wang
71d1f021af Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427
Test: manual - check Settings pages
Change-Id: If2e08a9a9557ec66a3b31ef18cd2e15943098a59
2023-11-07 20:22:27 +08:00