Commit Graph

138799 Commits

Author SHA1 Message Date
Ling Ma
3c633b0ec5 Wrap subManager creation with createForAllProfiles
Since U, a sub can be associated with a particular profile, and thus in V we enforce filtering on the caller and only show the subs that are associated with the caller.
However, in some cases the caller indeed needs to see all subs regardless of its association, e.g. sysUI. Therefore, a param isForAllProfile is added to indicate whether the caller intends to see all subs.

Bug: 296076674
Test: voice call + data browsing
Flag: ACONFIG com.android.internal.telephony.flags.enforce_subscription_user_filter
 DEVELOPMENT
Change-Id: I2980cb3a63ac296568d76c224987bff8a97fe2b2
2024-01-19 20:08:10 +00:00
Becca Hughes
782fcb9bd5 Add buttons for new settings design
This adds a new class called PrimaryProviderPreference
which is responsible for laying out the old cog view if
the feature is disabled and the new button view if it
is enabled.

Screenshots:
https://hsv.googleplex.com/5109836204212224
https://hsv.googleplex.com/5574754636398592
https://hsv.googleplex.com/6737135727017984

Change-Id: I1ad0c59a4afc5be3694b499f66bbd7306dfbee69
Test: Manual test with flag on + off & unit tests
Bug: 300979487
2024-01-19 19:42:14 +00:00
Bill Yi
0b36875c3b [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 3fd02a8e7e -s ours
am skip reason: contains skip directive

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

Change-Id: I009e3c9723a326708f188065934c408a384278c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 19:33:37 +00:00
Hao Dong
5a16a076f3 Merge "Show generic ChooseLockPattern title for suw." into main 2024-01-19 19:08:50 +00:00
Bill Yi
392659f1df Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-01-19 18:49:25 +00:00
Bill Yi
c1019a58a8 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-01-19 18:49:25 +00:00
Oliver Scott
3e2dcefff0 Hide accounts of users that should not be shown
Bug: 318825347
Change-Id: If0f5cae8648e70c0e9c039d9b73cdc5be72b09d3
2024-01-19 18:41:21 +00:00
Bill Yi
46b573af89 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: adf8dd9584 -s ours
am skip reason: contains skip directive

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

Change-Id: Id3b0749d2644e9965b10da22df3acac3be394748
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-19 18:27:00 +00:00
SongFerng Wang
1229c54470 Using the phone number without formate for the unique DisplayName
If the phone number has formate, the getUniqueSubscriptionDisplayNames may have the white space.

Bug: 318022908
Change-Id: I459fb244ec690eff03d565b494b007849ef44c8b
Test: atest SubscriptionUtilTest
2024-01-19 17:52:55 +00:00
Chaohui Wang
6c7dbdd64a Merge "Migrate AppPermissionSummary to flow" into main 2024-01-19 17:39:24 +00:00
YK Hung
b9ee95e41d Merge "Redirect IGNORE_BATTERY_OPTIMIZATION_SETTINGS to new page" into main 2024-01-19 16:30:26 +00:00
Chaohui Wang
5255867976 Migrate AppPermissionSummary to flow
Bug: 321163306
Test: manual - on App Info
Test: unit test
Change-Id: I36f6a479d530fc646a55f68fbaf681b72eff00dd
2024-01-19 15:33:06 +00:00
Mark Kim
420625217c Merge "Add visibility for the user during app restoring" into main 2024-01-19 14:13:33 +00:00
ykhung
3b279e2f74 Redirect IGNORE_BATTERY_OPTIMIZATION_SETTINGS to new page
Redirect the IGNORE_BATTERY_OPTIMIZATION_SETTINGS intent to launch the
new design page in the "Settings > Apps > App battery usage", since the original battery optimization page is deprecated

Fix: 320838302
Test: manual to use: adb shell am start -a android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTING
Change-Id: Iba728b19bb7626c31860c61081efbe0c71fe8739
2024-01-19 08:30:41 +00:00
Fan Wu
e4ebee595d Update ShadowSecureSettings to extend from robolectric library
Bug: 320820008

Test: atest SettingsRoboTests
Change-Id: I278b2013e3876c461beedce7c29189df63375171
2024-01-19 08:00:43 +00:00
Charlotte Lu
0f577f7ddd Change apn type into ExposedDropdownMenuCheckBox
Test: Visual Test
Fix: 320891903,320621937
Change-Id: Ia6e4dbbcb568afae04776658a025e30c69e1ddd8
2024-01-19 07:15:13 +00:00
Charlotte Lu
628ebac9e2 Add WEP warning.
Test: Visual Test
Fix: 318797664
Change-Id: Id713ddf2d805b7ce47fe1e620a3273b86cdb3dfe
2024-01-19 04:12:59 +00:00
Fan Wu
825bb2d367 Update ShadowStorageManager
Bug: 320820008

Test: atest SettingsRoboTests
Change-Id: I550bcade31f5d9ed8d2d9dd5be3a6c1eed5f1f0b
2024-01-19 12:11:02 +08:00
Chaohui Wang
739f6ff69a Merge "Avoid empty line for storage summary" into main 2024-01-19 03:06:14 +00:00
chelseahao
7bc4ea01d1 [Audiosharing] Impl of two error dialogs.
Bug: 305620450
Test: manual
Change-Id: I5bd4a4b2ab54c382f325c7a6bb4a3029d47786e0
2024-01-19 03:02:48 +00:00
Aman Gupta
d581696e19 Updating strings as per the suggestion in b/318837875.
Test: Manual
(cherry picked from https://android-review.googlesource.com/q/commit:4abac5ae58cf45ccb8275f6e3f510c61023cdc88)
Merged-In: I5d03a1b5b499ba7a42934b791e093d7836f67287
Change-Id: I5d03a1b5b499ba7a42934b791e093d7836f67287
2024-01-19 00:49:28 +00:00
Hao Dong
62fddbf478 Show generic ChooseLockPattern title for suw.
Test: atest SetupChooseLockPatternTest
Bug: 301260673
Change-Id: I7df499015a1f4c0559f425ad47042dd2a459d1df
2024-01-18 23:58:58 +00:00
Bill Yi
adf8dd9584 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I116a1a451f7717639fb76e6f2b66258858f36aca
2024-01-18 11:51:28 -08:00
Bill Yi
571dcd48a3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I94aa81e265c80a7154099c81f1ef21d73088f120
2024-01-18 11:49:41 -08:00
Bill Yi
f3c6267e37 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I249e4d317b1ba0bd9210328b063112cc2ff49b9d
2024-01-18 11:47:27 -08:00
Bill Yi
3fd02a8e7e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1e49e5eb583e5beeaad82b2c53321a840b5d6e0d
2024-01-18 11:46:02 -08:00
Omer Ozer
b34e67228f Merge "Add factory reset wizard test coverage to factory reset preference controller" into main 2024-01-18 18:59:46 +00:00
Julia Reynolds
7c997c649f Add 'app notifications' to settings search
Test: searching for 'app notifications' does not crash
Fixes: 311315303
Change-Id: Idaf6b3594922afc75571399cb62295f8c3321ca8
2024-01-18 13:34:03 -05:00
Mark Kim
fad6a491d0 Merge "Remove flag parameter from requestArchive method" into main 2024-01-18 17:19:15 +00:00
Angela Wang
713bba322f Merge "New hearing device pairing page: fix cannot re-connecting gatt issue" into main 2024-01-18 10:49:09 +00:00
Charlotte Lu
495ab9d09e Merge "Add [ssid] is blocked for wep network" into main 2024-01-18 09:42:13 +00:00
Faye Yan
3405373465 Merge "Fix the op mode dependency for the second toggle: If OP_RECEIVE_SANDBOX_TRIGGER_AUDIO is toggled to deny, OP_RECEIVE_SANDBOXED_DETECTION_TRAINING_DATA is set to deny and toggled." into main 2024-01-18 09:11:01 +00:00
Chaohui Wang
ca0542d2d7 Avoid empty line for storage summary
Bug: 292036686
Test: manual - on All Apps
Test: unit test
Change-Id: Id5069b8172191f3277b825f82407551f6eb4e202
2024-01-18 17:00:07 +08:00
Charlotte Lu
a38b151118 Add [ssid] is blocked for wep network
Test: Visual Test
Fix: 320829123
Change-Id: Ia742e8b3e622c4c44a69daca20ca64edc6f9f826
2024-01-18 16:44:52 +08:00
Anna Bauza
ac717e4dc2 Avatar sync functionality
Send information to avatar sync service that user selected confirm or cancel on edit user info dialog

Bug: 320656026
Test: manual
Change-Id: I84356b844d47ea7c07f662691f1e48eaca56b7d8
2024-01-18 08:01:44 +00:00
Charlotte Lu
77615e83d2 Merge "Adjusting the apn action items" into main 2024-01-18 07:38:22 +00:00
Angela Wang
dc297afbe3 New hearing device pairing page: fix cannot re-connecting gatt issue
Should clear the `mConnectingGattList` when the gatts in the list are all disconnected in `OnStop()`. Otherwise, we can't re-connecting gatt for these devices after the page enter `onStart()` again.

Bug: 307890347
Test: manual test
Change-Id: I3b9fe05f894548887339011f5757c71e3a40eb5c
2024-01-18 06:52:59 +00:00
Faye Yan
78f99c6a67 Fix the op mode dependency for the second toggle:
If OP_RECEIVE_SANDBOX_TRIGGER_AUDIO is toggled to deny,
OP_RECEIVE_SANDBOXED_DETECTION_TRAINING_DATA is set to deny and toggled.

If OP_RECEIVE_SANDBOX_TRIGGER_AUDIO is toggled to allow,
OP_RECEIVE_SANDBOXED_DETECTION_TRAINNING_DATA is unchanged.

Bug: 309677007
Test: presubmit
Change-Id: I83bbfdb71ad1aa0e29c55275948ec88fc7f83c6a
2024-01-18 06:44:28 +00:00
Fan Wu
4e4b5f0876 Merge "Update ShadowDevicConfig" into main 2024-01-18 06:08:52 +00:00
Charlotte Lu
e0f6540fd1 Adjusting the apn action items
Test: Visual Test
Fix: 320617647
Change-Id: If3fddab5b45140b2c66a3487c08b421a1bd3b78a
2024-01-18 13:04:06 +08:00
Fan Wu
bda1921829 Update ShadowDevicConfig
Bug: 320820008

Test: atest SettingsRoboTests
Change-Id: I82747557f783930b1e2fe31d0a6c379153e82dd0
2024-01-18 12:32:49 +08:00
Charlotte Lu
1eb4bc0c5f Merge "Duplicate apn entry" into main 2024-01-18 04:00:58 +00:00
Treehugger Robot
17acb392bf Merge "Add SettingsLintDefaults to Settings-core" into main 2024-01-17 19:07:28 +00:00
Haijie Hong
27be66f48b Merge "Add BT extra options in device details page" into main 2024-01-17 12:48:24 +00:00
Joseph Vincent
ca9016a8be Merge "Show private space unlocked toast when PS is unlocked from Settings" into main 2024-01-17 12:42:00 +00:00
Haijie Hong
76d8145f15 Add BT extra options in device details page
Bug: 319562236
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDetailsExtraOptionsControllerTest
Change-Id: Ifab39d2bd19044d60f090f4a0419d1e20b2ad925
2024-01-17 19:02:20 +08:00
Johannes Gallmann
d28730e07a Merge "Change predictive back system animations flag to runtime flag" into main 2024-01-17 10:55:24 +00:00
josephpv
4d6e11ce4b Show private space unlocked toast when PS is unlocked from Settings
This contains the change to show private space unlocked toast message
when PS is unlocked from private space settings entry point.
Also has change in the pending intent passed to requestQuietModeEnabled
API to allow BAL of PS settings page as suggested in go/debug-bal

Recording is uploaded to the issue b/317313482

Bug: 317313482
Test: Manually verified Toast is shown on PS unlock from settings

Change-Id: I2f03b7decdad2bb9e1018012ff5986e48305a4e7
2024-01-17 10:26:33 +00:00
YK Hung
87e9f512d2 Merge "Set Switch Preference disabled when app battery optmization mode is immutabled." into main 2024-01-17 10:17:24 +00:00
Fan Wu
7007c24408 Merge "Ignore two failing tests" into main 2024-01-17 10:12:54 +00:00