Home
last modified time | relevance | path

Searched refs:shadowOf (Results 1 – 25 of 133) 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/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/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()
DBluetoothEntryPreferenceControllerTest.java71 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_bluetoothAvailable_available()
80 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_bluetoothAvailable_disallowBluetooth_disabledForUser()
90 Shadows.shadowOf(RuntimeEnvironment.application.getPackageManager()).setSystemFeature( in getAvailabilityStatus_bluetoothNotAvailable_unsupportedOnDevice()
/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/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/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;
129 assertThat(getUriWithGivenPrefix(shadowOf(mContentResolver).getDeletedUris(), in testResetButtonClick_cleanSmsRawTable()
188 Uri uri = getUriWithGivenPrefix(shadowOf(mContentResolver).getDeletedUris(), in testResetButtonClick_emptyNetworkSubscriptionId_noRestoreDefaultApn()
198 Uri uri = getUriWithGivenPrefix(shadowOf(mContentResolver).getDeletedUris(), in testResetButtonClick_validNetworkSubscriptionId_restoreDefaultApn()
DBluetoothMacAddressPreferenceControllerTest.java75 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in refreshUi_setsAddress()
93 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in getAvailabilityStatus_featureBluetooth_unsupportedOnDevice()
102 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in getAvailabilityStatus_enableDefaultAdapter_available()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/location/
DWifiScanningPreferenceControllerTest.java54 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in setUp()
61 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in getAvailabilityStatus_hasWifiFeature_available()
68 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in getAvailabilityStatus_noWifiFeature_unsupported()
DBluetoothScanningPreferenceControllerTest.java54 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in setUp()
61 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in getAvailabilityStatus_hasBluetoothFeature_available()
68 Shadows.shadowOf(mContext.getPackageManager()).setSystemFeature( in getAvailabilityStatus_noBluetoothFeature_unsupported()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/
DDownloadPackageTaskRoboTest.java24 import static org.robolectric.Shadows.shadowOf;
130 shadowOf(mPackageManager).installPackage(packageInfo); in installTestPackage()
134 shadowOf(mConnectivityManager).setActiveNetworkInfo(null); in setNotConnected()

123456