Commit Graph

110577 Commits

Author SHA1 Message Date
Bill Yi
5c3d8f340b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I985329532c210b25458142a2c0fb637056ba384e
2022-09-19 20:37:28 -07:00
Bill Yi
2ccd859add Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I74590f996207dc0d583d05b2c28628e328d9fe79
2022-09-19 20:34:29 -07:00
Bill Yi
6a44c6afa3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3ddd1cecee3dbd09bb5fb12541666e3ec09d0b1f
2022-09-19 20:31:46 -07:00
lbill
fd269d08ec Apply dark light theme for enrollment activities
Override onApplyThemeResource() and apply SetupWizardPartnerResource
to make the dark light theme activate.

Theme change scope:
1) FingerprintEnrollEnrolling
2) FingerprintEnrollFindSensor
3) SetupFingerprintEnrollEnrolling
4) SetupFingerprintEnrollFindSensor

Bug: 245684949
Test: manual in SUW `adb shell cmd uimode night yes` and check visual
Test: manual in SUW enrolling check timeout dialog apply theme
Test: m RunSettingsRoboTests -j30 ROBOTEST_FILTER= \
      SetupFingerprintEnrollFindSensorTest
Test: m RunSettingsRoboTests -j30 ROBOTEST_FILTER= \
      FingerprintEnrollEnrollingTest
Test: m RunSettingsRoboTests -j30 ROBOTEST_FILTER= \
      FingerprintEnrollFindSensorTest
Change-Id: I16f1070612e3e27546e6aa004fc4cdd3d7947191
2022-09-20 01:30:28 +00:00
Android Build Coastguard Worker
be094db933 Snap for 9080545 from 74a748ece8 to tm-qpr1-release
Change-Id: I66407e94e627966d2fcc58ac14bd0668ac306780
2022-09-19 23:29:51 +00:00
TreeHugger Robot
dd238fd0ad Merge "Show greyed out icon when Wi-Fi network is restricted to configurate" into tm-qpr-dev am: 74a748ece8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19967514

Change-Id: I5646b7ff9e291b70295cbbb180f3e0513f51866f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-19 04:23:30 +00:00
TreeHugger Robot
74a748ece8 Merge "Show greyed out icon when Wi-Fi network is restricted to configurate" into tm-qpr-dev 2022-09-19 03:52:34 +00:00
Android Build Coastguard Worker
d1d22cf8fa Snap for 9077956 from f57f988349 to tm-qpr1-release
Change-Id: Iaedf3ba252ed9aa43a7d04ef1d02a7c887f2a8a9
2022-09-18 21:35:02 +00:00
Weng Su
3499db23ff Show greyed out icon when Wi-Fi network is restricted to configurate
- Use Drawable#setTintList() instead of Drawable#setTint() to show greyed out icon when the preference is disabled.

Bug: 233175849
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiEntryPreferenceTest

Change-Id: I451106530bc19bc733fd58a57e8ac336b023e65e
2022-09-19 02:22:47 +08:00
Sayak Dutta
25f67b32d6 Fix triggering of link outside the target in the same line
Bug: 247297966

Change-Id: I8cab434c3f48ac666664b21303e7be2b36b047c0
2022-09-18 07:24:02 +00:00
Sayak Dutta
5e168a5e7d Merge "Fix following three issues in SD Card UX" into tm-qpr-dev am: f57f988349
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19967364

Change-Id: I17bafb783c166f5681326c3fbb0a8f2040c62a19
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-18 06:21:10 +00:00
Sayak Dutta
f57f988349 Merge "Fix following three issues in SD Card UX" into tm-qpr-dev 2022-09-18 05:57:31 +00:00
Android Build Coastguard Worker
d3fdc8c000 Snap for 9077201 from 4313b81f57 to tm-qpr1-release
Change-Id: I76bc4ac28a2b7d39905223090fb0a1de6fe39ddd
2022-09-18 00:45:28 +00:00
althafvly
ed95f35423 Settings: Protect sensitive data on the about phone
- Hide some personal info like phone number and IMEI.
- IMEI shows on a tap, so why not.
- Avoid showing this in screenshot/screenrecord

Co-authored-by: El Dainosor <eldainosor@gmail.com>
Change-Id: I45b7898da440c36045aec64a0a86fb804116cd9d
2022-09-17 13:48:02 +00:00
Android Build Coastguard Worker
724f0b3d2c Snap for 9075033 from f4d0d420bc to tm-qpr1-release
Change-Id: I1ad919130b5b3432fdd6c08b91a3e530ea1b4e82
2022-09-17 01:26:09 +00:00
Angela Wang
ad6e2e8cc9 Merge "Logs hearing aid information when a hearing aid is bonded" into tm-qpr-dev am: 4313b81f57
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19949385

Change-Id: I3c5b2975587f978cabb7f6da11abe1bf8b2b9e55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-17 01:17:51 +00:00
Angela Wang
4313b81f57 Merge "Logs hearing aid information when a hearing aid is bonded" into tm-qpr-dev 2022-09-17 01:00:19 +00:00
TreeHugger Robot
6c0140b340 Merge "Add Spatial audio settings for LE Audio devices" into tm-qpr-dev am: f4d0d420bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19967512

Change-Id: I5dcdb9766382a9b4c9d36601ef71da4181e1dea2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-16 21:00:54 +00:00
TreeHugger Robot
f4d0d420bc Merge "Add Spatial audio settings for LE Audio devices" into tm-qpr-dev 2022-09-16 20:23:14 +00:00
Victor Truong
8828d53177 Add NoDreamViewHolder for a different layout for NoDreamItem. am: 00b3a5cdb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19771836

Change-Id: Ieb6f66fc6f3bbfc50a8fdbd3db968ab325946d9e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-16 18:16:35 +00:00
Grace Cheng
8bab4adfdc Updates SFPS enrollment finished assets
Adds new assets for SFPS enrollment finished with transparent background to match light and dark theme backgrounds

Test: (manual) Enroll fingerprints in LT and DT on SFPS device and observe backgrounds match
Fixes: 246620855
Change-Id: Ibd47317cd3359c2c99e7422c4434cdad383be568
2022-09-16 17:47:29 +00:00
Victor Truong
00b3a5cdb6 Add NoDreamViewHolder for a different layout for NoDreamItem.
Bug: 243389115
Test: Manually tested
Change-Id: Id7549d55721c474cf8baddc0b336fe3600ccb5e3
2022-09-16 11:59:44 -04:00
Hugh Chen
bdfd8531a9 Add Spatial audio settings for LE Audio devices
- Adds TYPE_BLE_HEADSE, TYPE_BLE_SPEAKER and TYPE_BLE_BROADCAST for
  display Le audio devices.
- Adds TYPE_HEARING_AID for display hearing aid devices.

Bug: 244528781
Test: make -j64 RunSettingsRoboTests
Change-Id: I1278a5e0c93fdc5a4873df68032128ffedfe72d6
Merged-In: I1278a5e0c93fdc5a4873df68032128ffedfe72d6
(cherry picked from commit f8704add51)
2022-09-16 15:51:15 +00:00
TreeHugger Robot
2f40a918e1 Merge "Update App battery usage page and add tests." into tm-qpr-dev am: 50c7cb834e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19951824

Change-Id: I680de6c08f5a1533779f4c73ff1bd3f7cd8ad0d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-16 08:37:40 +00:00
TreeHugger Robot
50c7cb834e Merge "Update App battery usage page and add tests." into tm-qpr-dev 2022-09-16 07:52:30 +00:00
Amy Hsu
fc3f25c8b5 [RRS] Send event to AccessibilityManager when an unselect radio button is selected.
Change the screen resolution will cause re-layout the screen, so the focus will back to the first view. Before we actually set the screen
resolution, send an event to the AccessibilityManager and set what it
should say when the user selects the unselect option. Therefore TB will
say "selected" before the screen refreshes.

bug: 229352892
Test: Enable/disable Talkback and check RRS app behaivor. It should read
"selected" after user choose one un-selected option.

Change-Id: If14ed3685f85962d4e4b1d4961216c6ca5d5f0f8
2022-09-16 07:09:47 +00:00
Grace Cheng
0aad0b37f4 Merge "Fixes Talkback autoscroll for SFPS enrollment ScrollView" into tm-qpr-dev am: f9886847e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19936156

Change-Id: I68abbd8f1eb09dd3f4b276eb28c1c66f6c6215a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-16 02:34:02 +00:00
Grace Cheng
f9886847e8 Merge "Fixes Talkback autoscroll for SFPS enrollment ScrollView" into tm-qpr-dev 2022-09-16 01:42:06 +00:00
Android Build Coastguard Worker
a75a763546 Snap for 9070148 from 1d302c6fd8 to tm-qpr1-release
Change-Id: I5c48ff44662224ed61e77976eef5e9d728c1a47f
2022-09-15 23:25:57 +00:00
Grace Cheng
b798c03f50 Fixes Talkback autoscroll for SFPS enrollment ScrollView
Adds importantForAccessibility attribute to ScrollView in setup wizard layout. This enables Talkback to autoscroll when focusing on items at the edge of a container.

Test: (manual) Turn on talkback, navigate to SFPS enrollment edu screen. Swipe through ScrollView elements and observe autoscroll when focus is on elements at the edge of the View.
Fixes: 244595576
Change-Id: Iccc6125ac8f0993a7d8908f6c54e7307905b7cd7
2022-09-15 23:24:03 +00:00
Angela Wang
b6f649ad0f Merge "Update source metric category of HearingAidDialogFragment and HearingAidPairingDialogFragment" into tm-qpr-dev am: 5370d36b15
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19949397

Change-Id: Icc3ec2f40cafadd98f864f8d72d0efe0e28dcb32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 23:05:11 +00:00
Angela Wang
83a1af221a Logs hearing aid information when a hearing aid is bonded
The information including device mode, device side, and entry page id where the binding process starts. Set the mapped bond entry from BluetoothPairingDetail into the cached bluetooth device and log it later when the device mode and device side is received after the hearing aid bluetooth profile is connected.

Bug: 237344016
Test: m statsd_testdrive & statsd_testdrive 513

Change-Id: Ie0432f7da4f29e89e47d0ad3d72a04a9f5ea83ae
Merged-In: Ie0432f7da4f29e89e47d0ad3d72a04a9f5ea83ae
2022-09-15 22:37:42 +00:00
Angela Wang
5370d36b15 Merge "Update source metric category of HearingAidDialogFragment and HearingAidPairingDialogFragment" into tm-qpr-dev 2022-09-15 22:36:24 +00:00
Sayak Dutta
4c36d4903d Fix following three issues in SD Card UX
1) Link should not work if up-events happen outside the target region
2) Activity should retain it's last state on changing configuration
3) Improve color contrast for "Format card" button

Bug: 246485658
Bug: 246681292
Bug: 246871051

Change-Id: Iebc87e35a3f8496a33a43d906b7faba05d95fe6c
2022-09-15 16:09:18 +00:00
Treehugger Robot
f4ef31b17e Merge "Mark DataUsageState as nullable to avoid potential NPE risk" am: 0960af0bf3 am: 325b033f85 am: 8c4db8e545 am: e6901aedba
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2217422

Change-Id: Ifea8d6dfd652cf73ac9361c1224635bf6169a389
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 13:41:22 +00:00
Tiffany Nguyen
99d3b54a70 Update App battery usage page and add tests.
- Add tests
- Remove duplicated "Set battery usage for apps" text
- Clean up some code

Screenshot: https://screenshot.googleplex.com/8LHhyxFA6X4ZFkT.png

Test: make RunSettingsRoboTests -j40
Bug: 244995036
Change-Id: Iaac9b0af10f541100e91b10affacf3307bd5edca
2022-09-15 13:40:12 +00:00
Treehugger Robot
e6901aedba Merge "Mark DataUsageState as nullable to avoid potential NPE risk" am: 0960af0bf3 am: 325b033f85 am: 8c4db8e545
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2217422

Change-Id: Ic87c58e6eb59b154258a97ff54c0e5295637af12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 13:15:30 +00:00
Treehugger Robot
8c4db8e545 Merge "Mark DataUsageState as nullable to avoid potential NPE risk" am: 0960af0bf3 am: 325b033f85
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2217422

Change-Id: Ie9d5325556a31c72af3520879212e5fc526ea0dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 12:45:07 +00:00
Treehugger Robot
325b033f85 Merge "Mark DataUsageState as nullable to avoid potential NPE risk" am: 0960af0bf3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2217422

Change-Id: I459cae5f473576dd3d9c4f8ee6fa9e7f5581ad75
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 12:16:23 +00:00
Treehugger Robot
0960af0bf3 Merge "Mark DataUsageState as nullable to avoid potential NPE risk" 2022-09-15 11:56:51 +00:00
Milton Wu
aac79b894f [DO NOT MERGE] Add FLAG_SECURE for ChooseLockPassword and Pattern
Prevent ChooseLockPassword and ChooseLockPatten being projected to
remote views, add FLAG_SECURE for these screens.

Bug: 179725730
Test: Check these 2 screens not projected to chromecast
Test: robo test for SetupChooseLockPatternTest ChooseLockPatternTest
      SetupChooseLockPasswordTest ChooseLockPasswordTest
Change-Id: I7449a24427c966c1aa4280a7b7e7e70b60997cca
Merged-In: I7449a24427c966c1aa4280a7b7e7e70b60997cca
(cherry picked from commit 98239c0da6)
2022-09-15 07:02:13 +00:00
Milton Wu
27bddff2ac [DO NOT MERGE] Add FLAG_SECURE for ChooseLockPassword and Pattern
Prevent ChooseLockPassword and ChooseLockPatten being projected to
remote views, add FLAG_SECURE for these screens.

Bug: 179725730
Test: Check these 2 screens not projected to chromecast
Test: robo test for SetupChooseLockPatternTest ChooseLockPatternTest
      SetupChooseLockPasswordTest ChooseLockPasswordTest
Change-Id: I7449a24427c966c1aa4280a7b7e7e70b60997cca
Merged-In: I7449a24427c966c1aa4280a7b7e7e70b60997cca
(cherry picked from commit 98239c0da6)
2022-09-15 07:00:35 +00:00
Milton Wu
d5771108b9 [DO NOT MERGE] Add FLAG_SECURE for ChooseLockPassword and Pattern
Prevent ChooseLockPassword and ChooseLockPatten being projected to
remote views, add FLAG_SECURE for these screens.

Bug: 179725730
Test: Check these 2 screens not projected to chromecast
Test: robo test for SetupChooseLockPatternTest ChooseLockPatternTest
      SetupChooseLockPasswordTest ChooseLockPasswordTest
Change-Id: I7449a24427c966c1aa4280a7b7e7e70b60997cca
Merged-In: I7449a24427c966c1aa4280a7b7e7e70b60997cca
(cherry picked from commit 98239c0da6)
2022-09-15 06:59:11 +00:00
Milton Wu
9e76d2c1fb [automerged blank] [DO NOT MERGE] Add FLAG_SECURE for ChooseLockPassword and Pattern 2p: 98e3bfdebb 2p: 353e941920
Blank merge reason: commit message contains skip directive

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

Bug: 179725730
Change-Id: I561ceec3d0b58d7db5feaf5d2847acc0f88ace65
Merged-In: I7449a24427c966c1aa4280a7b7e7e70b60997cca
2022-09-15 06:58:02 +00:00
Milton Wu
3f02770332 [automerge] [DO NOT MERGE] Add FLAG_SECURE for ChooseLockPassword and Pattern 2p: 98e3bfdebb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19949403

Bug: 179725730
Change-Id: If1f5f223ce35e9eb7d038523dd663c8849426070
Merged-In: I7449a24427c966c1aa4280a7b7e7e70b60997cca
2022-09-15 06:57:50 +00:00
Milton Wu
353e941920 [automerge] [DO NOT MERGE] Add FLAG_SECURE for ChooseLockPassword and Pattern 2p: 98e3bfdebb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/19949403

Bug: 179725730
Change-Id: I131ea5ef5f47a8f34d4f8066d3851c9e8b6826af
Merged-In: I7449a24427c966c1aa4280a7b7e7e70b60997cca
2022-09-15 06:57:50 +00:00
Milton Wu
98e3bfdebb [DO NOT MERGE] Add FLAG_SECURE for ChooseLockPassword and Pattern
Prevent ChooseLockPassword and ChooseLockPatten being projected to
remote views, add FLAG_SECURE for these screens.

Bug: 179725730
Test: Check these 2 screens not projected to chromecast
Test: robo test for SetupChooseLockPatternTest ChooseLockPatternTest
      SetupChooseLockPasswordTest ChooseLockPasswordTest
Change-Id: I7449a24427c966c1aa4280a7b7e7e70b60997cca
Merged-In: I7449a24427c966c1aa4280a7b7e7e70b60997cca
(cherry picked from commit 98239c0da6)
2022-09-15 06:57:35 +00:00
Shen Lin
eb627be0b4 Mark DataUsageState as nullable to avoid potential NPE risk
mDataUsageState is nullable in UnrestrictedDataAccessPreference.java, so we'd better
add a annotation to getDataUsageState(), and add a null-check before calling it.

Bug: 246828843

Test: manual and Robotest.
Change-Id: If7fea53ec7efd004391a09becdba5709ae686f40
2022-09-15 14:23:38 +08:00
Angela Wang
6924029ddc Update source metric category of HearingAidDialogFragment and HearingAidPairingDialogFragment
Use different source metric categories to distinguish different launch sources of the BluetoothPairingDetail page.

Bug: 237344016
Test: manual
Change-Id: If762e87414055f3e497f99ea6885f7736b7193cd
Merged-In: If762e87414055f3e497f99ea6885f7736b7193cd
2022-09-15 06:21:43 +00:00
Android Build Coastguard Worker
6d2957758a Snap for 9065525 from 9b24df2c38 to tm-qpr1-release
Change-Id: I97d0a9cf4c9477f39176e333d8f3325ddcf0e3e5
2022-09-14 23:26:56 +00:00