Home
last modified time | relevance | path

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

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSwitchBarControllerTest.java32 import com.android.settings.testutils.shadow.ShadowUtils;
51 @Config(shadows = {ShadowUtils.class, ShadowUserManager.class})
73 ShadowUtils.reset(); in tearDown()
78 ShadowUtils.setIsUserAMonkey(true); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
93 ShadowUtils.setIsUserAMonkey(false); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
109 ShadowUtils.setIsUserAMonkey(false); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
125 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/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/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/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.java35 import com.android.settings.testutils.shadow.ShadowUtils;
51 @Config(shadows = {ShadowUtils.class})
69 ShadowUtils.setFaceManager(mFaceManager); in setUp()
84 ShadowUtils.reset(); in tearDown()
103 ShadowUtils.setIsMultipleBiometricsSupported(true); in isAvailable_multipleBiometricsSupported_shouldReturnUnsupported()
DFaceEnrollEducationTest.java45 import com.android.settings.testutils.shadow.ShadowUtils;
64 @Config(shadows = {ShadowUtils.class})
85 ShadowUtils.setFaceManager(mFaceManager); in setUp()
91 ShadowUtils.reset(); in tearDown()
/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/network/
DTopLevelNetworkEntryPreferenceControllerTest.java33 import com.android.settings.testutils.shadow.ShadowUtils;
50 ShadowUtils.class,
77 ShadowUtils.reset(); in tearDown()
82 ShadowUtils.setIsDemoUser(true); in getAvailabilityStatus_demoUser_nonLargeScreen_unsupported()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiScanModeActivityTest.java32 import com.android.settings.testutils.shadow.ShadowUtils;
49 @Config(shadows = {ShadowUtils.class})
78 ShadowUtils.reset(); in tearDown()
98 ShadowUtils.setApplicationLabel(LAUNCHED_PACKAGE, APP_LABEL); in refreshAppLabel_hasPackageName_shouldHasAppLabel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DOpenSupportedLinksTest.java41 import com.android.settings.testutils.shadow.ShadowUtils;
57 ShadowUtils.class,
90 ShadowUtils.reset(); in tearDown()
104 ShadowUtils.setHandledDomains(domainLinks); in addLinksToFooter_oneHandledDomains_returnDomainsFooterTitle()
174 ShadowUtils.setHandledDomains(domainLinks); in initHandledDomains()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DSetupFingerprintEnrollFindSensorTest.java32 import com.android.settings.testutils.shadow.ShadowUtils;
51 @Config(shadows = {ShadowUtils.class, ShadowAlertDialogCompat.class})
65 ShadowUtils.setFingerprintManager(mFingerprintManager); in setUp()
78 ShadowUtils.reset(); in tearDown()
DFingerprintSettingsUnlockCategoryControllerTest.java34 import com.android.settings.testutils.shadow.ShadowUtils;
49 @Config(shadows = {ShadowUtils.class})
77 ShadowUtils.reset(); in tearDown()
DFingerprintSettingsRequireScreenOnToAuthPreferenceControllerTest.java35 import com.android.settings.testutils.shadow.ShadowUtils;
50 @Config(shadows = {ShadowUtils.class})
78 ShadowUtils.reset(); in tearDown()
DFingerprintSettingsFragmentTest.java64 import com.android.settings.testutils.shadow.ShadowUtils;
85 @Config(shadows = {ShadowSettingsPreferenceFragment.class, ShadowUtils.class, ShadowFragment.class,
114 ShadowUtils.setFingerprintManager(mFingerprintManager); in setUp()
126 ShadowUtils.reset(); in tearDown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java40 import com.android.settings.testutils.shadow.ShadowUtils;
59 @Config(shadows = {ShadowUtils.class, ShadowAlertDialogCompat.class})
84 ShadowUtils.setApplicationLabel(PACKAGE_NAME, DISPLAY_NAME); in setUp()
226 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;
65 @Config(shadows = ShadowUtils.class)
91 @Config(shadows = ShadowUtils.class)
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/
DMultiBiometricEnrollHelperTest.java43 import com.android.settings.testutils.shadow.ShadowUtils;
62 ShadowUtils.class,
142 ShadowUtils.setFaceManager(mFaceManager); in launchFaceAndFingerprintEnroll_testFace()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetupChooseLockGenericTest.java46 import com.android.settings.testutils.shadow.ShadowUtils;
68 ShadowUtils.class,
84 ShadowUtils.setFingerprintManager(mFingerprintManager); in setUp()
85 ShadowUtils.setFaceManager(mFaceManager); in setUp()
DSetupSkipDialogTest.java37 import com.android.settings.testutils.shadow.ShadowUtils;
55 @Config(shadows = {ShadowUtils.class, ShadowAlertDialog.class})
69 ShadowUtils.setFingerprintManager(mFingerprintManager); in setUp()
70 ShadowUtils.setFaceManager(mFaceManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsTranscodeMtpControllerTest.java40 import com.android.settings.testutils.shadow.ShadowUtils;
177 @Config(shadows = ShadowUtils.class)
179 ShadowUtils.setIsUserAMonkey(true); in isAvailable_isMonkey_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/system/
DFactoryResetDemoUserPreferenceControllerTest.java26 import com.android.settings.testutils.shadow.ShadowUtils;
58 ShadowUtils.reset(); in tearDown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/combination/
DCombinedBiometricProfileSettingsTest.java61 import com.android.settings.testutils.shadow.ShadowUtils;
84 @Config(shadows = {ShadowSettingsPreferenceFragment.class, ShadowUtils.class, ShadowFragment.class})
108 ShadowUtils.setFingerprintManager(mFingerprintManager); in setUp()
109 ShadowUtils.setFaceManager(mFaceManager); in setUp()
160 ShadowUtils.reset(); in tearDown()

123