Home
last modified time | relevance | path

Searched refs:verify (Results 1 – 25 of 93) sorted by relevance

1234

/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/uiflows/
DPreProvisioningControllerTest.java28 import static org.mockito.Mockito.verify;
126 verify(mUi).showUserConsentDialog(mParams, true); in testManagedProfile()
130 verify(mUi).startProfileOwnerProvisioning(mParams); in testManagedProfile()
131 verify(mEncryptionController).cancelEncryptionReminder(); in testManagedProfile()
143 verify(mUi).showErrorAndClose(anyInt(), anyString()); in testManagedProfile_provisioningNotAllowed()
172 verify(mUi).requestEncryption(mParams); in testManagedProfile_withEncryption()
187 verify(mUi).showUserConsentDialog(mParams, true); in testManagedProfile_afterEncryption()
191 verify(mUi).startProfileOwnerProvisioning(mParams); in testManagedProfile_afterEncryption()
192 verify(mEncryptionController).cancelEncryptionReminder(); in testManagedProfile_afterEncryption()
205 verify(mUi).showDeleteManagedProfileDialog(any(ComponentName.class), in testManagedProfile_withExistingProfile()
[all …]
DEncryptionControllerTest.java24 import static org.mockito.Mockito.verify;
97 verify(mIntentStore).save(intentCaptor.capture()); in testSetEncryptionReminder_duringSuw()
101 verify(mUtils).enableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); in testSetEncryptionReminder_duringSuw()
102 verify(mPackageManager).flushPackageRestrictionsAsUser(TEST_USER_ID); in testSetEncryptionReminder_duringSuw()
114 verify(mIntentStore).save(intentCaptor.capture()); in testSetEncryptionReminder_afterSuw()
118 verify(mUtils, never()).enableComponent(any(ComponentName.class), anyInt()); in testSetEncryptionReminder_afterSuw()
128 verify(mResumeNotificationHelper).showResumeNotification(any(Intent.class)); in testResumeProvisioning_profileOwnerAfterSuw()
129 verify(mContext, never()).startActivity(any(Intent.class)); in testResumeProvisioning_profileOwnerAfterSuw()
138 verify(mContext).startActivity(mIntent); in testResumeProvisioning_profileOwnerDuringSuw()
139 verify(mResumeNotificationHelper, never()).showResumeNotification(any(Intent.class)); in testResumeProvisioning_profileOwnerDuringSuw()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothPhoneServiceTest.java64 import static org.mockito.Mockito.verify;
132 verify(mMockCallsManager).answerCall(eq(mockCall), any(int.class)); in testHeadsetAnswerCall()
142 verify(mMockCallsManager,never()).answerCall(any(Call.class), any(int.class)); in testHeadsetAnswerCallNull()
152 verify(mMockCallsManager).disconnectCall(eq(mockCall)); in testHeadsetHangupCall()
162 verify(mMockCallsManager,never()).disconnectCall(any(Call.class)); in testHeadsetHangupCallNull()
172 verify(mMockCallsManager).playDtmfTone(eq(mockCall), eq((char) TEST_DTMF_TONE)); in testHeadsetSendDTMF()
173 verify(mMockCallsManager).stopDtmfTone(eq(mockCall)); in testHeadsetSendDTMF()
183 verify(mMockCallsManager,never()).playDtmfTone(any(Call.class), anyChar()); in testHeadsetSendDTMFNull()
184 verify(mMockCallsManager,never()).stopDtmfTone(any(Call.class)); in testHeadsetSendDTMFNull()
248 verify(mMockBluetoothHeadset).clccResponse(eq(1), eq(0), eq(0), eq(0), eq(false), in testListCurrentCallsOneCall()
[all …]
DCreateConnectionProcessorTest.java47 import static org.mockito.Mockito.verify;
97 verify(mMockCall).setConnectionManagerPhoneAccount(eq(pAHandle)); in testSimPhoneAccountSuccess()
98 verify(mMockCall).setTargetPhoneAccount(eq(pAHandle)); in testSimPhoneAccountSuccess()
99 verify(mMockCall).setConnectionService(eq(service)); in testSimPhoneAccountSuccess()
100 verify(service).createConnection(eq(mMockCall), any(CreateConnectionResponse.class)); in testSimPhoneAccountSuccess()
104 verify(mMockCreateConnectionResponse).handleCreateConnectionSuccess(mockCallIdMapper, null); in testSimPhoneAccountSuccess()
119 verify(service, never()).createConnection(eq(mMockCall), in testbadPhoneAccount()
121 verify(mMockCreateConnectionResponse).handleCreateConnectionFailure( in testbadPhoneAccount()
140 verify(mMockCall).setConnectionManagerPhoneAccount(eq(callManagerPAHandle)); in testConnectionManagerSuccess()
141 verify(mMockCall).setTargetPhoneAccount(eq(pAHandle)); in testConnectionManagerSuccess()
[all …]
DCallerInfoLookupHelperTest.java49 import static org.mockito.Mockito.verify;
108 verify(mFactory).startQuery(anyInt(), eq(mContext), eq(URI1.getSchemeSpecificPart()), in testSimpleLookup()
113 verify(listener).onCallerInfoQueryComplete(URI1, mCallerInfo1); in testSimpleLookup()
119 verify(mContactsAsyncHelper).startObtainPhotoAsync(anyInt(), eq(mContext), in testSimpleLookup()
124 verify(listener).onContactPhotoQueryComplete(URI1, mCallerInfo1); in testSimpleLookup()
145 verify(mFactory, times(1)).startQuery(anyInt(), eq(mContext), in testLookupWithTwoListeners()
151 verify(callListener, times(1)).onCallerInfoQueryComplete(URI1, mCallerInfo1); in testLookupWithTwoListeners()
152 verify(otherListener, times(1)).onCallerInfoQueryComplete(URI1, mCallerInfo1); in testLookupWithTwoListeners()
157 verify(mContactsAsyncHelper).startObtainPhotoAsync(anyInt(), eq(mContext), in testLookupWithTwoListeners()
162 verify(callListener).onContactPhotoQueryComplete(URI1, mCallerInfo1); in testLookupWithTwoListeners()
[all …]
DMissedCallNotifierImplTest.java59 import static org.mockito.Mockito.verify;
144 verify(mNotificationManager, times(2)).notifyAsUser(isNull(String.class), in cancelNotificationTestInternal()
146 verify(mNotificationManager).cancelAsUser(any(String.class), eq(requestIdCaptor.getValue()), in cancelNotificationTestInternal()
150 verify(builder2).setContentText(CALLER_NAME); in cancelNotificationTestInternal()
182 verify(mNotificationManager, times(2)).notifyAsUser(isNull(String.class), eq(1), in testNotifyMultipleMissedCalls()
191 verify(builder).setWhen(CALL_TIMESTAMP); in testNotifyMultipleMissedCalls()
197 verify(builder).setContentText(String.format(MISSED_CALLS_MSG, 2)); in testNotifyMultipleMissedCalls()
198 verify(builder).setContentTitle(MISSED_CALLS_TITLE); in testNotifyMultipleMissedCalls()
200 verify(builder).setContentText(MISSED_CALLS_TITLE); in testNotifyMultipleMissedCalls()
201 verify(builder).setContentTitle(USER_CALL_ACTIVITY_LABEL); in testNotifyMultipleMissedCalls()
[all …]
DCallAudioManagerTest.java46 import static org.mockito.Mockito.verify;
93 verify(mCallAudioModeStateMachine).sendMessageWithArgs( in testSingleIncomingCallFlowWithoutMTSpeedUp()
105 verify(mCallAudioModeStateMachine).sendMessageWithArgs( in testSingleIncomingCallFlowWithoutMTSpeedUp()
126 verify(mCallAudioModeStateMachine).sendMessageWithArgs( in testSingleIncomingCallFlowWithMTSpeedUp()
158 verify(mCallAudioRouteStateMachine).sendMessageWithSessionInfo( in testSingleOutgoingCall()
160 verify(mCallAudioModeStateMachine).sendMessageWithArgs( in testSingleOutgoingCall()
175 verify(mCallAudioModeStateMachine, times(2)).sendMessageWithArgs( in testSingleOutgoingCall()
178 verify(mCallAudioModeStateMachine, times(2)).sendMessageWithArgs( in testSingleOutgoingCall()
184 verify(mCallAudioModeStateMachine, times(3)).sendMessageWithArgs( in testSingleOutgoingCall()
187 verify(mCallAudioModeStateMachine, times(3)).sendMessageWithArgs( in testSingleOutgoingCall()
[all …]
DBluetoothManagerTest.java41 import static org.mockito.Mockito.verify;
63 verify(mAdapterProxy).getProfileProxy(eq(mContext), in setUp()
69 verify(mContext).registerReceiver(receiverCaptor.capture(), any(IntentFilter.class)); in setUp()
119 verify(mHeadsetProxy).connectAudio(); in testShouldBePendingAfterConnectAudio()
127 verify(mHeadsetProxy).disconnectAudio(); in testDisconnectAudioWhenHeadsetServiceConnected()
134 verify(mHeadsetProxy, never()).disconnectAudio(); in testDisconnectAudioWithNoHeadsetService()
142 verify(mListener).onBluetoothStateChange(BluetoothManager.BLUETOOTH_UNINITIALIZED, in testConnectServiceWhenUninitialized1()
152 verify(mListener).onBluetoothStateChange(BluetoothManager.BLUETOOTH_UNINITIALIZED, in testConnectServiceWhenUninitialized2()
162 verify(mListener).onBluetoothStateChange(BluetoothManager.BLUETOOTH_UNINITIALIZED, in testConnectServiceWhenUninitialized3()
174 verify(mListener).onBluetoothStateChange(BluetoothManager.BLUETOOTH_AUDIO_CONNECTED, in testReceiveAudioDisconnectWhenConnected()
[all …]
DCallAudioModeStateMachineTest.java34 import static org.mockito.Mockito.verify;
527 verify(mAudioManager, never()).requestAudioFocusForCall(anyInt(), anyInt()); in runParametrizedTestCase()
530 verify(mAudioManager).abandonAudioFocusForCall(); in runParametrizedTestCase()
533 verify(mAudioManager).requestAudioFocusForCall( in runParametrizedTestCase()
537 verify(mAudioManager).requestAudioFocusForCall( in runParametrizedTestCase()
543 verify(mAudioManager).setMode(eq(params.expectedMode)); in runParametrizedTestCase()
545 verify(mAudioManager, never()).setMode(anyInt()); in runParametrizedTestCase()
550 verify(mCallAudioManager, never()).startRinging(); in runParametrizedTestCase()
551 verify(mCallAudioManager, never()).stopRinging(); in runParametrizedTestCase()
554 verify(mCallAudioManager).startRinging(); in runParametrizedTestCase()
[all …]
DIncomingCallFilterTest.java41 import static org.mockito.Mockito.verify;
97 verify(mFilter1).startFilterLookup(mCall, testFilter); in testSingleFilter()
101 verify(mResultCallback).onCallFilteringComplete(eq(mCall), eq(RESULT1)); in testSingleFilter()
115 verify(mFilter1).startFilterLookup(mCall, testFilter); in testMultipleFilters()
116 verify(mFilter2).startFilterLookup(mCall, testFilter); in testMultipleFilters()
117 verify(mFilter3).startFilterLookup(mCall, testFilter); in testMultipleFilters()
123 verify(mResultCallback).onCallFilteringComplete(eq(mCall), eq( in testMultipleFilters()
138 verify(mResultCallback, timeout((int) SHORT_TIMEOUT * 2)).onCallFilteringComplete(eq(mCall), in testFilterTimeout()
143 verify(mResultCallback, atMost(1)).onCallFilteringComplete(any(Call.class), in testFilterTimeout()
156 verify(mResultCallback, atMost(1)).onCallFilteringComplete(any(Call.class), in testFilterTimeoutDoesntTrip()
DBasicCallTests.java26 import static org.mockito.Mockito.verify;
81 import static org.mockito.Mockito.verify;
139 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingCall()
167 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCall()
194 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCallAsAudio()
222 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingInvalidVideoState()
292 verify(mConnectionServiceFixtureA.getTestDouble()) in testIncomingCallFromContactWithSendToVoicemailIsRejected()
317 verify(mInCallServiceFixtureX.getTestDouble(), never()) in testIncomingCallFromContactWithSendToVoicemailIsRejected()
319 verify(mInCallServiceFixtureY.getTestDouble(), never()) in testIncomingCallFromContactWithSendToVoicemailIsRejected()
332 verify(mConnectionServiceFixtureA.getTestDouble()) in testIncomingCallCallerInfoLookupTimesOutIsAllowed()
[all …]
DCallScreeningServiceFilterTest.java58 import static org.mockito.Mockito.verify;
126 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testNoDefaultDialer()
134 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testNoResolveEntries()
141 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testBadResolveEntry()
148 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testPermissionlessFilterService()
156 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testContextFailToBind()
166 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testExceptionInScreeningService()
176 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(PASS_RESULT)); in testAllowCall()
190 verify(mCallback).onCallFilteringComplete(eq(mCall), eq(new CallFilteringResult( in testDisallowCall()
202 verify(mContext).bindServiceAsUser(intentCaptor.capture(), serviceCaptor.capture(), in verifyBindingIntent()
[all …]
DInCallWakeLockControllerTest.java20 import static org.mockito.Mockito.verify;
65 verify(mWakeLockAdapter).acquire(); in testRingingCallAdded()
75 verify(mWakeLockAdapter, never()).acquire(); in testNonRingingCallAdded()
85 verify(mWakeLockAdapter).acquire(); in testRingingCallTransition()
95 verify(mWakeLockAdapter, never()).acquire(); in testRingingCallRemoved()
105 verify(mWakeLockAdapter).release(0); in testWakeLockReleased()
115 verify(mWakeLockAdapter, never()).acquire(); in testAcquireWakeLockWhenHeld()
DTelecomServiceImplTest.java77 import static org.mockito.Mockito.verify;
266 verify(mFakePhoneAccountRegistrar) in testSetUserSelectedOutgoingPhoneAccount()
279 verify(mFakePhoneAccountRegistrar, never()) in testSetUserSelectedOutgoingPhoneAccountFailure()
326 verify(mFakePhoneAccountRegistrar, never()) in testGetCallCapablePhoneAccountsFailure()
483 verify(mFakePhoneAccountRegistrar).registerPhoneAccount(testPhoneAccount); in registerPhoneAccountTestHelper()
484 verify(mContext).sendBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL), in registerPhoneAccountTestHelper()
496 verify(mFakePhoneAccountRegistrar, never()) in registerPhoneAccountTestHelper()
498 verify(mContext, never()) in registerPhoneAccountTestHelper()
514 verify(mFakePhoneAccountRegistrar).unregisterPhoneAccount(phHandle); in testUnregisterPhoneAccount()
515 verify(mContext).sendBroadcastAsUser(intentCaptor.capture(), eq(UserHandle.ALL), in testUnregisterPhoneAccount()
[all …]
DProximitySensorManagerTest.java33 import static org.mockito.Mockito.verify;
68 verify(mWakeLockAdapter).acquire(); in testTurnOnProximityWithCallsActive()
78 verify(mWakeLockAdapter, never()).acquire(); in testTurnOnProximityWithNoCallsActive()
88 verify(mWakeLockAdapter).release(0); in testTurnOffProximityExplicitly()
100 verify(mWakeLockAdapter, never()).release(0); in testCallRemovedFromCallsManagerCallsActive()
110 verify(mWakeLockAdapter).release(0); in testCallRemovedFromCallsManagerNoCallsActive()
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DMenuTest.java75 Mockito.verify(mVisibilityChangeListener, Mockito.atLeastOnce()) in testShowHide_ReasonNone()
77 Mockito.verify(mVisibilityChangeListener, Mockito.never()) in testShowHide_ReasonNone()
80 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_NONE), in testShowHide_ReasonNone()
85 Mockito.verify(mVisibilityChangeListener, Mockito.atLeastOnce()) in testShowHide_ReasonNone()
87 Mockito.verify(mMenuView).onHide(); in testShowHide_ReasonNone()
95 Mockito.verify(mVisibilityChangeListener, Mockito.atLeastOnce()) in testShowHide_ReasonGuide()
97 Mockito.verify(mVisibilityChangeListener, Mockito.never()) in testShowHide_ReasonGuide()
100 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_GUIDE), in testShowHide_ReasonGuide()
105 Mockito.verify(mVisibilityChangeListener, Mockito.atLeastOnce()) in testShowHide_ReasonGuide()
107 Mockito.verify(mMenuView).onHide(); in testShowHide_ReasonGuide()
[all …]
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
DCallLogBackupAgentTest.java20 import static org.mockito.Mockito.verify;
122 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION); in testWriteState_NoCalls()
123 inOrder.verify(mDataOutput).writeInt(0 /* size */); in testWriteState_NoCalls()
135 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION); in testWriteState_OneCall()
136 inOrder.verify(mDataOutput).writeInt(1); in testWriteState_OneCall()
137 inOrder.verify(mDataOutput).writeInt(101 /* call-ID */); in testWriteState_OneCall()
151 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION); in testWriteState_MultipleCalls()
152 inOrder.verify(mDataOutput).writeInt(3 /* size */); in testWriteState_MultipleCalls()
153 inOrder.verify(mDataOutput).writeInt(101 /* call-ID */); in testWriteState_MultipleCalls()
154 inOrder.verify(mDataOutput).writeInt(102 /* call-ID */); in testWriteState_MultipleCalls()
[all …]
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DSetDevicePolicyTaskTest.java21 import static org.mockito.Mockito.verify;
73 verify(mPackageManager).setApplicationEnabledSetting(ADMIN_PACKAGE_NAME, in testEnableDevicePolicyApp()
76 verify(mCallback, times(1)).onSuccess(); in testEnableDevicePolicyApp()
84 verify(mCallback, times(1)).onError(); in testEnableDevicePolicyApp_PackageNotFound()
90 verify(mDevicePolicyManager).setActiveAdmin(ADMIN_COMPONENT_NAME, true, TEST_USER_ID); in testSetActiveAdmin()
91 verify(mCallback, times(1)).onSuccess(); in testSetActiveAdmin()
97 verify(mDevicePolicyManager).setDeviceOwner(ADMIN_COMPONENT_NAME, OWNER_NAME, TEST_USER_ID); in testSetDeviceOwner()
98 verify(mCallback, times(1)).onSuccess(); in testSetDeviceOwner()
106 verify(mDevicePolicyManager).setDeviceOwner(ADMIN_COMPONENT_NAME, OWNER_NAME, TEST_USER_ID); in testSetDeviceOwner_PreconditionsNotMet()
107 verify(mCallback, times(1)).onError(); in testSetDeviceOwner_PreconditionsNotMet()
[all …]
DDeleteNonRequiredAppsTaskTest.java55 import static org.mockito.Mockito.verify;
118 verify(mCallback, times(1)).onSuccess(); in testOnlyAppsWithLauncherDeletedByDefault()
131 verify(mCallback, times(1)).onSuccess(); in testDeviceOwnerRequiredAppsNotDeleted()
144 verify(mCallback, times(1)).onSuccess(); in testProfileOwnerRequiredAppsNotDeleted()
157 verify(mCallback, times(1)).onSuccess(); in testManagedUserRequiredAppsNotDeleted()
168 verify(mCallback, times(1)).onSuccess(); in testMdmNotDeleted()
181 verify(mCallback, times(1)).onSuccess(); in testDisallowedAppsDeletedEvenIfNoLauncher()
193 verify(mCallback, times(1)).onSuccess(); in testDeviceOwnerImesNotDeleted()
205 verify(mCallback, times(1)).onSuccess(); in testProfileOwnerImesStillDeleted()
217 verify(mCallback, times(1)).onSuccess(); in testManagedUserImesNotDeleted()
[all …]
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/
DProximitySensorTest.java22 import static org.mockito.Mockito.verify;
53 verify(mAccelerometerListener, never()).enable(anyBoolean()); in testAccelerometerBehaviorOnDisplayChange()
55 verify(mAccelerometerListener).enable(true); in testAccelerometerBehaviorOnDisplayChange()
56 verify(mAccelerometerListener, never()).enable(false); in testAccelerometerBehaviorOnDisplayChange()
59 verify(mAccelerometerListener).enable(true); in testAccelerometerBehaviorOnDisplayChange()
60 verify(mAccelerometerListener).enable(false); in testAccelerometerBehaviorOnDisplayChange()
63 verify(mAccelerometerListener, times(2)).enable(true); in testAccelerometerBehaviorOnDisplayChange()
64 verify(mAccelerometerListener).enable(false); in testAccelerometerBehaviorOnDisplayChange()
DInCallPresenterTest.java20 import static org.mockito.Mockito.verify;
81 verify(mInCallActivity).finish(); in testOnActivitySet_finishesActivityWhenNoCalls()
89 verify(mStatusBarNotifier).updateNotification(InCallState.INCOMING, in testOnCallListChange_sendsNotificationWhenInCall()
111 verify(mInCallActivity).finish(); in testOnCallListChange_handlesCallWaitingWhenScreenOffShouldRestartActivity()
128 verify(mContext).startActivity(InCallPresenter.getInstance().getInCallIntent(false, false)); in testOnCallListChange_pendingOutgoingToInCallTransitionShowsUiForErrorDialog()
140 verify(mContext).startActivity(InCallPresenter.getInstance().getInCallIntent(false, false)); in testOnCallListChange_noAccountProvidedForCallShowsUiForAccountPicker()
162 verify(mInCallActivity, never()).finish(); in testOnCallListChange_LastCallDisconnectedNoCallsLeftFinishesUi()
167 verify(mInCallActivity).finish(); in testOnCallListChange_LastCallDisconnectedNoCallsLeftFinishesUi()
189 verify(mContext, never()).startActivity(Mockito.any(Intent.class)); in verifyInCallActivityNotStarted()
193 verify(mStatusBarNotifier, never()).updateNotification(Mockito.any(InCallState.class), in verifyIncomingCallNotificationNotSent()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DCameraManagerTest.java112 Mockito.verify(wrapper, Mockito.never()).open(0); in testOpenCamera()
113 Mockito.verify(wrapper).open(1); in testOpenCamera()
114 Mockito.verify(wrapper, Mockito.never()).release(frontCamera); in testOpenCamera()
115 Mockito.verify(wrapper, Mockito.never()).release(backCamera); in testOpenCamera()
118 Mockito.verify(wrapper).open(0); in testOpenCamera()
119 Mockito.verify(wrapper).open(1); in testOpenCamera()
120 Mockito.verify(wrapper, Mockito.never()).release(frontCamera); in testOpenCamera()
121 Mockito.verify(wrapper).release(backCamera); in testOpenCamera()
123 inOrder.verify(wrapper).open(1); in testOpenCamera()
124 inOrder.verify(wrapper).release(backCamera); in testOpenCamera()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/filterednumber/
DBlockedNumbersAutoMigratorTest.java23 import static org.mockito.Mockito.verify;
87 verify(mockQueryHandler, never()).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class)); in testAutoMigrate_M()
98 verify(mockQueryHandler, never()).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class)); in testAutoMigrate_AlreadyMigrated()
111 verify(mockQueryHandler, never()).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class)); in testAutoMigrate_AlreadyChecked()
122 verify(mockQueryHandler).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class)); in testAutoMigrate_HasNumbers()
135 verify(mockQueryHandler, times(1)) in testAutoMigrate_HasNumbers_MultipleCalls()
148 verify(mockQueryHandler).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class)); in testAutoMigrate_NoNumbers()
161 verify(mockQueryHandler, times(1)) in testAutoMigrate_NoNumbers_MultipleCalls()
181 verify(mockQueryHandler, times(2)) in testAutoMigrate_SimulateClearingAppData()
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DFilteredNumberAsyncQueryHandlerTest.java95 disabledProvider.verify(); in testHasBlockedNumbers_Disabled()
108 mContentProvider.verify(); in testHasBlockedNumbers_NoResults()
121 mContentProvider.verify(); in testHasBlockedNumbers()
145 mContentProvider.verify(); in testIsBlockedNumber_Disabled()
160 mContentProvider.verify(); in testIsBlockedNumber_NoResults()
178 mContentProvider.verify(); in testIsBlockedNumber()
198 mContentProvider.verify(); in testIsBlockedNumber_MultipleResults()
221 disabledProvider.verify(); in testBlockNumber_Disabled()
236 mContentProvider.verify(); in testBlockNumber()
251 mContentProvider.verify(); in testBlockNumber_NullNormalizedNumber()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/compat/
DFilteredNumberCompatTest.java22 import static org.mockito.Mockito.verify;
238 verify(mContext).getSystemService(Context.USER_SERVICE); in testCanCurrentUserOpenBlockSettings_M_SecondaryUser()
239 verify(userManager).isSystemUser(); in testCanCurrentUserOpenBlockSettings_M_SecondaryUser()
250 verify(mContext).getSystemService(Context.USER_SERVICE); in testCanCurrentUserOpenBlockSettings_M_PrimaryUser()
251 verify(userManager).isSystemUser(); in testCanCurrentUserOpenBlockSettings_M_PrimaryUser()
262 verify(mContext).getSystemService(Context.USER_SERVICE); in testCanAttemptBlockOperations_M_SecondaryUser()
263 verify(userManager).isSystemUser(); in testCanAttemptBlockOperations_M_SecondaryUser()
274 verify(mContext).getSystemService(Context.USER_SERVICE); in testCanAttemptBlockOperations_M_PrimaryUser()
275 verify(userManager).isSystemUser(); in testCanAttemptBlockOperations_M_PrimaryUser()

1234