Searched refs:verify (Results 1 - 25 of 95) sorted by relevance

1234

/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/
H A DProximitySensorTest.java22 import static org.mockito.Mockito.verify;
53 verify(mAccelerometerListener, never()).enable(anyBoolean());
55 verify(mAccelerometerListener).enable(true);
56 verify(mAccelerometerListener, never()).enable(false);
59 verify(mAccelerometerListener).enable(true);
60 verify(mAccelerometerListener).enable(false);
63 verify(mAccelerometerListener, times(2)).enable(true);
64 verify(mAccelerometerListener).enable(false);
H A DInCallPresenterTest.java20 import static org.mockito.Mockito.verify;
83 verify(mInCallActivity).finish();
91 verify(mStatusBarNotifier).updateNotification(InCallState.INCOMING,
113 verify(mInCallActivity).finish();
130 verify(mContext).startActivity(InCallPresenter.getInstance().getInCallIntent(false, false));
142 verify(mContext).startActivity(InCallPresenter.getInstance().getInCallIntent(false, false));
164 verify(mInCallActivity, never()).finish();
169 verify(mInCallActivity).finish();
191 verify(mContext, never()).startActivity(Mockito.any(Intent.class));
195 verify(mStatusBarNotifie
[all...]
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
H A DMenuTest.java75 Mockito.verify(mVisibilityChangeListener, Mockito.atLeastOnce())
77 Mockito.verify(mVisibilityChangeListener, Mockito.never())
80 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_NONE),
85 Mockito.verify(mVisibilityChangeListener, Mockito.atLeastOnce())
87 Mockito.verify(mMenuView).onHide();
95 Mockito.verify(mVisibilityChangeListener, Mockito.atLeastOnce())
97 Mockito.verify(mVisibilityChangeListener, Mockito.never())
100 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_GUIDE),
105 Mockito.verify(mVisibilityChangeListener, Mockito.atLeastOnce())
107 Mockito.verify(mMenuVie
[all...]
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/uiflows/
H A DPreProvisioningControllerTest.java28 import static org.mockito.Mockito.verify;
126 verify(mUi).showUserConsentDialog(mParams, true);
130 verify(mUi).startProfileOwnerProvisioning(mParams);
131 verify(mEncryptionController).cancelEncryptionReminder();
143 verify(mUi).showErrorAndClose(anyInt(), anyString());
172 verify(mUi).requestEncryption(mParams);
187 verify(mUi).showUserConsentDialog(mParams, true);
191 verify(mUi).startProfileOwnerProvisioning(mParams);
192 verify(mEncryptionController).cancelEncryptionReminder();
205 verify(mU
[all...]
H A DEncryptionControllerTest.java24 import static org.mockito.Mockito.verify;
97 verify(mIntentStore).save(intentCaptor.capture());
101 verify(mUtils).enableComponent(TEST_HOME_RECEIVER, TEST_USER_ID);
102 verify(mPackageManager).flushPackageRestrictionsAsUser(TEST_USER_ID);
114 verify(mIntentStore).save(intentCaptor.capture());
118 verify(mUtils, never()).enableComponent(any(ComponentName.class), anyInt());
128 verify(mResumeNotificationHelper).showResumeNotification(any(Intent.class));
129 verify(mContext, never()).startActivity(any(Intent.class));
138 verify(mContext).startActivity(mIntent);
139 verify(mResumeNotificationHelpe
[all...]
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
H A DCallLogBackupAgentTest.java20 import static org.mockito.Mockito.verify;
122 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION);
123 inOrder.verify(mDataOutput).writeInt(0 /* size */);
135 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION);
136 inOrder.verify(mDataOutput).writeInt(1);
137 inOrder.verify(mDataOutput).writeInt(101 /* call-ID */);
151 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION);
152 inOrder.verify(mDataOutput).writeInt(3 /* size */);
153 inOrder.verify(mDataOutput).writeInt(101 /* call-ID */);
154 inOrder.verify(mDataOutpu
[all...]
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
H A DSetDevicePolicyTaskTest.java21 import static org.mockito.Mockito.verify;
73 verify(mPackageManager).setApplicationEnabledSetting(ADMIN_PACKAGE_NAME,
76 verify(mCallback, times(1)).onSuccess();
84 verify(mCallback, times(1)).onError();
90 verify(mDevicePolicyManager).setActiveAdmin(ADMIN_COMPONENT_NAME, true, TEST_USER_ID);
91 verify(mCallback, times(1)).onSuccess();
97 verify(mDevicePolicyManager).setDeviceOwner(ADMIN_COMPONENT_NAME, OWNER_NAME, TEST_USER_ID);
98 verify(mCallback, times(1)).onSuccess();
106 verify(mDevicePolicyManager).setDeviceOwner(ADMIN_COMPONENT_NAME, OWNER_NAME, TEST_USER_ID);
107 verify(mCallbac
[all...]
H A DDisallowAddUserTaskTest.java37 import static org.mockito.Mockito.verify;
76 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true,
91 verify(mockUserManager, never()).setUserRestriction(eq(UserManager.DISALLOW_ADD_USER),
103 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true,
105 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true,
H A DDeleteNonRequiredAppsTaskTest.java55 import static org.mockito.Mockito.verify;
118 verify(mCallback, times(1)).onSuccess();
131 verify(mCallback, times(1)).onSuccess();
144 verify(mCallback, times(1)).onSuccess();
157 verify(mCallback, times(1)).onSuccess();
168 verify(mCallback, times(1)).onSuccess();
181 verify(mCallback, times(1)).onSuccess();
193 verify(mCallback, times(1)).onSuccess();
205 verify(mCallback, times(1)).onSuccess();
217 verify(mCallbac
[all...]
/packages/services/Telephony/tests/src/com/android/phone/vvm/omtp/scheduling/
H A DBaseTaskTest.java22 import static org.mockito.Mockito.verify;
45 verify(task.policy).onBeforeExecute();
46 verify(task.policy).onCompleted();
54 verify(task.policy).onFail();
61 verify(task1.policy, never()).onDuplicatedTaskAdded();
65 verify(task1.policy).onDuplicatedTaskAdded();
76 verify(task1.policy, never()).onDuplicatedTaskAdded();
80 verify(task1.policy, never()).onDuplicatedTaskAdded();
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DCreateConnectionProcessorTest.java47 import static org.mockito.Mockito.verify;
97 verify(mMockCall).setConnectionManagerPhoneAccount(eq(pAHandle));
98 verify(mMockCall).setTargetPhoneAccount(eq(pAHandle));
99 verify(mMockCall).setConnectionService(eq(service));
100 verify(service).createConnection(eq(mMockCall), any(CreateConnectionResponse.class));
104 verify(mMockCreateConnectionResponse).handleCreateConnectionSuccess(mockCallIdMapper, null);
119 verify(service, never()).createConnection(eq(mMockCall),
121 verify(mMockCreateConnectionResponse).handleCreateConnectionFailure(
140 verify(mMockCall).setConnectionManagerPhoneAccount(eq(callManagerPAHandle));
141 verify(mMockCal
[all...]
H A DInCallWakeLockControllerTest.java20 import static org.mockito.Mockito.verify;
65 verify(mWakeLockAdapter).acquire();
75 verify(mWakeLockAdapter, never()).acquire();
85 verify(mWakeLockAdapter).acquire();
95 verify(mWakeLockAdapter, never()).acquire();
105 verify(mWakeLockAdapter).release(0);
115 verify(mWakeLockAdapter, never()).acquire();
H A DCallerInfoLookupHelperTest.java51 import static org.mockito.Mockito.verify;
104 verify(listener).onCallerInfoQueryComplete(eq(Uri.EMPTY), isNull(CallerInfo.class));
120 verify(mFactory).startQuery(anyInt(), eq(mContext), eq(URI1.getSchemeSpecificPart()),
125 verify(listener).onCallerInfoQueryComplete(URI1, mCallerInfo1);
131 verify(mContactsAsyncHelper).startObtainPhotoAsync(anyInt(), eq(mContext),
136 verify(listener).onContactPhotoQueryComplete(URI1, mCallerInfo1);
157 verify(mFactory, times(1)).startQuery(anyInt(), eq(mContext),
163 verify(callListener, times(1)).onCallerInfoQueryComplete(URI1, mCallerInfo1);
164 verify(otherListener, times(1)).onCallerInfoQueryComplete(URI1, mCallerInfo1);
169 verify(mContactsAsyncHelpe
[all...]
H A DBluetoothPhoneServiceTest.java64 import static org.mockito.Mockito.verify;
132 verify(mMockCallsManager).answerCall(eq(mockCall), any(int.class));
142 verify(mMockCallsManager,never()).answerCall(any(Call.class), any(int.class));
152 verify(mMockCallsManager).disconnectCall(eq(mockCall));
162 verify(mMockCallsManager,never()).disconnectCall(any(Call.class));
172 verify(mMockCallsManager).playDtmfTone(eq(mockCall), eq((char) TEST_DTMF_TONE));
173 verify(mMockCallsManager).stopDtmfTone(eq(mockCall));
183 verify(mMockCallsManager,never()).playDtmfTone(any(Call.class), anyChar());
184 verify(mMockCallsManager,never()).stopDtmfTone(any(Call.class));
248 verify(mMockBluetoothHeadse
[all...]
H A DProximitySensorManagerTest.java33 import static org.mockito.Mockito.verify;
68 verify(mWakeLockAdapter).acquire();
78 verify(mWakeLockAdapter, never()).acquire();
88 verify(mWakeLockAdapter).release(0);
100 verify(mWakeLockAdapter, never()).release(0);
110 verify(mWakeLockAdapter).release(0);
H A DMissedCallNotifierImplTest.java60 import static org.mockito.Mockito.verify;
145 verify(mNotificationManager, times(2)).notifyAsUser(isNull(String.class),
147 verify(mNotificationManager).cancelAsUser(any(String.class), eq(requestIdCaptor.getValue()),
151 verify(builder2).setContentText(CALLER_NAME);
183 verify(mNotificationManager, times(2)).notifyAsUser(isNull(String.class), eq(1),
192 verify(builder).setWhen(CALL_TIMESTAMP);
198 verify(builder).setContentText(String.format(MISSED_CALLS_MSG, 2));
199 verify(builder).setContentTitle(MISSED_CALLS_TITLE);
201 verify(builder).setContentText(MISSED_CALLS_TITLE);
202 verify(builde
[all...]
H A DDirectToVoicemailCallFilterTest.java33 import static org.mockito.Mockito.verify;
55 verify(mCallback).onCallFilteringComplete(mCall,
72 verify(mCallback).onCallFilteringComplete(mCall,
86 verify(mCallback).onCallFilteringComplete(mCall,
106 verify(mCallerInfoLookupHelper).startLookup(eq(handle), captor.capture());
H A DBluetoothManagerTest.java41 import static org.mockito.Mockito.verify;
63 verify(mAdapterProxy).getProfileProxy(eq(mContext),
69 verify(mContext).registerReceiver(receiverCaptor.capture(), any(IntentFilter.class));
119 verify(mHeadsetProxy).connectAudio();
127 verify(mHeadsetProxy).disconnectAudio();
134 verify(mHeadsetProxy, never()).disconnectAudio();
142 verify(mListener).onBluetoothStateChange(BluetoothManager.BLUETOOTH_UNINITIALIZED,
152 verify(mListener).onBluetoothStateChange(BluetoothManager.BLUETOOTH_UNINITIALIZED,
162 verify(mListener).onBluetoothStateChange(BluetoothManager.BLUETOOTH_UNINITIALIZED,
174 verify(mListene
[all...]
H A DCallAudioManagerTest.java49 import static org.mockito.Mockito.verify;
98 verify(mCallAudioModeStateMachine).sendMessageWithArgs(
110 verify(mCallAudioModeStateMachine).sendMessageWithArgs(
131 verify(mCallAudioRouteStateMachine, atLeastOnce())
159 verify(mCallAudioModeStateMachine).sendMessageWithArgs(
171 verify(mCallAudioModeStateMachine).sendMessageWithArgs(
192 verify(mCallAudioModeStateMachine).sendMessageWithArgs(
224 verify(mCallAudioRouteStateMachine).sendMessageWithSessionInfo(
226 verify(mCallAudioModeStateMachine).sendMessageWithArgs(
241 verify(mCallAudioModeStateMachin
[all...]
H A DIncomingCallFilterTest.java41 import static org.mockito.Mockito.verify;
97 verify(mFilter1).startFilterLookup(mCall, testFilter);
101 verify(mResultCallback).onCallFilteringComplete(eq(mCall), eq(RESULT1));
115 verify(mFilter1).startFilterLookup(mCall, testFilter);
116 verify(mFilter2).startFilterLookup(mCall, testFilter);
117 verify(mFilter3).startFilterLookup(mCall, testFilter);
123 verify(mResultCallback).onCallFilteringComplete(eq(mCall), eq(
138 verify(mResultCallback, timeout((int) SHORT_TIMEOUT * 2)).onCallFilteringComplete(eq(mCall),
142 // verify that we don't report back again with the result
143 verify(mResultCallbac
[all...]
/packages/apps/Dialer/tests/src/com/android/dialer/filterednumber/
H A DBlockedNumbersAutoMigratorTest.java23 import static org.mockito.Mockito.verify;
87 verify(mockQueryHandler, never()).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class));
98 verify(mockQueryHandler, never()).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class));
111 verify(mockQueryHandler, never()).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class));
122 verify(mockQueryHandler).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class));
135 verify(mockQueryHandler, times(1))
148 verify(mockQueryHandler).hasBlockedNumbers(any(OnHasBlockedNumbersListener.class));
161 verify(mockQueryHandler, times(1))
181 verify(mockQueryHandler, times(2))
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
H A DMemoryCacheManagerTest.java40 Mockito.verify(mockMemoryCache, Mockito.times(2)).reclaim();
41 Mockito.verify(otherMockMemoryCache, Mockito.times(1)).reclaim();
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
H A DContactsMockContext.java91 public void verify() { method in class:ContactsMockContext
92 mContactsProvider.verify();
93 mSettingsProvider.verify();
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
H A DCameraManagerTest.java112 Mockito.verify(wrapper, Mockito.never()).open(0);
113 Mockito.verify(wrapper).open(1);
114 Mockito.verify(wrapper, Mockito.never()).release(frontCamera);
115 Mockito.verify(wrapper, Mockito.never()).release(backCamera);
118 Mockito.verify(wrapper).open(0);
119 Mockito.verify(wrapper).open(1);
120 Mockito.verify(wrapper, Mockito.never()).release(frontCamera);
121 Mockito.verify(wrapper).release(backCamera);
123 inOrder.verify(wrapper).open(1);
124 inOrder.verify(wrappe
[all...]
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ringtone/
H A DDialerRingtoneManagerTest.java177 Mockito.verify(mInCallTonePlayer, Mockito.never()).play(Mockito.anyInt());
185 Mockito.verify(mInCallTonePlayer, Mockito.never()).play(Mockito.anyInt());
193 Mockito.verify(mInCallTonePlayer).play(Mockito.anyInt());
201 Mockito.verify(mInCallTonePlayer, Mockito.never()).stop();
209 Mockito.verify(mInCallTonePlayer, Mockito.never()).stop();
217 Mockito.verify(mInCallTonePlayer).stop();

Completed in 3849 milliseconds

1234