Commit Graph

140401 Commits

Author SHA1 Message Date
Zoey Chen
2fe1e08b43 [ToA] Do not use spy context
Test: atest TermsOfAddressFeminineControllerTest
Test: atest TermsOfAddressNeutralControllerTest
Test: atest TermsOfAddressNotSpecifiedControllerTest
Test: atest TermsOfAddressMasculineControllerTest
Bug: 339543490
Change-Id: I28c37db07b34b9da225f9d358159bc9064046b68
2024-05-15 14:47:34 +00:00
Jigar Thakkar
72089c3289 Rename settings option for autolocking on inactivity
Bug:328016823
Test: atest AutoLockPreferenceControllerTest
Flag: ACONFIG android.multiuser.support_autolock_for_private_space NEXT

Change-Id: Id4537efe5ac56df0fc98cef3ce6673a0673e0fba
2024-05-15 14:03:15 +00:00
songferngwang
de7c5e50a2 Fix the BasePreferenceController.createInstance's IllegalStateException am: 7489c93347
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27358857

Change-Id: I7fe4219091a7428f42e4b33d0ccc4445b66569f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 12:39:26 +00:00
songferngwang
6ab74ab24c Show sim onboarding for user when insert psim
When the user inserts the psim, showing the sim onboarding for the user
to setup the sim switching or the default data subscription.

Bug: 336488573
Test: verify UI
Change-Id: I1faab0a3166efab3f1fd82d6a69ab4d33b624556
2024-05-15 12:14:37 +00:00
Treehugger Robot
bb81d76744 Merge "Ignore test case with InitializationError" into main 2024-05-15 12:11:33 +00:00
Fan Wu
9c03ecfd97 Ignore test case with InitializationError
See this run for example:https://android-build.corp.google.com/test_investigate/?invocationId=I49700010276869184&testResultId=TR14429303618451319

Bug: 340657656

Test: atest
Change-Id: I89815f40ac8f3fedb0ddd2127e12412ff2dd7fce
2024-05-15 11:08:06 +00:00
Wesley Wang
3ceffc39f9 Update battery settings page loading text
- Update the loading text into empty space text to prevent layout flaky before info loaded

Bug: N/A
Test: atest SettingsRoboTests
Change-Id: I272405f5045a682533a4e9405a9fd91f6c507f7e
2024-05-15 10:53:52 +00:00
Edgar Wang
a6a4480736 Fix SettingsHomepageActivityTest failed
Fixes: 340439758
Test: atest SettingsHomepageActivityTest
Change-Id: I8f6fbb91f92982abd3b1ebadff763270537b9c3e
2024-05-15 10:35:57 +00:00
songferngwang
7489c93347 Fix the BasePreferenceController.createInstance's IllegalStateException
When the settings search do BasePreferenceController.createInstance,
it get the the IllegalStateException, and then the search ignore this
controller. It causes the indexing can not filter this controller via
the PreferenceController's getAvailabilityStatus.

Bug: 335509130
Test: Build pass. Do search and no crash
Change-Id: Icaff8ca690ca3e3a46c2f21a5fbde0bbd99fd92e
2024-05-15 09:26:44 +00:00
Treehugger Robot
a71f46ecc6 Merge "Update the flow of charging optimization strings." into main 2024-05-15 09:10:39 +00:00
Chaohui Wang
065c6b717b [automerger skipped] Merge changes If41d957f,I5c49d195 into 24D1-dev am: 381638f284 -s ours
am skip reason: Merged-In If41d957f916a99eacc1becb6b460e58722a4dca7 with SHA-1 6e4ac4bdc0 is already in history

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

Change-Id: Ia34d946f48ef188ceacaa6440beec31c99ba46dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 08:37:24 +00:00
Chaohui Wang
c28ccbb114 [automerger skipped] Fix empty network scan result am: 99b09df4a8 -s ours
am skip reason: Merged-In If41d957f916a99eacc1becb6b460e58722a4dca7 with SHA-1 6e4ac4bdc0 is already in history

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

Change-Id: I1c2322da36cf4348a67d28d462ed69c9b80d511a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 08:37:19 +00:00
Chaohui Wang
381638f284 Merge changes If41d957f,I5c49d195 into 24D1-dev
* changes:
  Fix empty network scan result
  Create NetworkScanRepository
2024-05-15 07:50:58 +00:00
Yiling Chuang
8bcaab7cc8 Update the flow of charging optimization strings.
Bug: 329020954
Test: atest SettingsRoboTests
Change-Id: I73738602036d79568fe4739a63534af1c64bd9d1
2024-05-15 07:47:10 +00:00
Manish Singh
2164352ea7 Merge "Change default lock to every time device locks" into main 2024-05-15 07:36:43 +00:00
Jason Chang
fd6a3aa516 Remove redundant marginStart for FaceSettings button
To set button's marginStart to zero to align layout.

Flag: NONE

Bug: 331945001

Test: manual build and check UI visually in Fold/Unfold and rotate
state

Change-Id: I967d9ac1af963c6dcdac631a4fba9631a8d5662c
(cherry picked from commit a547a145dc)
2024-05-15 07:32:27 +00:00
Chaohui Wang
99b09df4a8 Fix empty network scan result
Settings use TelephonyScanManager.NetworkScanCallback to scan, and its
onComplete() could happens before onResults().

We will change Settings to fix.

Fix: 338986191
Test: manual - on NetworkSelectSettings
Test: unit test
Change-Id: If41d957f916a99eacc1becb6b460e58722a4dca7
Merged-In: If41d957f916a99eacc1becb6b460e58722a4dca7
2024-05-15 15:29:55 +08:00
Roy Chou
535494eca9 Merge "feat(brightness suw): add brightness preferences in suw" into main 2024-05-15 07:25:06 +00:00
SongFerng Wang
bbc605efd0 Merge "Fix search indexed the item from the invisible sim" into 24D1-dev am: 365cc18c40
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27341396

Change-Id: Ibecc4037975cc50636daecb18b243a1a5183f3fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 07:17:08 +00:00
SongFerng Wang
365cc18c40 Merge "Fix search indexed the item from the invisible sim" into 24D1-dev 2024-05-15 07:02:53 +00:00
Chaohui Wang
12158eb1fe Create NetworkScanRepository
And migrate network scan to flow for better maintenance and prevent ANR.

Fix: 323105271
Test: manual - Choose network
Test: unit test
Change-Id: I5c49d195fc202143c0131ffd78bc3adc168b119c
Merged-In: I5c49d195fc202143c0131ffd78bc3adc168b119c
2024-05-15 14:09:03 +08:00
Fan Wu
4fc959d8c1 Ignore LinkifyUtilsTest to investigate on ClassNotFoundException
Bug: 340657656

Test: atest
Change-Id: I7837b5eead0e58f47719cd250b3270cd344c3e59
2024-05-15 03:59:05 +00:00
Roy Chou
042c8c7328 feat(brightness suw): add brightness preferences in suw
Add brightness level and auto brightness preference in
accessibility_settings_for_setup_wizard.xml. Since the flagging has not
be supported yet for non-Manifest resources, for now we add the
preferences by default, and update the preferece availablity status in
each preference controllers based on the flag.

Bug: 311093618
Flag: ACONFIG com.android.settings.accessibility.add_brightness_settings_in_suw DEVELOPMENT
Test: manually
      atest AccessibilitySettingsForSetupWizardTest
      atest AutoBrightnessPreferenceFragmentForSetupWizardTest
      atest AutoBrightnessPreferenceControllerTest
      atest BrightnessLevelPreferenceControllerTest
Change-Id: I350d99138bdd14bf28828a39e42f707b5b1066c1
2024-05-15 03:19:40 +00:00
Vlad Popa
59b7bef837 Merge "Improve the BT settings audio device type strings" into main 2024-05-14 22:54:11 +00:00
Guangjie (Jerry) Shi
1d51de0384 Merge "Fix the issue the if primary provider is disabled by work admin, it should be removed from the settings' storage." into main 2024-05-14 19:55:41 +00:00
Pawan Wagh
6de4093876 Turn off voice access in 16KB mode
VoiceAccess doesn't support the 16KB mode yet. Skipping
voice accesss service when in page-agnostic mode.

Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Bug: 335443194
Bug: 340231742
Change-Id: If4deae48aaa221c843af5eb65208659ad38a08b2
2024-05-14 19:50:36 +00:00
David Liu
e18b91c190 Merge "Set noparent to avoid it recursively looks up. Android biometric team should approve all change in this subdirectories." into main 2024-05-14 19:45:16 +00:00
Jason Chang
2f595f7047 Merge "Remove redundant marginStart for FaceSettings button" into main 2024-05-14 18:11:56 +00:00
Manjeet Rulhania
09552b3caa Merge "mark developer settings page as sensitive" into main 2024-05-14 16:35:21 +00:00
Nick Chameyev
b34632720c Update fold setting text am: b9a0722d20
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27323129

Change-Id: Ibf9dbb23c6da433aec2b3785883ec88e4b3cffea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-14 16:25:16 +00:00
Chris Antol
f5cc663a8a Fix NPE in AudioSwitchPreferenceController
Test: Unit Test to verify nullness
Bug: 338892614
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7ac80f0a0a69e99ec3603e9157cd5a2b20509e85)
Merged-In: Ic97d1a6269a6d98ffd15a9b512f6ae24ff1c5b5e
Change-Id: Ic97d1a6269a6d98ffd15a9b512f6ae24ff1c5b5e
2024-05-14 16:19:59 +00:00
songferngwang
6f8cc6f0b6 Fix search indexed the item from the invisible sim
When search start to index and run to MobileNetworkSettings.java, the
TelephonyBasePreferenceController will find which subId can be the
"AVAILABLE" from the active subscriptionInfo list. This active subscriptionInfo
list does not be filtered, so the search uses the invisibile sim's item for user.

Bug: 335509130
Test: atest MobileNetworkUtilsTest (pass)
Change-Id: I2840e7de344347643197592e125f5524d27a068e
2024-05-14 15:04:02 +00:00
Manish Singh
ef8194e7d9 Change default lock to every time device locks
Fix: 339826512
Test: manual
Test: atest PrivateSpaceMaintainerTest
Test: atest AutoLockPreferenceControllerTest
Change-Id: I9f5f028666ac409ab6c732a440b2202f31839c9f
2024-05-14 11:16:53 +00:00
Nick Chameyev
b9a0722d20 Update fold setting text
Clarify default behavior and correct
the 'never' option to make sure
that it takes into account power
button instantly locks setting.

Bug: 300238754
Change-Id: I3d513bd06880b7be7e5610659dd72174d468c3dd
Flag: none
Test: presubmit
2024-05-14 10:10:28 +00:00
Jason Chang
a547a145dc Remove redundant marginStart for FaceSettings button
To set button's marginStart to zero to align layout.

Flag: NONE

Bug: 331945001

Test: manual build and check UI visually in Fold/Unfold and rotate
state

Change-Id: I967d9ac1af963c6dcdac631a4fba9631a8d5662c
2024-05-14 09:41:30 +00:00
Ze Li
a24476b786 Merge "[ConnectedDevicePage] Clean up flag enable_saved_devices_order_by_recency" into main 2024-05-14 06:59:12 +00:00
Jerry Shi
9884f1ccf4 Fix the issue the if primary provider is disabled by work admin, it
should be removed from the settings' storage.

Test: locally built and tested
Bug: 337040395
Change-Id: Ic572cd87f571d93ee0e7fa29157172444c7c36ce
2024-05-13 23:45:54 -07:00
David Anderson
29f9abcd8b Add Device Diagnostics to Settings.
The new option will only appear if (1) the flag is enabled and (2)
DeviceDiagnostics.apk is landed on the device (which it is by default on
AOSP).

Bug: 309886423
Test: Build AOSP Pixel and launch Settings
Change-Id: If01d231664a301ff289d4da61445bf65a7506fdb
2024-05-14 04:46:02 +00:00
Ze Li
9d696fe4d8 [ConnectedDevicePage] Clean up flag enable_saved_devices_order_by_recency
Test: atest PreviouslyConnectedDevicePreferenceControllerTest SavedDeviceGroupControllerTest
Bug: 340145121
Change-Id: I2fd6d506b343332edceb0235c1e36345d74cbf55
2024-05-14 11:34:43 +08:00
Song Chun Fan
4c02f29871 Merge "[Install-unknown-apps] Hide apps of system or root UID" into main 2024-05-14 03:04:13 +00:00
Guojing Yuan
a12f47259f Merge "Temporarily disable perm sync toggle" into main 2024-05-14 02:45:12 +00:00
Hao Dong
76b3bc8a20 Merge "Override package name for logo in ConfirmDeviceCredentialActivity." into main 2024-05-14 01:18:03 +00:00
Joshua McCloskey
0336781be0 UDFPS Enrollment Refactor (4/N)
Accessibility + text/dpi change + rotation should be properly handled.
Debug repos were added to make UI developemnt for UDFPS much easier(not
requiring calls to fingerprint manager).

Change-Id: I89900cea0d9e953124781cdf308fb38858de5d16
2024-05-13 22:05:26 +00:00
Simon Wingrove
26dc66204c Merge "Update access strings per UXW" into main 2024-05-13 21:36:49 +00:00
Bill Yi
90e49e44eb Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-13 20:34:55 +00:00
Bill Yi
5c526869e4 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-13 20:34:55 +00:00
Bill Yi
9ce4e1133c Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-13 20:34:55 +00:00
Treehugger Robot
2dbb27de91 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: 75779c3fc2 -s ours
am skip reason: contains skip directive

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

Change-Id: I4907e5bab14613058bccad914d159259a6baf699
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-13 18:34:56 +00:00
Bill Yi
a483fa0f13 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 9f186e2b09 -s ours
am skip reason: contains skip directive

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

Change-Id: Ieb47c33d304dff372f76cc0042414a2affe25626
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-13 18:34:54 +00:00
Treehugger Robot
d8d711b1e2 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: fd5d889807 -s ours
am skip reason: contains skip directive

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

Change-Id: I5c691f0b94c3846a787383bf3b54ee5de7a528c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-13 18:34:52 +00:00