Commit Graph

119886 Commits

Author SHA1 Message Date
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
sallyyuen
b87b93890f Add extra dim banner for tablets
Test: manual with dark theme turned on and off
Bug: 243902068
Change-Id: Ic88b50ed782560f1cabbcbe10508d936bbf65afe
2023-01-18 19:05:17 +00:00
Tetiana Meronyk
ff36d54d2c Add UI metrics for granting admin rights from User Switcher
Bug: 260697326
Test: manual
Change-Id: Ia4f3053bb84c5daaedb9a471b8a8f5dbaad66dba
2023-01-18 17:46:09 +00:00
Diya Bera
c2a429f4f8 No scrolling required to see find sensor animation
Changed the string security_settings_sfps_enroll_find_sensor_message.
Changed the layout of the animation.

Test: Manually check the position of the animation
Fixes: 265023019
Change-Id: Iae3100009e4430fbff7abc4bc3c1d4b9ffca6638
Merged-In: Iae3100009e4430fbff7abc4bc3c1d4b9ffca6638
2023-01-18 17:07:49 +00:00
Diya Bera
599ffd0f3f Merge "No scrolling required to see find sensor animation" 2023-01-18 17:07:28 +00:00
Tom Hsu
aa1e252742 Merge "[Languages] Add new information to system language page." 2023-01-18 15:09:00 +00:00
TreeHugger Robot
5163ae169d Merge "[Settings] Do not show SIM if not supported" into tm-qpr-dev am: ff959fb614 am: 272d523225
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21006130

Change-Id: Ia4931309c562270bc32abb4fe949ea3250a9674c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 13:11:23 +00:00
TreeHugger Robot
272d523225 Merge "[Settings] Do not show SIM if not supported" into tm-qpr-dev am: ff959fb614
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21006130

Change-Id: Ic184c70a7c4ad9db0533f3666a6ca5db207dcff9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 12:35:37 +00:00
TreeHugger Robot
ff959fb614 Merge "[Settings] Do not show SIM if not supported" into tm-qpr-dev 2023-01-18 11:40:44 +00:00
Azhara Assanova
7f8539b190 Merge "Make mutable implicit PendingIntents immutable" 2023-01-18 11:04:31 +00:00
Tetiana Meronyk
dc186fa6a1 Merge "Add restriction to prevent user from being made an admin" 2023-01-18 10:29:50 +00:00
TreeHugger Robot
5178fb365d Merge "Fix b/265617603: The 'breakdown by systems' list will change to 'breakdown by apps' after the user scrolls up and down." 2023-01-18 10:21:53 +00:00
Zaiyue Xue
a28f2618d9 Merge "Fix b/265386376: Failed Test: BatteryOptimizeUtilsTest" 2023-01-18 09:39:15 +00:00
Steven Lee
e4d2c367cd Merge "Make toggle permission provider list in SettingsSpaEnvironment extendable." 2023-01-18 09:21:16 +00:00
Zaiyue Xue
478c4e9e4a Fix b/265617603: The 'breakdown by systems' list will change to 'breakdown by apps' after the user scrolls up and down.
The root cause is that the spinner was initialized many times for every
onBindViewHolder(). When the spinner is scrolled out of the screen and
scrolled back, onBindViewHolder() is triggered. The spinner selection
position was set to the mSavedSpinnerPosition. This is unexpected. Only
the first initialization should set the saved position. This fix changes
the spinner initialization to be only once.

Bug: 265617603
Fix: 265617603
Test: manual
Change-Id: I7ebd2b074cf6f560919ceec338eb8fcfaadf4d3a
2023-01-18 17:07:36 +08:00
Jason Chiu
39f16c8ef4 Merge "Update the About device icon for tablet" into tm-qpr-dev am: ce290bda47 am: 8fddd7a618
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21017564

Change-Id: Ie11d6a139e8bf340d5d5af535f2cedf083467552
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 08:15:29 +00:00
Nikhil Kumar
05edd8d48a Merge "Refactor power menu bug reporting flow to work for multiple admins" 2023-01-18 07:56:03 +00:00
Jason Chiu
8fddd7a618 Merge "Update the About device icon for tablet" into tm-qpr-dev am: ce290bda47
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21017564

Change-Id: I63b62748e93155d085f75a908a06a649da1854a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 07:39:48 +00:00
Zaiyue Xue
610c6928a1 Fix b/265386376: Failed Test: BatteryOptimizeUtilsTest
Bug: 265386376
Fix: 265386376
Test: presubmit
Change-Id: Iac6129fd54f55055dc7dfc7bc0fe1d5f8ee381c1
2023-01-18 15:38:52 +08:00
tom hsu
f33ac498c2 [Languages] Add new information to system language page.
- Add top Intro preference
 - Add footer preference
 - Add sub string to language picker
 - Modify title of app locale pages

Bug: 242182598 Add information to system language page.
Bug: 241600418 [Panlingual] Change strings on App languages
Test: Maunal test
Change-Id: I9bca8911e8e70c97c273294b3c9d1d73d4ea0cb2
2023-01-18 15:22:27 +08:00
Zoey Chen
bc561ec2dc [Settings] Do not show SIM if not supported
Bug: 264510592
Test: manual
Change-Id: Iaf250175361d86837a62330391c4b529639c3d9d
2023-01-18 07:06:28 +00:00
Jason Chiu
ce290bda47 Merge "Update the About device icon for tablet" into tm-qpr-dev 2023-01-18 06:40:49 +00:00
Taran Singh
bc6abf7a64 Merge "Toggle Stylus handwriting default ON" 2023-01-18 05:16:31 +00:00
tom hsu
5342479f89 Pass viewable locales to LocalePickerWithRegion
Bug: b/249219775
Test: Manual test
Change-Id: I48f2f02a365d3597023e021a7819d31709e6d5d8
2023-01-18 12:52:41 +08:00
Yilin Cai
9bcd6ba86f Add external injection support in Special App Access.
Test: adjust injection target of live translate in local device https://hsv.googleplex.com/6649669464621056
Bug: 242280896
Change-Id: I5c7eccceafeb159aac55e98dc7eb1daa17844de5
2023-01-18 12:29:58 +08:00
Steven Lee
546d49c3df Make toggle permission provider list in SettingsSpaEnvironment extendable.
Legal tracker bug: 262937731
Privacy tracker bug: 262936913
UX tracker bug: 262938050

Bug: 259436697
Bug: 263163538
Test: Settings builds.
Change-Id: Ida26f11b101d49375bad85380458b018060d9fec
2023-01-18 12:13:00 +08:00
Joshua Mccloskey
d65d3fe1b0 [automerger skipped] Merge "Set default value for performant auth." into tm-qpr-dev am: ead95a4205 am: 7882fe06c4 -s ours
am skip reason: Merged-In Ibbad0165f4ef396be70d3a566ca77597c2bcbb8e with SHA-1 c54771a165 is already in history

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

Change-Id: Iad6562eced713f535020dfffed1be002704a2e9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 03:40:17 +00:00
Kuan Wang
b409ef7c42 Merge "Use battery unplugging event to compute the full charge start time on Pixel devices." 2023-01-18 03:38:57 +00:00
Ling Ma
928b9904d3 Merge "Add dialog for enable auto data switch" 2023-01-18 03:29:05 +00:00
Joshua Mccloskey
7882fe06c4 Merge "Set default value for performant auth." into tm-qpr-dev am: ead95a4205
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20986428

Change-Id: I27ded7770eb6804e8619b37b8c28b71624a9b2f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 03:20:50 +00:00
Joshua Mccloskey
ead95a4205 Merge "Set default value for performant auth." into tm-qpr-dev 2023-01-18 03:09:58 +00:00
Joshua Mccloskey
1b1a394b36 Merge "Set default value for performant auth." 2023-01-18 01:00:42 +00:00
Tetiana Meronyk
1f824d5c18 Add restriction to prevent user from being made an admin
Bug: 261700461
Test: croot && make RunSettingsRoboTests -j40 ROBOTEST_FILTER="com.android.settings.users.UserDetailsSettingsTest"
Change-Id: Ie518a17ae330e9b0864e5179dff7eb1d03f3937b
2023-01-18 00:09:13 +00:00
Diya Bera
bda3c06469 No scrolling required to see find sensor animation
Changed the string security_settings_sfps_enroll_find_sensor_message.
Changed the layout of the animation.

Test: Manually check the position of the animation
Fixes: 265023019
Change-Id: Iae3100009e4430fbff7abc4bc3c1d4b9ffca6638
2023-01-18 00:05:04 +00:00
Bill Yi
4516d397e7 Merge "Import translations. DO NOT MERGE ANYWHERE" 2023-01-17 23:53:48 +00:00