Commit Graph

99816 Commits

Author SHA1 Message Date
Weng Su
ea0425e1f8 Mock WifiPickerTracker.class for Roboletric test-cases
Bug: 214938188
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=NetworkRequestDialogActivityTest
make RunSettingsRoboTests ROBOTEST_FILTER=NetworkRequestDialogFragmentTest
make RunSettingsRoboTests ROBOTEST_FILTER=NetworkRequestErrorDialogFragmentTest
make RunSettingsRoboTests ROBOTEST_FILTER=WifiConnectionPreferenceControllerTest

Change-Id: I4c15c2a095203338bb9cf7bcd359242d59bf8b4e
2022-01-21 07:24:21 +00:00
Weng Su
64cc3bf9a4 Mock WifiManager.class for Roboletric test-cases
Bug: 214938188
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=AddNetworkFragmentTest
make RunSettingsRoboTests ROBOTEST_FILTER=ConfigureWifiEntryFragmentTest
make RunSettingsRoboTests ROBOTEST_FILTER=ContextualWifiSliceTest
make RunSettingsRoboTests ROBOTEST_FILTER=WifiConfigControllerTest
make RunSettingsRoboTests ROBOTEST_FILTER=WifiSliceTest

Change-Id: I96873c48b36ed11b30e32bba1b98b6328ad17bb7
2022-01-21 07:17:37 +00:00
TreeHugger Robot
adf5ccf359 Merge "Fix broken test" 2022-01-21 03:50:49 +00:00
TreeHugger Robot
f85ec568e5 Merge "Resolve test failure in WorkModePreferenceControllerTest" 2022-01-21 02:51:27 +00:00
Kate Montgomery
d6909d1843 Merge "Make the show/hide system setting for recent location acccesses sticky." 2022-01-21 00:35:55 +00:00
Lifu Tang
885dff9b9a Fix broken test
Bug: 215047319
Test: run test case `LocationInjectedServicesPreferenceControllerTest`
Change-Id: I446f1341042d69ea6657d2f4bf1fbbac48961a4f
2022-01-20 14:23:16 -08:00
Kate Montgomery
14e6c73687 Make the show/hide system setting for recent location acccesses sticky.
This is in order to align the location indicator with the list of recent
accesses shown in Settings.

Bug: 191503437
Test: manual
Change-Id: I7aaa65390567ca644e7137de15c558cdcdb29935
2022-01-20 21:19:44 +00:00
Michael Groover
a0dc31f3c5 Resolve test failure in WorkModePreferenceControllerTest
Android T introduced a new requirement that apps registering for
non-system broadcasts via Context#registerReceiver must specify a flag
indicating whether the receiver should be exported. This flag was
added to the receiver in WorkModePreferenceController, but this broke
a test since the signature of the registerReceiver method was changed.
This commit updates the signature of the method in the test to also
expect an int parameter for the flags.

Fixes: 214906107
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WorkModePreferenceControllerTest
Change-Id: I17061ab24ed3ec3def4062fe461803ad88bce9c8
2022-01-20 11:45:43 -08:00
danielwbhuang
714bcfff2c [Panlingual] Suggested locales update
1. Extract the Country from the Top system langauge, TelephonyManager.getSimCountryIso().toUpperCase(Locale.US), and TelephonyManager.getNetworkCountryIso().toUpperCase(Locale.US).
2. For each app-supported locale, if the region is identical then add this as a suggested language.

Bug: 209729740
Test: atest AppLocaleDetailsTest
Change-Id: I4f95a638916e88197fc37546c7786c63b59f581d
2022-01-20 22:48:28 +08:00
Daniel Hsieh
a67bb94388 Merge "Hide following typing preference setting in SuW." 2022-01-20 11:51:48 +00:00
Daniel Hsieh
32420a07db Merge "Refactor SettingsContentObserver and add it to follow typing feature." 2022-01-20 11:51:21 +00:00
TreeHugger Robot
8662e4642e Merge "Fix search test" 2022-01-20 09:58:03 +00:00
Tsung-Mao Fang
8b0e4018e1 Fix search test
The broken test is because the activityInfo has no package name.
Set a random package name to fix it.

Test: run robo test
Fix: 214945263
Change-Id: I5ae5a0021f1473e6eadbad5f6e1f22840a44d592
2022-01-20 09:57:34 +00:00
Yuri Ufimtsev
a031404afc Merge "Change the default Controller keys for RoboTests" 2022-01-20 09:05:51 +00:00
Daniel Hsieh
6542b6efb8 Hide following typing preference setting in SuW.
Hide following typing switch preference setting in SuW.

Bug: 214876729
Test: Start set-up wizard > Assistive options > Vision settings >
           Magnification > Following typing preference is invisible
      make RunSettingsRoboTests ROBOTEST_FILTER=
           ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: I4ab64deeef321390c5b89c8ea58ea469fb5c09bf
2022-01-20 08:53:24 +00:00
Daniel Hsieh
55bc49860b Refactor SettingsContentObserver and add it to follow typing feature.
Refactor SettingsContentObserver and rename it to
AccessibilitySettingsContentObserver. Besides, we register it to observe
follow typing feature preference value.

The reasons behind refactor:
1. We change callback signature due to the consistency for register it
by preference key, not by Uri.
2. We refactor the default preference key to a seperate method. Since
the default value is related to accessibility, we rename it with
accessibility prefix.
3. We can register different callback for difference collections of
preference keys.

Default preference keys: They existed in the previous constructor.
1. Settings.Secure.ACCESSIBILITY_ENABLED
2. Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES

Bug: 194668976
Test: make RunSettingsRoboTests ROBOTEST_FILTER=
           AccessibilitySettingsTest
           AccessibilitySettingsContentObserverTest
           AccessibilityShortcutPreferenceFragmentTest
           MagnificationFollowTypingPreferenceControllerTest
           ToggleFeaturePreferenceFragmentTest
           ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: Iafd27e044ebe2536ae7ae55c1c80af54f7f0f822
2022-01-20 08:38:27 +00:00
Allen Su
2e9760efd1 Merge "Change locale comparison API" 2022-01-20 06:52:28 +00:00
TreeHugger Robot
e0f8b565e1 Merge "Add "Reboot with MTE" option for supported devices." 2022-01-20 06:30:16 +00:00
allenwtsu
03711a8ed4 Change locale comparison API
Bug: 209729853
Test: atest AppLocaleDetailsTest
Change-Id: I1568fe9474e473ac6d3fb81dcf9edf9ba7434e85
2022-01-20 14:09:54 +08:00
George Chang
7c73170711 Merge "Update NfcPaymentPreferenceControllerTest" 2022-01-20 05:31:06 +00:00
TreeHugger Robot
3bd0631f8f Merge "Add connect / disconnect action when connect / disconnect to bluetooth device" 2022-01-20 04:36:34 +00:00
Florian Mayer
966aef4edd Add "Reboot with MTE" option for supported devices.
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.development.RebootWithMteDialogTest"
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.development.RebootWithMtePreferenceControllerTest"

Bug: 206895651

Change-Id: I38ef2c5aeb5c5d805afd4f1ab860f7a0a4d18e1c
2022-01-20 03:15:35 +00:00
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