Home
last modified time | relevance | path

Searched refs:shadowOf (Results 1 – 25 of 144) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DSetupFingerprintEnrollIntroductionTest.java69 Shadows.shadowOf(application.getPackageManager()) in setUp()
96 ShadowActivity shadowActivity = Shadows.shadowOf(mController.get()); in testKeyguardNotSecure_shouldFinishWithSetupSkipDialogResultSkip()
115 ShadowActivity shadowActivity = Shadows.shadowOf(mController.get()); in testKeyguardSecure_shouldFinishWithFingerprintResultSkip()
130 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testBackKeyPress_shouldSetIntentDataIfLockScreenAdded()
144 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testBackKeyPress_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch()
159 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testCancelClicked_shouldSetIntentDataIfLockScreenAdded()
175 assertThat(Shadows.shadowOf(activity).getResultIntent()).isNull(); in testCancelClicked_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch()
184 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testOnResultFromFindSensor_shouldNotSetIntentDataIfLockScreenPresentBeforeLaunch()
197 assertThat(Shadows.shadowOf(activity).getResultIntent()).isNotNull(); in testOnResultFromFindSensor_shouldSetIntentDataIfLockScreenAdded()
206 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testOnResultFromFindSensor_shouldNotSetIntentDataIfLockScreenNotAdded()
[all …]
DSetupFingerprintEnrollFinishTest.java58 Shadows.shadowOf(application.getPackageManager()) in setUp()
63 Shadows.shadowOf(mFingerprintManager).setIsHardwareDetected(true); in setUp()
78 Shadows.shadowOf(mActivity).getNextStartedActivityForResult(); in clickAddAnother_shouldLaunchEnrolling()
93 Shadows.shadowOf(mActivity).getNextStartedActivityForResult(); in clickAddAnother_shouldPropagateResults()
108 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(0); in onActivityResult_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled()
118 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(1); in onActivityResult_fingerprintCountIsOne_fingerprintSuggestionActivityEnabled()
128 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(2); in clickNext_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled()
138 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(1); in clickNext_fingerprintCountIsOne_fngerprintSuggestionActivityEnabled()
148 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(2); in onBackPressed_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled()
158 Shadows.shadowOf((FingerprintManager) mFingerprintManager).setDefaultFingerprints(1); in onBackPressed_fingerprintCountIsOne_fngerprintSuggestionActivityEnabled()
DFingerprintEnrollFindSensorTest.java92 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in enrollFingerprint_shouldProceed()
107 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in enrollFingerprintTwice_shouldStartOneEnrolling()
129 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in layoutWithoutAnimation_shouldNotCrash()
142 ShadowActivity shadowActivity = Shadows.shadowOf(mActivity); in clickSkip_shouldReturnResultSkip()
165 assertThat(Shadows.shadowOf(mActivity).getResultCode()).isEqualTo(Activity.RESULT_CANCELED); in onActivityResult_withNullIntentShouldNotCrash()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetNewPasswordActivityTest.java98 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testChooseLockGeneric()
112 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testSetupChooseLockGeneric()
132 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraWithoutPermission()
156 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraWithPermission()
186 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraInvalidValue()
214 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordExtraNoneComplexity()
241 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewPasswordWithoutExtra()
269 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewParentProfilePasswordExtraWithPermission()
296 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in testLaunchChooseLock_setNewParentProfilePasswordWithoutExtra()
317 Shadows.shadowOf(devicePolicyManager).setActiveAdmin(buildTestComponentName(PKG_NAME)); in launchChooseLock_callingAppIsAdmin_setsAdminExtra()
[all …]
DSetupSkipDialogTest.java54 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in frpMessages_areShownCorrectly_whenNotSupported()
69 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in frpMessages_areShownCorrectly_whenSupported()
84 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
99 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in dialogMessage_whenSkipPasswordSetupForFace_shouldShownCorrectly()
114 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in dialogMessage_whenSkipPatternSetupForFace_shouldShownCorrectly()
129 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in dialogMessage_whenSkipPinSetupForFingerprint_shouldShownCorrectly()
144 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in dialogMessage_whenSkipPasswordSetupForFingerprint_shouldShownCorrectly()
159 ShadowAlertDialogCompat shadowAlertDialog = ShadowAlertDialogCompat.shadowOf(alertDialog); in dialogMessage_whenSkipPatternSetupForFingerprint_shouldShownCorrectly()
DChooseLockGenericTest.java32 import static org.robolectric.Shadows.shadowOf;
112 assertThat(shadowOf(mActivity).getNextStartedActivity()).isNotNull(); in updatePreferencesOrFinish_passwordTypeSetPin_shouldStartChooseLockPassword()
125 assertThat(shadowOf(mActivity).getNextStartedActivity()).isNull(); in updatePreferencesOrFinish_passwordTypeSetPinNotFbe_shouldNotStartChooseLock()
267 Intent actualIntent = shadowOf(mActivity).getNextStartedActivityForResult().intent; in onPreferenceTreeClick_fingerprintPassesMinComplexityInfoOntoNextActivity()
288 Intent actualIntent = shadowOf(mActivity).getNextStartedActivityForResult().intent; in onPreferenceTreeClick_facePassesMinComplexityInfoOntoNextActivity()
DSetupChooseLockGenericTest.java26 import static org.robolectric.Shadows.shadowOf;
64 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in setupChooseLockGenericPasswordComplexityExtraWithoutPermission()
78 ShadowActivity shadowActivity = Shadows.shadowOf(activity); in setupChooseLockGenericPasswordComplexityExtraWithPermission()
/packages/apps/TV/tests/robotests/src/com/android/tv/
DSetupPassthroughActivityTest.java21 import static org.robolectric.Shadows.shadowOf;
117 shadowOf(activity).getNextStartedActivityForResult(); in create_emptyIntent()
127 shadowOf(activity).getNextStartedActivityForResult(); in create_noInputs()
140 shadowOf(activity).getNextStartedActivityForResult(); in create_inputNotFound()
153 shadowOf(activity).getNextStartedActivityForResult(); in create_validInput()
171 ShadowActivity shadowActivity = shadowOf(activity); in create_trustedCallingPackage()
195 ShadowActivity shadowActivity = shadowOf(activity); in create_nonTrustedCallingPackage()
214 assertThat(shadowOf(activity).getResultCode()).isEqualTo(Activity.RESULT_CANCELED); in onActivityResult_canceled()
231 assertThat(shadowOf(activity).getResultCode()).isEqualTo(Activity.RESULT_OK); in onActivityResult_ok()
256 assertThat(shadowOf(activity).getResultCode()).isEqualTo(Activity.RESULT_OK); in onActivityResult_3rdPartyEpg_ok()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java115 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
119 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
123 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
127 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
131 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
135 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
139 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
143 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
169 assertEquals("some message", Shadows.shadowOf(textView).innerText()); in testSetAdminSupportDetails()
/packages/apps/TV/tests/robotests/src/com/android/tv/ui/
DChannelBannerViewTest.java20 import static org.robolectric.Shadows.shadowOf;
77 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_20()
85 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_40()
93 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_60()
101 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_80()
109 assertThat(shadowOf(mChannelSignalStrengthView.getDrawable()).getCreatedFromResId()) in updateChannelSignalStrengthView_100()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DResetNetworkTest.java21 import static org.robolectric.Shadows.shadowOf;
58 Intent intent = shadowOf(mActivity).getNextStartedActivity(); in showFinalConfirmation_checkboxVisible_eraseEsimChecked()
70 Intent intent = shadowOf(mActivity).getNextStartedActivity(); in showFinalConfirmation_checkboxVisible_eraseEsimUnchecked()
82 Intent intent = shadowOf(mActivity).getNextStartedActivity(); in showFinalConfirmation_checkboxGone_eraseEsimChecked()
94 Intent intent = shadowOf(mActivity).getNextStartedActivity(); in showFinalConfirmation_checkboxGone_eraseEsimUnchecked()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothPreferenceControllerTest.java99 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_bluetoothNotAvailable_unsupportedOnDevice()
107 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser()
117 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_adapterDisabled_conditionallyUnavailable()
127 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_available()
138 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in onStart_registersEventListener()
149 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in onStop_unregistersEventListener()
DPairNewDevicePreferenceControllerTest.java88 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in setUp()
115 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_bluetoothNotAvailable_unsupportedOnDevice()
123 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser()
133 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_disabledForUser()
143 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_available()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiEntryPreferenceControllerTest.java76 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in onCreate_setsListener()
86 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in refreshUi_wifiDisabled_setsSwitchUnchecked()
98 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in refreshUi_wifiEnabled_setsSwitchChecked()
110 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in getAvailabilityStatus_wifiAvailable_available()
118 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in getAvailabilityStatus_wifiNotAvailable_unsupportedOnDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipDialogFragmentTest.java114 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_highUsageTip_fireHighUsageDialog()
128 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog()
150 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog()
180 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog()
199 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog()
215 ShadowAlertDialogCompat shadowDialog = ShadowAlertDialogCompat.shadowOf(dialog); in testOnCreateDialog_summaryTip_fireDialog()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/exoplayer/tests/
DSampleSourceExtractorTest.java98 Shadows.shadowOf(handlerLooper).runOneTask(); in testTrickplayDisabled()
112 Shadows.shadowOf(handlerLooper).idle(); in testTrickplayDisabled()
131 Shadows.shadowOf(handlerLooper).runOneTask(); in testTrickplayDisabled()
169 Shadows.shadowOf(handlerLooper).runOneTask(); in testDiskTooSlowTrickplayDisabled()
201 Shadows.shadowOf(handlerLooper).runOneTask(); in testDiskTooSlowTrickplayDisabled()
206 Shadows.shadowOf(handlerLooper).idle(); in testDiskTooSlowTrickplayDisabled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DAddTrustedDevicePreferenceControllerTest.java82 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in setUp()
151 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_bluetoothNotAvailable_unsupportedOnDevice()
159 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser()
169 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_disabledForUser()
179 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_available()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/
DTelecomActivityViewModelTest.java22 import static org.robolectric.Shadows.shadowOf;
87 (ShadowBluetoothAdapterForDialer) shadowOf(BluetoothAdapter.getDefaultAdapter()); in testDialerAppState_bluetoothNotEnabled_bluetoothError()
103 (ShadowBluetoothAdapterForDialer) shadowOf(BluetoothAdapter.getDefaultAdapter()); in testDialerAppState_noPairedDevices_bluetoothError()
122 (ShadowBluetoothAdapterForDialer) shadowOf(BluetoothAdapter.getDefaultAdapter()); in testDialerAppState_hfpNoConnected_bluetoothError()
145 (ShadowBluetoothAdapterForDialer) shadowOf(BluetoothAdapter.getDefaultAdapter()); in testDialerAppState_bluetoothAllSet_dialerAppStateDefault()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchFeatureProviderImplTest.java57 mPackageManager = Shadows.shadowOf(mActivity.getPackageManager()); in setUp()
81 final Intent launchIntent = Shadows.shadowOf(mActivity).getNextStartedActivity(); in initSearchToolbar_hasResolvedInfo_shouldStartCorrectIntent()
96 assertThat(Shadows.shadowOf(mActivity).getNextStartedActivity()).isNull(); in initSearchToolbar_noResolvedInfo_shouldNotStartActivity()
110 assertThat(Shadows.shadowOf(mActivity).getNextStartedActivity()).isNull(); in initSearchToolbar_deviceNotProvisioned_shouldNotCreateSearchBar()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/legal/
DLegalPreferenceControllerTest.java101 ShadowPackageManager packageManager = Shadows.shadowOf(mContext.getPackageManager()); in refreshUi_intentResolvesToActivity_isVisible()
127 ShadowPackageManager packageManager = Shadows.shadowOf(mContext.getPackageManager()); in refreshUi_intentResolvesToActivity_updatesTitle()
159 ShadowPackageManager packageManager = Shadows.shadowOf(mContext.getPackageManager()); in refreshUi_intentResolvesToActivity_updatesIntentToSpecificActivity()
171 ShadowPackageManager packageManager = Shadows.shadowOf(mContext.getPackageManager()); in refreshUi_intentResolvesToNull_isNotVisible()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DProgramDataManagerTest.java24 import static org.robolectric.Shadows.shadowOf;
110 shadowOf(getMainLooper()).idle(); in startAndWaitForComplete()
208 shadowOf(getMainLooper()).runToEndOfTasks(); in testCurrentProgramListener()
238 shadowOf(getMainLooper()).runToEndOfTasks(); in testContentProviderUpdate()
261 shadowOf(getMainLooper()).runToEndOfTasks(); in testSetPauseProgramUpdate()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/telecom/
DInCallServiceImplTest.java27 import static org.robolectric.Shadows.shadowOf;
114 ShadowContextWrapper shadowContextWrapper = shadowOf(RuntimeEnvironment.application); in onActiveCallAdded_startInCallActivity()
170 ShadowApplication shadow = shadowOf(mInCallServiceImpl.getApplication()); in testOnBringToForeground()
176 ShadowIntent shadowIntent = shadowOf(intent); in testOnBringToForeground()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/
DDefaultAutofillPickerEntryPreferenceControllerTest.java79 Shadows.shadowOf(RuntimeEnvironment.application).setSystemService( in setUp()
99 Shadows.shadowOf(RuntimeEnvironment.application).setSystemService( in getAvailabilityStatus_autofillManagerIsNull_unsupportedOnDevice()
151 ShadowPackageManager shadowPackageManager = Shadows.shadowOf(mContext.getPackageManager()); in getSettingIntent_noServiceInterface_returnsNull()
170 ShadowPackageManager shadowPackageManager = Shadows.shadowOf(mContext.getPackageManager()); in getSettingIntent_hasServiceInterface_returnsIntent()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/
DTestDialerApplication.java21 import static org.robolectric.Shadows.shadowOf;
42 shadowOf(this).setSystemService( in onCreate()
48 shadowOf(this).setComponentNameAndServiceForBindService( in onCreate()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DResetNetworkConfirmFragmentTest.java21 import static org.robolectric.Shadows.shadowOf;
135 assertThat(getUriWithGivenPrefix(shadowOf(mContentResolver).getDeletedUris(), in testResetButtonClick_cleanSmsRawTable()
194 Uri uri = getUriWithGivenPrefix(shadowOf(mContentResolver).getDeletedUris(), in testResetButtonClick_emptyNetworkSubscriptionId_noRestoreDefaultApn()
204 Uri uri = getUriWithGivenPrefix(shadowOf(mContentResolver).getDeletedUris(), in testResetButtonClick_validNetworkSubscriptionId_restoreDefaultApn()

123456