Commit Graph

119970 Commits

Author SHA1 Message Date
TreeHugger Robot
cd68d8f7a3 Merge "[DO NOT MERGE] Add SHA team into Settings OWNER" into tm-qpr-dev 2023-01-20 13:13:28 +00:00
Piotr Wilczyński
15fc5c13b2 [automerger skipped] Merge "Set display size to all displays" into tm-qpr-dev am: 0066afbe15 am: 059ddcbcb4 -s ours
am skip reason: Merged-In I3d6858a9b20798c2ad3b12a66db3484491682691 with SHA-1 93ac8a9ccd is already in history

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

Change-Id: I0baaa10204a5cfcbbaad79f7c6c2a9e34be3bcf6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 11:17:10 +00:00
Yanting Yang
b5e64f3411 Follow alphabetical sorting to make list the same with AOSP
Test: N/A
Change-Id: I0de69ec3abd911ff8f7e8c54d942921ceda9ea16
2023-01-20 10:25:48 +00:00
Piotr Wilczyński
059ddcbcb4 Merge "Set display size to all displays" into tm-qpr-dev am: 0066afbe15
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20664686

Change-Id: Ib3d9210dab71e6aa600bfa9f6f9ec5b68ab68dbc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 10:11:00 +00:00
Piotr Wilczyński
0066afbe15 Merge "Set display size to all displays" into tm-qpr-dev 2023-01-20 09:39:50 +00:00
TreeHugger Robot
b39a71e434 Merge "Refine FingerprintEnrollmentActivity" 2023-01-20 09:04:40 +00:00
Yanting Yang
dcc30118bf [DO NOT MERGE] Add SHA team into Settings OWNER
Test: N/A
Change-Id: Ia534e08013b568044391c9cb86a0a68cb620538e
Merged-In: I9ab91f21558513b85847d9c513e7d50f9486c6ea
Merged-In: I63122f5b2809224e7f8ff36adc31c1f1595de24d
2023-01-20 16:44:42 +08:00
Treehugger Robot
657c7c9e0e [automerger skipped] Merge "Update OWNER list" am: f846e5cf0e am: 3e1e67aa9c am: e23a4e09db -s ours
am skip reason: Merged-In I9ab91f21558513b85847d9c513e7d50f9486c6ea with SHA-1 3e62033500 is already in history

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

Change-Id: I85107887b4ca75f6caded9a48b0418b5eba898c3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 08:41:50 +00:00
Treehugger Robot
e23a4e09db Merge "Update OWNER list" am: f846e5cf0e am: 3e1e67aa9c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2396592

Change-Id: I63122f5b2809224e7f8ff36adc31c1f1595de24d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 08:07:47 +00:00
Treehugger Robot
3e1e67aa9c Merge "Update OWNER list" am: f846e5cf0e
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2396592

Change-Id: I2d2cc997c8a01a42d4147029fe71e706a05b3daf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 07:35:43 +00:00
Treehugger Robot
f846e5cf0e Merge "Update OWNER list" 2023-01-20 06:53:33 +00:00
Milton Wu
df8d2d9da9 Refine FingerprintEnrollmentActivity
1. Add missing test cases for DeviceFoldedViewModel,
   DeviceRotationViewModel, and FingerprintEnrollFindSensorViewModel
2. Move most of init value of ViewModels into
   getDefaultViewModelCreationExtras
3. Fix FindSfpsFragment lottie because of incorrect rotation value.
4. Feed configuration change into DeviceFoldedViewModel

Bug: 260957195
Test: atest CredentialModelTest AutoCredentialViewModelTest
      DeviceFoldedViewModelTest DeviceRotationViewModelTest
      FingerprintEnrollFindSensorViewModelTest
      FingerprintEnrollIntroViewModelTest
      FingerprintEnrollProgressViewModelTest
      FingerprintEnrollmentViewModelTest
      FingerprintEnrollmentActivityTest
Change-Id: Ied55a895bc1774af5bdd256eccd806aaaa1680ef
2023-01-20 14:42:48 +08:00
TreeHugger Robot
b4f0636d28 Merge "Add SHA team into Settings OWNER" 2023-01-20 06:07:22 +00:00
Chaohui Wang
9995a592cc Merge "Update for getSystemPackageNames change" 2023-01-20 05:50:03 +00:00
Yanting Yang
5c959d8610 Update OWNER list
Test: N/A
Change-Id: Ibb67601aa44b690fd4ac3016329277f8cb89be64
Merged-In: I9ab91f21558513b85847d9c513e7d50f9486c6ea
2023-01-20 05:06:37 +00:00
Yilin Cai
8efd72e642 Add a test method in DashboardFragmentRegistryTest.
This is a followup of Edgar's comment in http://ag/21009318.

Test: atest SettingsUnitTests:com.android.settings.dashboard.DashboardFragmentRegistryTest
Bug: 242280896
Change-Id: Icecaf875b944a9a16986fae2d06a6ed84b29bc06
2023-01-20 12:52:18 +08:00
Ankita Vyas
5fc8308173 Merge "AppClone: Few fixes in Cloned Apps page." 2023-01-20 04:39:19 +00:00
Yilin Cai
b740a18bd5 Merge "Add external injection support in Special App Access." 2023-01-20 04:02:22 +00:00
Zaiyue Xue
10479caea9 Merge "Fix b/266045288: CPU and GPS usage is missing in battery usage system list" 2023-01-20 03:36:21 +00:00
Edgar Wang
3e62033500 Add SHA team into Settings OWNER
Change-Id: I9ab91f21558513b85847d9c513e7d50f9486c6ea
2023-01-20 02:51:53 +00:00
Tetiana Meronyk
2a06ccdfd5 Merge "Add UI metrics for granting admin rights from User Switcher" 2023-01-19 23:00:11 +00:00
Steve Elliott
f127bc13b0 Setting to control seen notification filtering
Test: manual
  1. adb shell settings put secure \
     lock_screen_show_only_unseen_notifications <0|1>
  2. Settings > Notifications > General > Show only new notifications on
     lock screen
  3. Toggle setting
  Observe: if setting is enabled, seen notifications are filtered from
           the lockscreen, and vice versa
Bug: 254647461
Change-Id: I4f6e35a1d918095cea25a97f72ddd08869ad9b31
2023-01-19 22:22:30 +00:00
Hao Dong
25bb53260b Merge "Fix UI bugs for udfps enroll in settings." 2023-01-19 21:24:07 +00:00
Zoey Chen
4fab96ffe5 [Settings] Do not insert subInfo repeatedly
Bug: 264322977
Test: manual
Change-Id: If1e9144c9d682befe5bccd3fa506ad82e2807b09
2023-01-19 20:25:35 +00:00
Daniel Norman
f86a0718b0 Fixes resource file exemption.
The previous version missed out on other file types (JSON motion files, mp4, etc.)

Change-Id: I2d1846ff1ab2461fe0c3716b02d1a323cb8af85b
2023-01-19 19:37:01 +00:00
Paul Hobbs
bc2ab6f662 Merge "Revert "[RRS] show resolution option on Settings page."" 2023-01-19 18:53:37 +00:00
Aurélien Pomini
fd3911ba29 Add discrete contrast UI slider in the setting
This slider is temporary and will be replaced by the final UI in the next couple weeks.

In this first version, the slider is added in Settings -> Accessibility -> Color and motion. It is discrete with three values.

The slider manipulates the setting currently named CONTRAST_LEVEL in Settings.Secure. This setting is ranging from [-1, 1] with a default value of 0. However, the three values of the slider correspond to the contrast values [0, 0.5, 1] respectively

Test: Manual: put a log before Settings.System.putFloatForUser, move the slider manually and verify the logs
Test: make RunSettingsRoboTests ROBOTEST_FILTER=ContrastLevelSeekBar
Bug: 259091608
Change-Id: I2eaf751d6008ad20b3564dde2c0f4648cc6c8178
2023-01-19 15:28:12 +00:00
TreeHugger Robot
a09f21b156 Merge "Add unit test for Picture In Picture" 2023-01-19 14:03:01 +00:00
Zaiyue Xue
55f94517c0 Fix b/266045288: CPU and GPS usage is missing in battery usage system list
Already asked UX designer to provide new icons for CPU and GPS in
b/265364507.

Bug: 266045288
Fix: 266045288
Test: manual
Change-Id: Ia59c92de817958231d26c8839bc403be9ec5ad7c
2023-01-19 17:45:39 +08:00
Chaohui Wang
1732c22706 Add unit test for Picture In Picture
Bug: 260660819
Test: Unit test
Change-Id: I64917bf58082b49ffcfbb4926e8ccd26d2e7c5f4
2023-01-19 17:37:13 +08:00
Ankita Vyas
48279a0d72 AppClone: Few fixes in Cloned Apps page.
- Trigger uninstall as clone user
- Back navigation

Test: manual
Bug: 259022623
Change-Id: Ic9e0b20d371f6f0a5c70c84b3950e82ba43bc82e
2023-01-19 08:53:39 +00:00
Chaohui Wang
c4ee3fdf5b Update for getSystemPackageNames change
Bug: 266040895
Test: Make Settings
Change-Id: Iecdbe80861e812f58687d8509dbc1e2acee050a9
2023-01-19 16:11:48 +08:00
Zaiyue Xue
4c3532f5ed Fix b/265364380: Icon for Other is not showing up on light theme
screenshots after fix:
https://screenshot.googleplex.com/4Hm2fo44jVeuLWQ.png
https://screenshot.googleplex.com/6ZpW34AvXu9Hfvm.png

Bug: 265364380
Fix: 265364380
Test: manual
Change-Id: I2b73facba2704f4e01bd1e2d4f8e6f09dbca6286
2023-01-19 16:04:55 +08:00
TreeHugger Robot
c7c4689efb Merge "Fix the build failure in studiow." 2023-01-19 06:15:50 +00:00
Zaiyue Xue
fd25f404f8 Fix the build failure in studiow.
The b/21010898 changed the security_settings_sfps_enroll_find_sensor_message
in branch tm-qpr. But in the branch master
security_settings_sfps_enroll_find_sensor_message has been moved from res to
res-product. The merge cl ag/21024400 should update the message in the
new place instead of adding it back to res.

Test: manual
Change-Id: I9ccc08be15631bff5e70ad146ba3761689206658
2023-01-19 12:35:16 +08:00
Bonian Chen
be48adb21c [automerger skipped] Merge "[Settings] Reduce CDMA API access when not required" into tm-qpr-dev am: 147669c893 am: b079eb6287 -s ours
am skip reason: Merged-In I5c74636d8418a379724676e1f854c8adff5d4387 with SHA-1 86b80b2508 is already in history

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

Change-Id: I38ca99e7b53d4605815af6550ca66d4936574032
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 04:32:37 +00:00
Grace Cheng
4849540cef Merge "Prevents retrying fingerprint after lockout reset if user exits FingerprintSettings" into tm-qpr-dev am: 5c10188254 am: 392d971067
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21038428

Change-Id: Ia6c0c8846e214aa40165f73a1634a1f0b1ed2dc5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 04:32:02 +00:00
Bonian Chen
b079eb6287 Merge "[Settings] Reduce CDMA API access when not required" into tm-qpr-dev am: 147669c893
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20893163

Change-Id: Iac1f7f8b5de6d6a50591170637c62f379fa6c1da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 03:55:55 +00:00
Grace Cheng
392d971067 Merge "Prevents retrying fingerprint after lockout reset if user exits FingerprintSettings" into tm-qpr-dev am: 5c10188254
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21038428

Change-Id: Ie39ae67775c24103c904efccdc80423d6a479f18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-19 03:55:18 +00:00
Tom Hsu
9b927d6e47 Merge "Pass viewable locales to LocalePickerWithRegion" 2023-01-19 03:40:46 +00:00
Bonian Chen
147669c893 Merge "[Settings] Reduce CDMA API access when not required" into tm-qpr-dev 2023-01-19 03:21:27 +00:00
Grace Cheng
5c10188254 Merge "Prevents retrying fingerprint after lockout reset if user exits FingerprintSettings" into tm-qpr-dev 2023-01-19 02:54:26 +00:00
Hao Dong
967203de77 Fix UI bugs for udfps enroll in settings.
This CL fixes four bugs for SETTINGS_SHOW_UDFPS_ENROLL_IN_SETTINGS feature:
1. When the udfps view is big enough (i.e. landscape mode on panther), the progress bar's bottom is clipped by the footer button.
- Sets the footer button width WRAP_CONTENT and removes the space view to make the footer button short enough, not hiding the udfps view progress bar.

2. When both text size and display icon size are big enough on the portrait mode, the udfps view's position is wrong because its parent views are longer than the screen and scrollable.
- Add addOnDrawListener() on udfps view's parent view, whenever it's changed, recalculate the margins of udfps view to make sure it's aligned  with the sensor's position.

3. When the finger is down on the screen and the lighting circle on the sensor is shown, the fingerprint icon is not hidden.
- Propagates FingerprintManager#onPointerDown and #onPointerUp to UdfpsEnrollView and hide/show fingerprint drawable accordingly.

4. When rotating the screen, fingerprint location is not right because UdfpsEnrollHelper is recreated.
- Makes UdfpsEnrollHelper a fragment and call setRetainInstance(true) to keep it even though the configuration is changed.

Test: manually tested on device:
      Turn this flag on via adb command
      adb shell setprop
        sys.fflag.override.settings_show_udfps_enroll_in_settings true
Bug: 260617060
Change-Id: I15ffde6455cab7e9d4a394349ec39e72df5b2911
2023-01-19 09:56:16 +08:00
Grace Cheng
83fce8a0aa Prevents retrying fingerprint after lockout reset if user exits FingerprintSettings
Fingerprint auth is active on the enrolled fingerprints page to indicate
to users which fingers are enrolled. Tapping 5x with unenrolled finger
on this page sends FINGERPRINT_ERROR_LOCKOUT, which posts a
mFingerprintLockoutReset runnable to retry fingerprint auth after
LOCKOUT_DURATION. If a user turns off their device and unlocks via
pin/pattern/password, this resets lockout, triggering the runnable and
causing fingerprint auth to be retried upon device entry. This change
prevents this by removing the runnable callback in
FingerprintSettingsFragment#onPause.

Test: Navigate to enrolled fingerprints page (Settings > Security > Face & Fingerprint Unlock > Fingerprint Unlock). Tap 5x with unenrolled finger, then turn off screen and unlock via pin/pattern/password. Ensure indicator does not appear upon device entry.
Fixes: 261366312
Change-Id: I4190669286461e9ce884685a9929313da953476d
2023-01-19 01:00:16 +00:00
menghanli
a1677e1193 Make Accessibility Settings can support Relate project in Speech category
Goal: Make Accessibility Settings can dynamically show the Relate project in Speech category when existing

Bug: 265883460
Test: Manual testing
Change-Id: I28ac9bee6d1e946a793ed679829e326a178f1015
2023-01-19 06:40:43 +08:00
Diya Bera
5054d8d405 [automerger skipped] Merge "No scrolling required to see find sensor animation" into tm-qpr-dev am: 8d6aade6d9 am: 3539c9e793 -s ours
am skip reason: Merged-In Iae3100009e4430fbff7abc4bc3c1d4b9ffca6638 with SHA-1 bda3c06469 is already in history

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

Change-Id: Ie66d8a47f5249d30a4588ce17187a85a3f6757b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 22:24:59 +00:00
Diya Bera
3539c9e793 Merge "No scrolling required to see find sensor animation" into tm-qpr-dev am: 8d6aade6d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21010898

Change-Id: I91f462e490708b57efdd7b20ba982aa18d3301e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 21:47:34 +00:00
Diya Bera
8d6aade6d9 Merge "No scrolling required to see find sensor animation" into tm-qpr-dev 2023-01-18 21:13:18 +00:00
Florian Mayer
c70ffd6b3b [MTE] Move toggle to dev options
Change-Id: I136d3399bd11d782d21a29873a10a55049aff8b6
2023-01-18 12:24:11 -08:00
Paul Hobbs
73187f3599 Revert "[RRS] show resolution option on Settings page."
This reverts commit 0d9e5d600c.

Reason for revert: bad CL causing breakage in com.android.settings.display.ScreenResolutionFragmentTest https://screenshot.googleplex.com/AG6d44f3LTksHGx

Change-Id: I522c6b5220c138b56af777627619ca986e2cd43c
2023-01-18 20:05:37 +00:00