Home
last modified time | relevance | path

Searched refs:ShadowUtils (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSwitchBarControllerTest.java31 import com.android.settings.testutils.shadow.ShadowUtils;
50 @Config(shadows = {ShadowUtils.class, ShadowUserManager.class})
72 ShadowUtils.reset(); in tearDown()
77 ShadowUtils.setIsUserAMonkey(true); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
92 ShadowUtils.setIsUserAMonkey(false); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
108 ShadowUtils.setIsUserAMonkey(false); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
123 ShadowUtils.setIsUserAMonkey(false); in buildController_unavailable_shouldDisableSwitchBar()
DClearAdbKeysPreferenceControllerTest.java36 import com.android.settings.testutils.shadow.ShadowUtils;
52 @Config(shadows = ShadowUtils.class)
78 ShadowUtils.reset(); in tearDown()
134 ShadowUtils.setIsUserAMonkey(true); in handlePreferenceTreeClick_monkeyUser_shouldReturnFalse()
DAdbQrCodePreferenceControllerTest.java38 import com.android.settings.testutils.shadow.ShadowUtils;
51 @Config(shadows = ShadowUtils.class)
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DPowerButtonEndsCallPreferenceControllerTest.java28 import com.android.settings.testutils.shadow.ShadowUtils;
39 @Config(shadows = {ShadowUtils.class, ShadowKeyCharacterMap.class})
57 ShadowUtils.reset(); in tearDown()
64 ShadowUtils.setIsVoiceCapable(true); in getAvailabilityStatus_hasPowerKeyAndVoiceCapable_shouldReturnAvailable()
73 ShadowUtils.setIsVoiceCapable(false); in getAvailabilityStatus_noVoiceCapable_shouldReturnUnsupportedOnDevice()
82 ShadowUtils.setIsVoiceCapable(true); in getAvailabilityStatus_noPowerKey_shouldReturnUnsupportedOnDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DSwipeToNotificationSettingsTest.java25 import com.android.settings.testutils.shadow.ShadowUtils;
47 ShadowUtils.reset(); in setUp()
52 ShadowUtils.reset(); in tearDown()
72 @Config(shadows = ShadowUtils.class)
74 ShadowUtils.setFingerprintManager(null); in getNonIndexableKeys_noFingerprintHardware_shouldSuppressPage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/
DSystemAlertWindowPreferenceControllerTest.java23 import com.android.settings.testutils.shadow.ShadowUtils;
33 @Config(shadows = {ShadowUtils.class})
47 ShadowUtils.setIsSystemAlertWindowEnabled(true); in systemAlertWindow_byDefault_shouldBeShown()
53 ShadowUtils.setIsSystemAlertWindowEnabled(false); in systemAlertWindow_lowMemory_shouldNotBeShown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/face/
DBiometricLockscreenBypassPreferenceControllerTest.java25 import com.android.settings.testutils.shadow.ShadowUtils;
36 @Config(shadows = {ShadowUtils.class})
50 ShadowUtils.reset(); in tearDown()
55 ShadowUtils.setIsMultipleBiometricsSupported(true); in isAvailable_multipleBiometricsSupported_shouldReturnAvailable()
DFaceSettingsLockscreenBypassPreferenceControllerTest.java34 import com.android.settings.testutils.shadow.ShadowUtils;
50 @Config(shadows = {ShadowUtils.class})
80 ShadowUtils.reset(); in tearDown()
99 ShadowUtils.setIsMultipleBiometricsSupported(true); in isAvailable_multipleBiometricsSupported_shouldReturnUnsupported()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DBatteryPercentagePreferenceControllerTest.java28 import com.android.settings.testutils.shadow.ShadowUtils;
39 @Config(shadows = ShadowUtils.class)
55 ShadowUtils.reset(); in tearDown()
78 ShadowUtils.setIsBatteryPresent(false); in getAvailabilityStatus_batteryNotPresent_shouldReturnConditionallyUnavailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DOpenSupportedLinksTest.java39 import com.android.settings.testutils.shadow.ShadowUtils;
53 @Config(shadows = ShadowUtils.class)
81 ShadowUtils.reset(); in tearDown()
95 ShadowUtils.setHandledDomains(domainLinks); in addLinksToFooter_oneHandledDomains_returnDomainsFooterTitle()
164 ShadowUtils.setHandledDomains(domainLinks); in initHandledDomains()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollEnrollingTest.java35 import com.android.settings.testutils.shadow.ShadowUtils;
51 @Config(shadows = ShadowUtils.class)
62 ShadowUtils.setFingerprintManager(mFingerprintManager); in setUp()
75 ShadowUtils.reset(); in tearDown()
DSetupFingerprintEnrollFindSensorTest.java33 import com.android.settings.testutils.shadow.ShadowUtils;
49 @Config(shadows = {ShadowUtils.class, ShadowAlertDialogCompat.class})
58 ShadowUtils.setFingerprintManager(mFingerprintManager); in setUp()
64 ShadowUtils.reset(); in tearDown()
DFingerprintEnrollFindSensorTest.java39 import com.android.settings.testutils.shadow.ShadowUtils;
59 @Config(shadows = ShadowUtils.class)
70 ShadowUtils.setFingerprintManager(mFingerprintManager); in setUp()
83 ShadowUtils.reset(); in tearDown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DTopLevelNetworkEntryPreferenceControllerTest.java31 import com.android.settings.testutils.shadow.ShadowUtils;
47 @Config(shadows = {ShadowRestrictedLockUtilsInternal.class, ShadowUtils.class})
72 ShadowUtils.reset(); in tearDown()
77 ShadowUtils.setIsDemoUser(true); in getAvailabilityStatus_demoUser_unsupported()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DBuildNumberPreferenceControllerTest.java43 import com.android.settings.testutils.shadow.ShadowUtils;
61 @Config(shadows = ShadowUtils.class)
98 ShadowUtils.reset(); in tearDown()
146 ShadowUtils.setIsUserAMonkey(true); in handlePrefTreeClick_isMonkeyRun_doNothing()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java41 import com.android.settings.testutils.shadow.ShadowUtils;
61 @Config(shadows = {ShadowUtils.class, ShadowAlertDialogCompat.class})
86 ShadowUtils.setApplicationLabel(PACKAGE_NAME, DISPLAY_NAME); in setUp()
217 ShadowUtils.setApplicationLabel(PACKAGE_NAME, DISPLAY_NAME); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchFeatureProviderImplTest.java34 import com.android.settings.testutils.shadow.ShadowUtils;
63 @Config(shadows = ShadowUtils.class)
87 @Config(shadows = ShadowUtils.class)
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsTranscodeMtpControllerTest.java36 import com.android.settings.testutils.shadow.ShadowUtils;
169 @Config(shadows = ShadowUtils.class)
171 ShadowUtils.setIsUserAMonkey(true); in isAvailable_isMonkey_shouldReturnFalse()
DUsbDefaultFragmentTest.java40 import com.android.settings.testutils.shadow.ShadowUtils;
139 @Config(shadows = ShadowUtils.class)
141 ShadowUtils.setIsUserAMonkey(true); in setDefaultKey_isMonkey_shouldDoNothing()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceControllerTest.java47 import com.android.settings.testutils.shadow.ShadowUtils;
65 @Config(shadows = {ShadowEntityHeaderController.class, ShadowUtils.class})
129 ShadowUtils.reset(); in tearDown()
308 ShadowUtils.setIsBatteryPresent(false); in displayPreference_batteryNotPresent_isInvisible()
/packages/apps/Settings/tests/robotests/src/com/android/settings/system/
DFactoryResetPreferenceControllerTest.java26 import com.android.settings.testutils.shadow.ShadowUtils;
57 ShadowUtils.reset(); in tearDown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetupChooseLockGenericTest.java33 import com.android.settings.testutils.shadow.ShadowUtils;
47 ShadowUtils.class,
DChooseLockPatternTest.java33 import com.android.settings.testutils.shadow.ShadowUtils;
45 @Config(shadows = ShadowUtils.class)
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/actionbar/
DSearchMenuControllerTest.java38 import com.android.settings.testutils.shadow.ShadowUtils;
52 @Config(shadows = ShadowUtils.class)
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DMainClearTest.java53 import com.android.settings.testutils.shadow.ShadowUtils;
71 @Config(shadows = ShadowUtils.class)
265 ShadowUtils.setIsDemoUser(true); in testInitiateMainClear_inDemoMode_sendsIntent()
269 ShadowUtils.setDeviceOwnerComponent(componentName); in testInitiateMainClear_inDemoMode_sendsIntent()

12