Commit Graph

140535 Commits

Author SHA1 Message Date
pajacechen
567f04603d Fix "Free up space" not clickable issue
- Adding CardPreference.java back for "Free up space" item
- Rename CardPreference.kt to TipCardPreference.kt

Bug: 333016642
Test: http://ab/I85800010265092964
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e5d99fa93d7b7c9034bd492191d781c9f211f051)
Merged-In: I36062703b7ab5c21083459616234e3a86500719b
Change-Id: I36062703b7ab5c21083459616234e3a86500719b
2024-05-22 00:49:43 +00:00
Fan Wu
0f84065b9d Merge "Enable VPN2 package to Presubmit as the tests aren't flaky during local tests." into main 2024-05-22 00:10:51 +00:00
Chun-Ku Lin
09efbe453c Pass user preferred shortcut types when launching the
AccessibilityShortcutsTutorial.

**Root cause**
When toggle the shortcut, it asks the AccessibilityManager to turn on
the shortcut and update the Settings data. Internally, the
AccessibilityManager delegate the work to AccessibilityManagerService
via a oneway binder call.

In the past, when launching the AccessibilityShortcutsTutorial, we
assume the shortcut selection are saved in the Settings before launching
the AccessibilityShortcutsTutorial. So we pass whatever are in the
Settings as what the user has selected to the tutorial.
This is not true anymore since we use the oneway AIDL call to do the
updates. The data in Settings may not yet be  updated before we use it to
launch the tutorial.

Since the user preferred shortcuts are always set before we attempt to
launch the AccessibilityShortcutsTutorial, we can rely on it instead of
the Settings value to launch the AccessibilityShortcutsTutorial for the
selected shortcut options.

**Changes in this cl**
- Mechanical refactor to extract the lines to get the user preferred
  shortcut into a method.

- Use the new method to grab the shortcut options to pass to the
  AccessibilityShortcutsTutorial to prevent the crash.

Bug: 341176890
Test: manual
    - Modify the AccessibilityManagerService locally to delay processing
      the request to update the shortcut options in Settings data
    - Turn on the shortcut toggle, and verify the app won't crash

Test: atest com.android.settings.accessibility
Flag: EXEMPT bugfix (low risk + mechanical refactor)
Change-Id: Id3cc4cc5f6667061545955881632544472aedd95
2024-05-21 23:33:55 +00:00
Joshua McCloskey
dd8ff53e1b Fixed FaceEnrollIntro crash.
Test: Manual.
Fixes: 339306372
Change-Id: Ib6b98f78b734a531378c1162eb86725995f45799
2024-05-21 22:32:37 +00:00
Joshua McCloskey
52effd0f2f Removed full stop from face enroll text.
Test: Manually verified the period is removed.
Fixes: 307982668
Change-Id: Ib5357f70d6487a1049b24087a9c9600b5cbd2d28
2024-05-21 22:18:28 +00:00
Matías Hernández
90f60e5912 Load app-provided mode icons asynchronously, and cache them
Bug: 333528586
Bug: 308819461
Test: atest IconLoaderTest
Flag: android.app.modes_ui
Change-Id: I230d0a17bf21533dfca1f25d4806f9231105801b
2024-05-21 19:16:26 +00:00
Bill Yi
f440ce5975 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 2f2901316d -s ours
am skip reason: contains skip directive

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

Change-Id: I3c5055c7c9b4db3a19857cb2c9694b11e0adbcf9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 18:38:26 +00:00
Julia Reynolds
a24c7183d2 Merge "Migrate alarms and other interruptions to modes_ui" into main 2024-05-21 17:12:26 +00:00
Joshua Mccloskey
890eecf2e4 Merge "UDFPS Enrollment Refactor (5/N)" into main 2024-05-21 16:59:33 +00:00
Oli Thompson
55a52fd975 Merge "Backup connected apps settings" into main 2024-05-21 16:22:40 +00:00
Roy Chou
dc92a296b5 chore(magnification): cleanup flag usage of hide_magnification_always_on_toggle_when_window_mode_only
The bug-fix flag is already soaking in trunkfood full stage for a while.
Since there is no coming issues related to the fix, we can apply the fix
and remove the flag usage.

Bug: 341203230
Flag: NONE
Test: manually
      atest MagnificationAlwaysOnPreferenceControllerTest
Change-Id: I7e6ef8e03e7b7291d2faa15351669a91a50f59a5
2024-05-21 16:07:25 +00:00
Omer Ozer
81a2c38a98 Merge "Add get permissions flag to package info query in factory reset preference controller." into main 2024-05-21 16:04:41 +00:00
Julia Reynolds
3f2bcf973a Migrate alarms and other interruptions to modes_ui
Also add missing tests for repeat callers

Flag: android.app.modes_ui
Test: ZenModesSummaryHelperTest
Test: ZenModeOtherPreferenceControllerTest
Test: ZenModeOtherLinkPreferenceControllerTest
Bug: 337086854
Change-Id: Ie0a849de61c32b5f9feacae9a1bac457f9dd526c
2024-05-21 11:54:48 -04:00
Bill Yi
b2b57b1015 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9cfb7a674d016e9a690442020e8ed04d50a11f3c
2024-05-21 07:05:56 -07:00
Bill Yi
90b2b9a555 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I15f40a0e257e3cc801d9abae64595678beaeb18f
2024-05-21 07:04:54 -07:00
Bill Yi
2f2901316d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia7a99457461a1c60021dbea998949e764d8ad94a
2024-05-21 07:02:35 -07:00
Bill Yi
bf64aa5f73 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I360ca533697252c7c570baa3174c3d1caf2096f3
2024-05-21 07:00:38 -07:00
Bill Yi
e193d2ffd9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I815cfd6188bbdb7c89fc71ecc526878e91ede8c9
2024-05-21 06:59:11 -07:00
Bill Yi
f9c051294d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I423a87773496c982915d74473db724994b0534d3
2024-05-21 06:58:21 -07:00
Bill Yi
a2ab468c05 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iec619125c681e660b3e1b268207e946aa9df13df
2024-05-21 06:56:51 -07:00
Bill Yi
6b307af577 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I031113a5593e3f5e3ef35bd0e5318abf14e3d415
2024-05-21 06:55:26 -07:00
Julia Reynolds
640ad978b8 Merge "Migrate people settings to new modes UI" into main 2024-05-21 13:28:37 +00:00
Treehugger Robot
1f4ee3de23 Merge "Merge "Update haptic settings owners" into main am: 1c3e44a2da am: e2d8c52b71" into main 2024-05-21 12:13:53 +00:00
Fan Wu
4bbf7ec3db Enable VPN2 package to Presubmit as the tests aren't flaky during local tests.
Bug: 339533415

Test: atest
Change-Id: Ife64f460795e32a546f17ef04351c0ad12931d2f
2024-05-21 08:49:04 +00:00
chelseahao
21d98582ec [Audiosharing] Update strings.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 322819449
Change-Id: Iba0fa8d3470b896b1f672e01f88d405dcec08fe0
2024-05-21 15:49:19 +08:00
Automerger Merge Worker
2b7c9e5cdb Merge "[automerger skipped] Fix BackupTasksAppsTest am: 6d5dadfb0d -s ours" into main 2024-05-21 06:38:27 +00:00
SongFerng Wang
f7425b9e32 Merge "Fix UiccSlotUtilTest's test case" into main 2024-05-21 06:38:22 +00:00
Chaohui Wang
b563d78213 [automerger skipped] Fix BackupTasksAppsTest am: 6d5dadfb0d -s ours
am skip reason: Merged-In Ib01bd6556768a943ae7fae013c6ccb82b1b96697 with SHA-1 321e08e538 is already in history

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

Change-Id: Iad27456629e6ac6d92e1590834a40df8ac54fa3a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 06:38:17 +00:00
Chelsea Hao
85d328ed9d Merge "[Audiosharing] Create dialog for unsupported device." into main 2024-05-21 06:35:13 +00:00
Chaohui Wang
6d5dadfb0d Fix BackupTasksAppsTest
Fix: 341832628
Test: atest BackupTasksAppsTest
Change-Id: I8731604d896d58a9b46b4d0af660a40c34bb905b
Merged-In: Ib01bd6556768a943ae7fae013c6ccb82b1b96697
2024-05-21 06:08:59 +00:00
Xinyi Mao
a05fab6dc5 Merge "Update view alpha to improve text color constract in Battery usage" into main 2024-05-21 05:39:46 +00:00
Chaohui Wang
e0d86be017 Fix default mode for AlarmsAndRemindersAppList am: 83aeb45f3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27391745

Change-Id: Ib16f3abadd2428f090ff9f28c9ea5045f64897be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 05:35:34 +00:00
Roy Chou
575259e049 Merge changes Ife935485,Ic9b44d73,I44f7f058,I39868ac1,I05c59a76 into main
* changes:
  chore(magnification suw): hide joystick toggle in setup wizard
  chore(magnification suw): hide one finger pan toggle in setup wizard
  refactor(magnification suw): hide follow typing toggle in setup wizard
  chore(magnification suw): hide always on toggle in setup wizard
  chore(magnification suw): create MagnificationFeaturePreferenceController
2024-05-21 05:25:12 +00:00
chelseahao
997438d537 [Audiosharing] Create dialog for unsupported device.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: Ibe421d29aa1ee05ee736fc8a2665794984a8b6e1
2024-05-21 12:30:20 +08:00
Chaohui Wang
fd5e9718b7 [automerger skipped] Reapply "Migrate AppOps" am: 7a8d8fd091 -s ours
am skip reason: Merged-In I000274ae9c725f848e1c8910120ba886fcc5be95 with SHA-1 fb48926fe8 is already in history

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

Change-Id: I28b237c8e894b89faab5e90bd426e8a226cc56e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 04:00:48 +00:00
songferngwang
92d77ea26b Fix UiccSlotUtilTest's test case
The onReceiveSimCardStateChangeReceiver_receiveAction_timerCountDown
is failed since the action is wrong.

Bug: 337417975
Test: atest UiccSlotUtilTest (pass)
Change-Id: I0cb12432553155d69f985693e4ef911455c81652
2024-05-21 03:55:50 +00:00
mxyyiyi
431c14fa18 Update view alpha to improve text color constract in Battery usage
- For light themes, first set the text color of title/summary/widget_summary to be consistent, then apply alpha = 0.65

[Before] https://screenshot.googleplex.com/4nVMMFBK7odhQju
A11y Scanner result: https://screenshot.googleplex.com/4nVMMFBK7odhQju

[After] https://screenshot.googleplex.com/B4r79v89HnWr4tw
A11y Scanner result: https://screenshot.googleplex.com/3zQfRMe4HToc8Xm

Dark mode:
[before] https://screenshot.googleplex.com/BfLxR6tqQRgP4mQ
[after]  https://screenshot.googleplex.com/8KeG62i7R5hW8Ks

Bug: 317139415
Bug: 265364351
Test: Accessibility Scanner
Change-Id: I65a71525bbce41c37ee364f3f73c0d2d1d9ace38
2024-05-21 11:52:49 +08:00
Edgar Wang
2c80210f34 Merge "Make Choose Profile dialog scrollable" into main 2024-05-21 03:38:55 +00:00
Chaohui Wang
83aeb45f3c Fix default mode for AlarmsAndRemindersAppList
When app ops permission's app ops mode is default, should check if
permission is grant.

Fix: 339846642
Test: manual - on AlarmsAndRemindersAppList
Test: unit test
Change-Id: Ia0f05211f5774637304502ead79dd98a1cf89886
2024-05-21 03:37:47 +00:00
Roy Chou
a511ddb75a chore(magnification suw): hide joystick toggle in setup wizard
Although we haven't implemented joystick feature, but the joystick
preference controller is already in the codebase, so we also add hiding
logic for joystick toggle when in setup wizard.

Bug: 340721852
Flag: NONE
Test: manually
      atest MagnificationJoystickPreferenceControllerTest
Change-Id: Ife93548583c3e82eac030e6e3aa55b9f643b055a
2024-05-21 03:37:37 +00:00
Roy Chou
f094c19d0a chore(magnification suw): hide one finger pan toggle in setup wizard
Bug: 340721852
Flag: NONE
Test: manually
      atest MagnificationOneFingerPanningPreferenceControllerTest
Change-Id: Ic9b44d73f75b47e6b97c5f4994b2e0b23bfb623b
2024-05-21 03:37:12 +00:00
Roy Chou
c9d3b39a62 refactor(magnification suw): hide follow typing toggle in setup wizard
Originally we cache mFollowingTypingSwitchPreference in fragment so in
ToggleScreenMagnificationPreferenceFragmentForSetupWizard we can set the
preference visible to false to hide it. After creating MagnificationFeaturePreferenceController,
the MagnificationFollowTypingPreferenceController can extend it and
check isInSetupWizard internally then dicide whether to hide. Therefore,
we don't need to cache mFollowingTypingSwitchPreference in fragment
and let the fragment control the preference visibility anymore.

Bug: 340721852
Flag: NONE
Test: manually
      atest MagnificationFollowTypingPreferenceControllerTest
      atest ToggleScreenMagnificationPreferenceFragmentForSetupWizardTest
      atest ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: I44f7f0589b2df3d83a27139323fc68a0561f1cfa
2024-05-21 03:36:51 +00:00
Roy Chou
3761f61c7e chore(magnification suw): hide always on toggle in setup wizard
Bug: 340721852
Flag: NONE
Test: manually
      atest MagnificationAlwaysOnPreferenceControllerTest
Change-Id: I39868ac1d4423584e43473683db20a2259311049
2024-05-21 03:36:38 +00:00
Roy Chou
9780020f6b chore(magnification suw): create MagnificationFeaturePreferenceController
Add a new abstract class MagnificationFeaturePreferenceController
that extends TogglePreferenceController, to wrap inSetupWizard
setter/getter. Then for magnification feature preference controllers
like alwaysOn or followTyping, they can just check isInSetupWizard to
decide whether hiding in setup wizard.

Besides, in ToggleScreenMagnificationPreferenceFragment we cache a flag
mInSetupWizard when fragment created, so we can pass the info to the
preferece controllers when creating them.

Bug: 340721852
Flag: NONE
Test: build pass
Change-Id: I05c59a766219862117d2a6ede775d68a4c3dedac
2024-05-21 03:36:06 +00:00
Chaohui Wang
7a8d8fd091 Reapply "Migrate AppOps"
This reverts commit 19b01bd68b.

Bug: 341016088
Test: manual - on Special app access
Change-Id: I000274ae9c725f848e1c8910120ba886fcc5be95
Merged-In: I000274ae9c725f848e1c8910120ba886fcc5be95
2024-05-21 03:20:04 +00:00
Omer Ozer
4506b6287a Add get permissions flag to package info query in factory
reset preference controller.

Bug: 341802418
Test: manual
Change-Id: I1603662b706ec94e109afe957b585577876c8e75
2024-05-21 01:30:27 +00:00
Joshua McCloskey
01b4ef5a92 UDFPS Enrollment Refactor (6/N)
Bug fixes

Bug: 297082837

Change-Id: I86013007f089e9c57e1f7406f327c001bc4099b4
2024-05-20 23:35:24 +00:00
Joshua McCloskey
f6849078c5 UDFPS Enrollment Refactor (5/N)
Adding minor touch ups, such as starting the
FingerprintEnrollConfirmation when enrollment has been completed.

Bug: 297082837
Test: atest
Change-Id: I7b3edebb141bdb3e4648f71527d45dc5a0185b60
2024-05-20 23:21:57 +00:00
Treehugger Robot
1a5eb3ed59 Merge "Avoid update the le audio mode as bluetooth turn off" into main 2024-05-20 22:36:48 +00:00
Joshua Mccloskey
03a0812931 Merge "UDFPS Enrollment Refactor (4/N)" into main 2024-05-20 21:53:16 +00:00