Commit Graph

121152 Commits

Author SHA1 Message Date
Zoey Chen
6929616581 [Settings] NPE when finish MobileNetworkSettings
Add NPE protection when finish

Bug: 271524675
Test: local test
Change-Id: I74bb54f2e591534b411589c150ce0bd993c2e6dd
2023-03-24 13:08:29 +00:00
Vania Januar
8c6699906a Fix broken test for stylus button Settings.
Test was not negated when the Settings was renamed.

Test: StylusDevicesControllerTest
Bug: 267595764
Change-Id: Ic369d0fefe3f23a9489fe49eff8329e755988178
2023-03-24 12:18:42 +00:00
Vania Januar
6e7d77a4bf Use the correct SettingsEnum for the USI device details page.
Bug: 261988317
Test: just an enum
Change-Id: I2d7820446f723c2a9d084f6913a7d675d83c31eb
2023-03-24 11:28:32 +00:00
Matías Hernández
005a382091 Prevent guest users from toggling "hide silent notifications"
This is a global setting, not per user, and shouldn't be modifiable by a guest. It can still be toggled by other, "normal" users, for the same global effect.

Fixes: 260570341
Test: atest
Change-Id: Id6e1803b5364f3b50bdbc14af0468979c96b5638
2023-03-24 12:15:58 +01:00
changbetty
d31f12eb4e To fix the footer link is not clickable in the Bluetooth Settings
- Links are not allowed in footer preference title now. So follow the
   Wi-Fi UX design to add the string "Change". Let the user to click and
   go to the Bluetooth scanninng settings

Bug: 265167737
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=BluetoothSwitchPreferenceControllerTest

Change-Id: If9e666df7b987e0dbe3d550ac0af03b9d79230de
Merged-In: If9e666df7b987e0dbe3d550ac0af03b9d79230de
2023-03-24 09:23:27 +00:00
Yanting Yang
d1d2374b89 Merge "Remove unnecessary indexes for Location services" into udc-dev 2023-03-24 07:42:02 +00:00
Yanting Yang
5b95f6384b Remove unnecessary indexes for Location services
Remove the indexes from LocationServicesForWork since it is only used
in the two tabs scenario. Should not provide its entry in Settings
Search to launch it independently.

Bug: 265056058
Test: manual
Change-Id: I495c6e9c913acb1da3fd759f0d2e12fc7d935389
2023-03-24 15:39:24 +08:00
TreeHugger Robot
e2eb822266 Merge "Imporve UI of system langauge list" into udc-dev 2023-03-24 07:37:05 +00:00
Treehugger Robot
caea0d9aff Merge "Clean up Settings to allow a2dp, hfp, and le audio to be simultaneously connected on the same device" am: ca3aa2a557 am: 9526a60e6b am: 9145d7e6ce
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2375795

Change-Id: Ic7ad166567137761143322e108fd66854caa9edc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 02:54:13 +00:00
Treehugger Robot
9145d7e6ce Merge "Clean up Settings to allow a2dp, hfp, and le audio to be simultaneously connected on the same device" am: ca3aa2a557 am: 9526a60e6b
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2375795

Change-Id: I0eac72eb5e473771f4792916fb5ae2211aae1e42
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 02:24:11 +00:00
Treehugger Robot
9526a60e6b Merge "Clean up Settings to allow a2dp, hfp, and le audio to be simultaneously connected on the same device" am: ca3aa2a557
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2375795

Change-Id: Ic2fb8afdd80cd3892aeccb45fafec6b65de1e68f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 01:55:21 +00:00
Treehugger Robot
ca3aa2a557 Merge "Clean up Settings to allow a2dp, hfp, and le audio to be simultaneously connected on the same device" 2023-03-24 01:24:50 +00:00
Rahul Sabnis
b1e25950b8 Clean up Settings to allow a2dp, hfp, and le audio to be simultaneously
connected on the same device

Removes the classic audio toggles for dual mode audio devices.

Bug: 257881495
Test: Manual
Change-Id: Ie6794b4d904c74a7c5137ad141172c10188a99f9
2023-03-23 16:51:49 -07:00
Bill Yi
e0c151f401 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: 9850976bf3 -s ours am: 3fd3c68bc9 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6b12e6d6f54498621874e018c19da0b3c904a9a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 19:05:23 +00:00
Bill Yi
f58ee3f5f1 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 5fb9d8914e -s ours am: b9446778d8 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id6d39000e5fde2309e4a82483db0da9584311747
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 19:03:22 +00:00
William Loh
6e5e43829b Merge "Keep same behavior after initiatingPackageName change" into udc-dev 2023-03-23 18:42:04 +00:00
Bill Yi
3fd3c68bc9 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: 9850976bf3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0d1957fbd821e1f1201999f26d700a6c05ed26c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 18:33:40 +00:00
Bill Yi
b9446778d8 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 5fb9d8914e -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia334891d08bd4618c11d3a94051d03011ae11b22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 18:33:16 +00:00
Bill Yi
9850976bf3 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-03-23 18:03:14 +00:00
Ioana Alexandru
f8662a4f40 Merge "Clarify notifications behavior in bypass setting." into udc-dev 2023-03-23 17:53:25 +00:00
Bill Yi
8e1e45468b Merge changes from topic "tc_change_23032218_17" into udc-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: af01fb89de
  Import translations. DO NOT MERGE ANYWHERE
2023-03-23 17:46:19 +00:00
Daniel Norman
c76b568914 Merge "Update Settings animation to use new slide style when in SUW." into udc-dev 2023-03-23 17:17:20 +00:00
Becca Hughes
cbbab3632c Merge "Add settings intent dialog" into udc-dev 2023-03-23 17:07:56 +00:00
YK Hung
72690c6844 Merge "Update battery settings page footer string" into udc-dev 2023-03-23 15:55:03 +00:00
jasonwshsu
625ffa85b8 Check whether support telephony for hearing device call routing
Root Cause: Tablet might not support Call

Solution: Check isVoiceCapable() first

Fix: 270472166
Test: make RunSettingsRoboTests ROBOTEST_FILTER=HearingDeviceCallRoutingPreferenceControllerTest
Change-Id: Icf69d286f63a737941447a6c16a08b4bb8c1fe23
2023-03-23 20:07:28 +08:00
Treehugger Robot
0bf3e6c9a4 Merge "Hide TTS search results if no TTS engine is available" am: 993f582fca am: 7b4a3ada12 am: ebfd790f38
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2493859

Change-Id: Ib5248f616a93ecc8b734291e80fd2160288f2c1f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 10:53:54 +00:00
Alexander Milantev
cb227a79a2 Merge "Enabled Settings Core activity embedding for Assistant" into udc-dev 2023-03-23 10:44:28 +00:00
Treehugger Robot
ebfd790f38 Merge "Hide TTS search results if no TTS engine is available" am: 993f582fca am: 7b4a3ada12
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2493859

Change-Id: I2d16235171ced53fa97c8c0c826869267d6e25ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 10:15:59 +00:00
Treehugger Robot
7b4a3ada12 Merge "Hide TTS search results if no TTS engine is available" am: 993f582fca
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2493859

Change-Id: Idaedbac33bebafb96ee87fb4e396a88a41708e2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 09:39:15 +00:00
Treehugger Robot
993f582fca Merge "Hide TTS search results if no TTS engine is available" 2023-03-23 09:02:49 +00:00
Wesley Wang
c81b12aabf Update battery settings page footer string
screenshot: https://screenshot.googleplex.com/4LdASHFSS23Q5NK.png

Bug: 274871896
Fix: 274871896
Test: make SettingsRoboTests
Change-Id: Ia739e5b004755a16fb80d460657bcffcb40404f9
2023-03-23 17:01:42 +08:00
Josh Hou
b3ed786e76 [automerger skipped] Merge "[Panlingual] Can't set per-app languages for apps on work profile page" into tm-qpr-dev am: d06d826549 am: 3a03857139 -s ours
am skip reason: Merged-In I4405b3b7e832b71b9ef66fa71d9e42ce12da167c with SHA-1 38df174bba is already in history

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

Change-Id: Ia690fd66cd5a944cc20b8523be6e3ac2f3cb03f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 07:07:16 +00:00
Tom Hsu
db94f350cb Merge "Remove Numbering System preference if no corresponding locale." into udc-dev 2023-03-23 06:41:37 +00:00
Josh Hou
3a03857139 Merge "[Panlingual] Can't set per-app languages for apps on work profile page" into tm-qpr-dev am: d06d826549
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/22173333

Change-Id: I3d91cd2c803357778718e7d70350aa73c4cec675
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 06:28:32 +00:00
TreeHugger Robot
419d424c0b Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-dev 2023-03-23 05:41:57 +00:00
Josh Hou
d06d826549 Merge "[Panlingual] Can't set per-app languages for apps on work profile page" into tm-qpr-dev 2023-03-23 05:39:19 +00:00
TreeHugger Robot
b7c595c4de Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-dev 2023-03-23 05:37:26 +00:00
Jason Hsu
0ef1b05630 Merge "Extract duplicate part for hearing audio routing into SettingsLib" into udc-dev 2023-03-23 05:18:56 +00:00
Etan Cohen
a7e606e406 Merge "Force MAC randomization to enabled on ACTION_WIFI_ADD_NETWORKS" into udc-dev 2023-03-23 04:24:41 +00:00
Weng Su
17631aeff7 Added "Speed and Compatibility" Settings page
- Show each band option individually in single-band devices
  - Show "2.4 and 5GHz" combined option in dual-band devices

- Disable 5 GHz option if the device is in the restricted country

- Disable 6 GHz option if the device is in the restricted country
  - Hide 6 GHz option if the old device does not support 6 GHz band.

Bug: 245258763
Test: manual test
atest -c WifiHotspotSpeedSettingsTest
atest -c WifiHotspotSpeedViewModelTest \
         WifiHotspotRepositoryTest

Change-Id: I358d4ff8d62df72fd5080e55f40d588c238d01fb
2023-03-23 10:53:43 +08:00
Bill Yi
2433e07070 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: af01fb89de
Blank merge reason: commit message contains skip directive

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

Change-Id: Ida2c11b48dcccc96e2f3bbf836c9950a24dba71c
2023-03-23 02:02:14 +00:00
Zoey Chen
4940c2978a Merge "[Settings] The receiver should be registered with all clients instead of the client which init the repository" into udc-dev 2023-03-23 01:24:24 +00:00
TreeHugger Robot
010ef319c8 Merge "Fixes AOSP crash when WPP isn't installed." into udc-dev 2023-03-23 00:53:08 +00:00
William Loh
5d2420d493 Keep same behavior after initiatingPackageName change
InitiatingPackageName was previously set to null for all shell based
installs but has now been changed to "com.android.shell".

Bug: 265203007
Test: atest AppStoreUtilTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:acab1045f3786f775d0c51ffb50f5ff654fc53d8)
Merged-In: I3b8639c5530782375d0b26c9a65c1662eced5493
Change-Id: I3b8639c5530782375d0b26c9a65c1662eced5493
2023-03-23 00:44:50 +00:00
TreeHugger Robot
9848eb9053 Merge "Show package name if no label" into udc-dev 2023-03-22 22:10:11 +00:00
Becca Hughes
0b5eb7691b Show package name if no label
Test: make
Bug: 273753519
Merged-In: I78b47e8c55382ceef90329547231124db2ca27d9
Change-Id: I78b47e8c55382ceef90329547231124db2ca27d9
2023-03-22 20:23:41 +00:00
Alejandro Nijamkin
20e244a964 Fixes AOSP crash when WPP isn't installed.
If there is no installed application with the ability to start an
activity with the SET_WALLPAPER action, we no longer show the
"Shortcuts" entry under the "Display > Lock screen" settings page.

Flag: CUSTOMIZABLE_LOCK_SCREEN_QUICK_AFFORDANCES
Fix: 274075866
Test: expanded unit test
Test: manually verified that, if Intent.resolveActivity returns false,
the shortcuts item isn't present in settings.

Change-Id: I919427d1e71a88a520c762307029a53065a68f46
2023-03-22 13:22:43 -07:00
Bill Yi
5fb9d8914e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia92d12739bb4d4ff065217c77e7f56bbe2a0cae4
2023-03-22 12:31:10 -07:00
Bill Yi
b11c37e6f6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8d632ac17ae813042eeaa5b8a80270127c40b295
2023-03-22 12:28:35 -07:00
Bill Yi
4bf6f099aa Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I72cf106bca67ce25cc517ac76700e5262e8764dd
2023-03-22 12:25:27 -07:00