Commit Graph

100049 Commits

Author SHA1 Message Date
Joshua Mccloskey
469f473814 [automerger skipped] Merge "Added lottie animations for udfps side/tip" into sc-v2-dev am: 6a6fb6b78b am: 80670f39c9 -s ours
am skip reason: Merged-In Ic63a0eca226309b92aa64cb4f80791ef179b8154 with SHA-1 0902b44744 is already in history

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

Change-Id: Ie21fe9949ae4b2d16d28bb9829c5ae97f47f75a9
2022-01-20 01:09:27 +00:00
Joshua Mccloskey
80670f39c9 Merge "Added lottie animations for udfps side/tip" into sc-v2-dev am: 6a6fb6b78b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16440683

Change-Id: I2e39ea48ae3511e9111dacd09b9381386763d33d
2022-01-20 00:55:15 +00:00
Joshua Mccloskey
6a6fb6b78b Merge "Added lottie animations for udfps side/tip" into sc-v2-dev 2022-01-20 00:33:05 +00:00
Joshua Mccloskey
21a4342048 Added lottie animations for udfps side/tip
Bug: 209807883
Test: Verified animations show for multiple devices.
Change-Id: Ic63a0eca226309b92aa64cb4f80791ef179b8154
Merged-In: Ic63a0eca226309b92aa64cb4f80791ef179b8154
2022-01-19 20:47:42 +00:00
Lais Andrade
de1116c338 Merge "Remove setTactileFeedbackEnabled from LockPatternView" 2022-01-19 17:24:40 +00:00
TreeHugger Robot
26401da23f Merge "Enable ignored test cases of LocationSettingsFooterPreferenceControllerTest" 2022-01-19 16:48:51 +00:00
TreeHugger Robot
a97f88fccd Merge "Enable ignored test case" 2022-01-19 16:48:51 +00:00
TreeHugger Robot
848a9f9d07 Merge "Enable ignored test cases of MainClearTest" 2022-01-19 16:48:51 +00:00
TreeHugger Robot
b00023aed2 Merge "Revert "Ignore broken tests"" 2022-01-19 16:48:51 +00:00
TreeHugger Robot
b70ddd066f Merge "Enable ignored test cases of LocaleListEditorTest" 2022-01-19 16:48:51 +00:00
TreeHugger Robot
add76523f3 Merge "Revert "Fix overlapping issue for Add a language page"" 2022-01-19 16:25:35 +00:00
TreeHugger Robot
835564658b Merge "Add primary switch for vibration settings screen" 2022-01-19 16:07:04 +00:00
Lucas Silva
a2cfc6a4b0 Merge "Rewrite dream settings." 2022-01-19 15:03:40 +00:00
Mill Chen
0080784d10 Revert "Fix overlapping issue for Add a language page"
This reverts commit 28195f52a6.

Reason for revert: The solution has been moved to framework (see ag/16636785)

Change-Id: I834bf7b31d71a3bf76902404fca6891bf0e9c429
2022-01-19 14:53:33 +00:00
Lais Andrade
8919e0ee50 Add primary switch for vibration settings screen
This re-lands commit fd54fc34c6.

Add primary switch that updates the VIBRATE_ON user setting. Update all settings in this page to be disabled when this main toggle is
off.

Bug: 30028435
Test: VibrationMainSwitchPreferenceControllerTest
Reason for revert: Re-landing change with fixed tests
Change-Id: If9219e3d81dd698f47219c80cac10b079b63e45d
2022-01-19 14:40:18 +00:00
Yuri Ufimtsev
c92720bdb0 Change the default Controller keys for RoboTests
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.security.ManageTrustAgentsPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.security.ScreenPinningPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.security.SimLockPreferenceControllerTest

Bug: 214944423
Bug: 214944992
Bug: 214945259
Change-Id: I9b3bac5fcf57a1c99253c631bc26e6957cad8938
2022-01-19 14:22:16 +00:00
Edgar Wang
1160896f89 Enable ignored test cases of MainClearTest
UserManager interface changed, we need to handle it in ShadowUserManager

Bug: 204031530
Change-Id: Ieef930a5aff91f331d580752d3ebce9a4b500d27
Test: robotest
2022-01-19 13:32:41 +00:00
Edgar Wang
800370ff5f Revert "Ignore broken tests"
This reverts commit 6225be70dd.

Reason for revert: Enable ignored test cases of com.android.settings.development.graphicsdriver

UserManager interface changed, we need to handle it in ShadowUserManager

Change-Id: Id49dbe262cd378f65ffeaf1c75f6631eb7cd508b
2022-01-19 13:26:43 +00:00
TreeHugger Robot
5c37adbca6 Merge "Ignore broken tests related to wifi tracker lib" 2022-01-19 13:22:14 +00:00
Edgar Wang
2e3e4ce348 Enable ignored test cases of LocationSettingsFooterPreferenceControllerTest
UserManager interface changed, we need to handle it in ShadowUserManager

Bug: 215047320
Change-Id: Ia58825a9115b51477291c0ecacec8e3b56163b3c
Test: robotest
2022-01-19 13:18:01 +00:00
Edgar Wang
71d56a5a3b Enable ignored test cases of LocaleListEditorTest
UserManager interface changed, we need to handle it in ShadowUserManager

Bug: 215046294
Change-Id: I4a32bf89c412b6f1b02e9d3b99117b905ebcff38
Test: robotest
2022-01-19 13:12:33 +00:00
Edgar Wang
b6d4ea22fa Enable ignored test case
UserManager interface changed, we need to handle it in ShadowUserManager

Bug: 215071960
Change-Id: Ieacda685f0160e5ab1f3a35a3f9f6aade403e39a
Test: robotest
2022-01-19 13:04:34 +00:00
George Chang
e69d760aea Update NfcPaymentPreferenceControllerTest
Bug: 215062846
Test: make RunSettingsRoboTests ROBOTEST_FILTER=NfcPaymentPreferenceControllerTest
Change-Id: I5db4e7c5e550bfada5c7d240cfaee2d1582beb30
2022-01-19 20:13:53 +08:00
Jack Yu
d9e3e6e4b1 Do not let guest user disable secure nfc
Bug: 209446496
Test: manual
Change-Id: I7253f7f08fde04e30400a30d9a0d24f1ceff04b0
2022-01-19 10:43:10 +00:00
tom hsu
33f2096fea [Panlingual] Adds a filter of application for per apps locale change.
- Settings -> System -> app language -> app languages
   Use this filter to only show apps allowed to change the locale.
 - Settings -> Apps -> all apps -> any one of app -> language
   Use this filter to only show the language preference of app allowed to change the locale.
Bug: 210935436
Test: atest pass.
Test: local test.
Change-Id: I2f8a0815dae68392e11882ad9e1e4945492efdba
2022-01-19 09:06:50 +00:00
Tsung-Mao Fang
f477bbc952 Ignore broken tests related to wifi tracker lib
Test: run robo test
Bug: 214938188
Change-Id: Iff1dc6270f0fe645fb643d4ad3a8984b2ac9802c
2022-01-19 16:35:35 +08:00
Hugh Chen
8849628106 Add connect / disconnect action when connect / disconnect to bluetooth device
Bug: 215299757
Test: build pass
Change-Id: Ib6fd592f63d4035674dc60cd54f16ffd5550ecff
2022-01-19 08:09:35 +00:00
TreeHugger Robot
04f6983ddd Merge "Fix the Robolectric Tests Failures" 2022-01-19 07:04:38 +00:00
Bonian Chen
2e121f68d2 Merge "[Settings] Adjust code for performance" 2022-01-19 05:57:47 +00:00
Weng Su
6179ad6003 Merge "Fix Robolectric failures for new registerReceiver security design" 2022-01-19 05:53:19 +00:00
Peter_Liang
44a275dd8f New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (6/n).
- Create new preview preference.
1) It will be integrated with TextReadingPreferenceFragment, and sub
previews layouts like app launchers, conversation messages, and mail
content.

Bug: 211503117
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER=TextReadingPreviewPreferenceTest
Change-Id: I2d82d58438ee3f96c5a8dbb1809a0d6bdf3a00a2
2022-01-19 05:42:56 +00:00
TreeHugger Robot
5cdebd798f Merge "Revert "Add primary switch for vibration settings screen"" 2022-01-19 05:03:10 +00:00
Arc Wang
7253d8ce61 Merge "Fix fail of AutomaticStorageManagerSwitchBarControllerTest" 2022-01-19 03:57:32 +00:00
Menghan Li
7350cc3749 Merge "Apply dynamic color for accessibility quick settings tooltips" 2022-01-19 03:46:43 +00:00
Tsung-Mao Fang
47875a5dff Revert "Add primary switch for vibration settings screen"
This reverts commit fd54fc34c6.

Reason for revert: b/215275738

Change-Id: I93612df6493a2a4184a98b3f049e23aa888095f2
2022-01-19 03:40:40 +00:00
Joshua Mccloskey
d1d76705de Merge "Added lottie animations for udfps side/tip" 2022-01-19 03:31:25 +00:00
TreeHugger Robot
5a7d596259 Merge "Replaced removeUserOrSetEphemeral by removeUserWhenPossible" 2022-01-19 02:59:45 +00:00
Arc Wang
aaa4c7c951 Fix fail of AutomaticStorageManagerSwitchBarControllerTest
initializingSwitchDoesNotTriggerView initializes mController
with a mSwitchBar which has already addOnSwitchChangeListener,
it will trigger onSwitchChangedon (and a dialog breaks the test)
of a mController initialized at setUp().

This change initializes a new mSwitchBar for the test.

Bug: 214907475
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AutomaticStorageManagerSwitchBarControllerTest
Change-Id: Iefe56387c56ca6b1c2520c050467d130182ccfdc
2022-01-19 10:36:48 +08:00
menghanli
68587a2177 Apply dynamic color for accessibility quick settings tooltips
Bug: 210353709
Test: Manual test by different theme color
Change-Id: If4e9456ea04b44a80c7e9b2bc52aeae770bd8381
2022-01-19 10:29:11 +08:00
TreeHugger Robot
57c8c2e3bf Merge "Add primary switch for vibration settings screen" 2022-01-18 23:45:19 +00:00
Lais Andrade
fd54fc34c6 Add primary switch for vibration settings screen
Add primary switch that updates the VIBRATE_ON user setting.

Update all settings in this page to be disabled when this main toggle is
off.

Bug: 30028435
Test: VibrationMainSwitchPreferenceControllerTest
Change-Id: I752ca3b914c46678a1347034c5b6cf24fd40cc13
2022-01-18 22:31:30 +00:00
TreeHugger Robot
423ea1825f Merge "Refine the plural strings design in Settings" 2022-01-18 19:46:49 +00:00
Weng Su
d2cdd60139 Fix Robolectric failures for new registerReceiver security design
- Security team add new interface to Context.registerReceiver() with a
third parameter.

- The new interface might have some issues in the test environment.

- Spy the registerReceiver() and unregisterReceiver() to avoid
unexpected issues.

Bug: 214938188
Test: manual test
make RunSettingsRoboTests
ROBOTEST_FILTER=WifiPrimarySwitchPreferenceControllerTest

Change-Id: I5bf9fc860a3de99145bc7535ba57cb514b403966
2022-01-18 17:48:28 +00:00
Lais Andrade
6b2e2e4cbb Merge "Introduce alarm and media vibration intensity settings" 2022-01-18 17:37:31 +00:00
Lucas Silva
38d0a7ca91 Rewrite dream settings.
The available dreams will now be shown in a grid, with a preview button
at the bottom.

Screenshot (white placeholder image used):
http://screen/6pe6EoACPoQN8TZ.png
http://screen/4nR6Wg5pN7pL6Wb.png

Phone (single column layout):
http://screen/4WFqzZR8Yf9H3VZ.png

Colors and margins will be finalized once final mocks are done.

Bug: 207681076
Bug: 214250590
Test: locally on device
Change-Id: Ie68bdc60e74e72dc3c3cee3f1ffd40f5613109b9
2022-01-18 16:06:34 +00:00
Lais Andrade
eaaf5331d6 Introduce alarm and media vibration intensity settings
Introduce toggles and sliders to configure the alarm and media
vibrations in the "Vibration & haptics" settings app.

Also update the multiple intensities configuration flag into a integer,
where the device can specify how many distinct levels are supported.
Follow existing implementation to map the intensities to higher setting
values.

Bug: 198346559
Bug: 207477604
Test: [Alarm|Media]Vibration[Intensity|Toggle]PreferenceControllerTest
Change-Id: Ie3d570b72ba1229e613ecf0c45fac81233529e32
2022-01-18 16:03:01 +00:00
Weng Su
1779bd43e4 Fix the Robolectric Tests Failures
- The ShadowWifiManager class is not working as expected
  - The getSystemService(WifiManager.class) return null when testing

- Use Mockito class instead of Shadow class

Bug: 214906101
Bug: 214938188
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=AllInOneTetherSettingsTest
make RunSettingsRoboTests ROBOTEST_FILTER=WifiTetherSettingsTest

Change-Id: Ic54af8524fbff1b6ac916ca8e1bcac52f413663a
2022-01-18 14:27:54 +00:00
TreeHugger Robot
b81f2b77f0 Merge "Ignore/Fix broken tests" 2022-01-18 11:05:45 +00:00
Tsung-Mao Fang
aa19771a37 Ignore/Fix broken tests
Fix: 214943221
Fix: 215070875
Bug: 215071960
Bug: 215071948
Bug: 215072120
Test: run robo test
Change-Id: Id11c8461a2cb11cba96feebbfb0337b096eb3a17
2022-01-18 17:39:24 +08:00
TreeHugger Robot
35de64a646 Merge "Fix broken tests" 2022-01-18 09:21:26 +00:00