Home
last modified time | relevance | path

Searched refs:any (Results 1 – 25 of 124) sorted by relevance

12345

/cts/tests/tests/content/src/android/content/cts/
DDeferSyncTest.java32 import static org.mockito.ArgumentMatchers.any;
99 verify(notAlwaysSyncableAdapter, never()).onPerformSync(any(), any(), any(), any(), in noSyncsWhenDeferred()
100 any()); in noSyncsWhenDeferred()
103 verify(alwaysSyncableAdapter, never()).onPerformSync(any(), any(), any(), any(), any()); in noSyncsWhenDeferred()
123 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndMakeSyncable()
124 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndMakeSyncable()
149 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndReportIsReady()
150 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndReportIsReady()
174 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndReportIsReadyAlwaysSyncable()
175 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndReportIsReadyAlwaysSyncable()
[all …]
DAccountAccessSameCertTest.java28 import static org.mockito.ArgumentMatchers.any;
81 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), any(), any(), any(), in testAccountAccess_sameCertAsAuthenticatorCanSeeAccount()
82 any()); in testAccountAccess_sameCertAsAuthenticatorCanSeeAccount()
/cts/tests/tests/text/src/android/text/method/cts/
DTransformationMethodTest.java22 import static org.mockito.Mockito.any;
73 when(mMethod.getTransformation(any(), any())).then(returnsFirstArg()); in setup()
98 when(mMethod.getTransformation(any(), any())).then(returnsFirstArg()); in testGetTransformation()
101 verify(mMethod, atLeastOnce()).getTransformation(any(), any()); in testGetTransformation()
111 verify(mMethod, atLeastOnce()).onFocusChanged(any(), any(), anyBoolean(), anyInt(), any()); in testOnFocusChanged()
119 verify(mMethod, atLeastOnce()).onFocusChanged(any(), any(), anyBoolean(), anyInt(), any()); in testOnFocusChanged()
DLinkMovementMethodTest.java24 import static org.mockito.Matchers.any;
170 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
171 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
180 verify(mClickable0, times(1)).onClick(any()); in testOnKeyDown()
181 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
190 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
191 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
199 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
200 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
209 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminReceiverTest.java26 import static org.mockito.Mockito.any;
93 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED), eq(USER)); in testOnReceivePasswordChanged()
94 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED)); in testOnReceivePasswordChanged()
104 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED), eq(USER)); in testOnReceivePasswordFailed()
105 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED)); in testOnReceivePasswordFailed()
115 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED), eq(USER)); in testOnReceivePasswordSucceeded()
116 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED)); in testOnReceivePasswordSucceeded()
126 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING), eq(USER)); in testOnReceivePasswordExpiring()
127 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING)); in testOnReceivePasswordExpiring()
138 any(), actionEq(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_ENABLED)); in testOnReceiveEnabled()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableWrapperTest.java23 import static org.mockito.Matchers.any;
106 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
110 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
115 verify(cb, never()).invalidateDrawable(any()); in testInvalidateDrawable()
126 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
130 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
135 verify(cb, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
146 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
150 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
155 verify(cb, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
[all …]
DDrawableContainerTest.java26 import static org.mockito.Matchers.any;
110 doNothing().when(dr).draw(any()); in testDraw()
112 verify(dr, times(1)).draw(any()); in testDraw()
115 doNothing().when(dr).draw(any()); in testDraw()
117 verify(dr, times(1)).draw(any()); in testDraw()
187 }).when(dr0).getPadding(any()); in testGetPadding()
194 }).when(dr1).getPadding(any()); in testGetPadding()
320 verify(mockDrawable, times(1)).setColorFilter(any()); in testSetColorFilter()
601 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
606 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
[all …]
DRotateDrawableTest.java25 import static org.mockito.Matchers.any;
184 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
188 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
193 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
202 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
206 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
211 verify(callback, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
220 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
224 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
229 verify(callback, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
DTransitionDrawableTest.java23 import static org.mockito.Matchers.any;
89 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
96 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
103 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
117 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
123 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
131 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
143 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition()
149 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition()
156 verify(cb, never()).invalidateDrawable(any()); in testReverseTransition()
[all …]
DScaleDrawableTest.java25 import static org.mockito.Matchers.any;
96 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
100 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
105 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
117 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
121 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
126 verify(callback, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
138 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
142 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
147 verify(callback, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DActivityTransitionTest.java25 import static org.mockito.Matchers.any;
145 verify(targetActivity.enterListener, within(5000)).onTransitionStart(any()); in viewsNotStripped()
146 verify(targetActivity.enterListener, within(5000)).onTransitionEnd(any()); in viewsNotStripped()
147 verify(mExitListener, times(1)).onTransitionEnd(any()); in viewsNotStripped()
170 verify(mReenterListener, within(5000)).onTransitionStart(any()); in viewsNotStripped()
171 verify(mReenterListener, within(5000)).onTransitionEnd(any()); in viewsNotStripped()
172 verify(mSharedElementReenterListener, within(5000)).onTransitionStart(any()); in viewsNotStripped()
173 verify(mSharedElementReenterListener, within(5000)).onTransitionEnd(any()); in viewsNotStripped()
174 verify(targetActivity.returnListener, times(1)).onTransitionStart(any()); in viewsNotStripped()
175 verify(targetActivity.returnListener, times(1)).onTransitionEnd(any()); in viewsNotStripped()
[all …]
DTransitionTest.java31 import static org.mockito.Matchers.any;
102 verify(mListener, times(1)).onTransitionPause(any()); in testAddListener()
103 verify(mListener, times(1)).onTransitionResume(any()); in testAddListener()
104 verify(mListener, never()).onTransitionCancel(any()); in testAddListener()
105 verify(mListener, never()).onTransitionEnd(any()); in testAddListener()
106 verify(mListener, times(1)).onTransitionStart(any()); in testAddListener()
108 verify(listener2, never()).onTransitionPause(any()); in testAddListener()
109 verify(listener2, never()).onTransitionResume(any()); in testAddListener()
110 verify(listener2, never()).onTransitionCancel(any()); in testAddListener()
111 verify(listener2, never()).onTransitionEnd(any()); in testAddListener()
[all …]
DTransitionManagerTest.java21 import static org.mockito.Matchers.any;
61 verify(mListener, never()).onTransitionResume(any()); in testBeginDelayedTransition()
62 verify(mListener, never()).onTransitionPause(any()); in testBeginDelayedTransition()
63 verify(mListener, never()).onTransitionCancel(any()); in testBeginDelayedTransition()
154 verify(mListener, never()).onTransitionResume(any()); in testGo()
155 verify(mListener, never()).onTransitionPause(any()); in testGo()
156 verify(mListener, never()).onTransitionCancel(any()); in testGo()
203 verify(mListener, never()).onTransitionResume(any()); in testSetTransition1()
204 verify(mListener, never()).onTransitionPause(any()); in testSetTransition1()
205 verify(mListener, never()).onTransitionCancel(any()); in testSetTransition1()
[all …]
DChangeTransformTest.java20 import static org.mockito.Matchers.any;
67 verify(mListener, never()).onTransitionEnd(any()); // still running in testTranslation()
87 verify(mListener, never()).onTransitionEnd(any()); // still running in testRotation()
107 verify(mListener, never()).onTransitionEnd(any()); // still running in testScale()
120 verify(mListener, never()).onTransitionEnd(any()); // still running in testReparent()
135 verify(mListener, never()).onTransitionEnd(any()); // still running in testReparentWithOverlay()
152 verify(mListener, never()).onTransitionEnd(any()); // still running in testReparentWithOverlay()
DTransitionSetTest.java23 import static org.mockito.Matchers.any;
72 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
73 verify(changeBoundsListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
100 verify(fadeListener, within(500)).onTransitionStart(any()); in testTransitionSequentially()
101 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionSequentially()
104 verify(fadeListener, times(0)).onTransitionEnd(any()); in testTransitionSequentially()
105 verify(changeBoundsListener, times(0)).onTransitionStart(any()); in testTransitionSequentially()
108 verify(fadeListener, within(1000)).onTransitionEnd(any()); in testTransitionSequentially()
111 verify(changeBoundsListener, within(500)).onTransitionStart(any()); in testTransitionSequentially()
112 verify(changeBoundsListener, times(1)).onTransitionStart(any()); in testTransitionSequentially()
/cts/tests/tests/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessOtherCertTestCases.java32 import static org.mockito.ArgumentMatchers.any;
111 verify(adapter, never()).onPerformSync(any(), any(), any(), any(), any()); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
151 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), any(), any(), any(), in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
152 any()); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DCharSequenceTransformationTest.java19 import static org.mockito.ArgumentMatchers.any;
101 verify(template, never()).setCharSequence(eq(0), any(), any()); in testBadSubst()
130 verify(template, never()).setCharSequence(eq(0), any(), any()); in testUnknownField()
149 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("...3456"))); in testCreditCardObfuscator()
166 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("****"))); in testReplaceAllByOne()
183 verify(template, never()).setCharSequence(eq(0), any(), any()); in testPartialMatchIsIgnored()
203 verify(template).setCharSequence(eq(0), any(), in userNameObfuscator()
223 verify(template, never()).setCharSequence(eq(0), any(), any()); in testMismatch()
246 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("ACB"))); in testFieldsAreAppliedInOrder()
DDateTransformationTest.java19 import static org.mockito.ArgumentMatchers.any;
67 verify(mTemplate, never()).setCharSequence(eq(0), any(), any()); in testFieldNotFound()
78 verify(mTemplate, never()).setCharSequence(eq(0), any(), any()); in testInvalidAutofillValueType()
96 verify(mTemplate).setCharSequence(eq(0), any(), in testValidAutofillValue()
/cts/tests/tests/view/src/android/view/cts/
DGestureDetectorCtsActivity.java19 import static org.mockito.Matchers.any;
49 doReturn(true).when(mOnGestureListener).onDown(any(MotionEvent.class)); in onCreate()
50 doReturn(true).when(mOnGestureListener).onFling(any(MotionEvent.class), in onCreate()
51 any(MotionEvent.class), anyFloat(), anyFloat()); in onCreate()
52 doReturn(true).when(mOnGestureListener).onScroll(any(MotionEvent.class), in onCreate()
53 any(MotionEvent.class), anyFloat(), anyFloat()); in onCreate()
54 doReturn(true).when(mOnGestureListener).onSingleTapUp(any(MotionEvent.class)); in onCreate()
DActionModeTest.java25 import static org.mockito.Matchers.any;
92 any(ActionMode.class), any(Menu.class)); in testInvalidateContentRectOnFloatingCallsCallback()
94 any(ActionMode.class), any(Menu.class)); in testInvalidateContentRectOnFloatingCallsCallback()
103 verify(mockCallback, atLeastOnce()).onGetContentRect(any(ActionMode.class), any(View.class), in testInvalidateContentRectOnFloatingCallsCallback()
104 any(Rect.class)); in testInvalidateContentRectOnFloatingCallsCallback()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java26 import static org.mockito.Matchers.any;
307 inOrder.verify(callbacks).onEnabled(any(Context.class)); in testAppWidgetProviderCallbacks()
308 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
309 any(AppWidgetManager.class), eq(new int[] {firstAppWidgetId})); in testAppWidgetProviderCallbacks()
310 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
311 any(AppWidgetManager.class), eq(firstAppWidgetId), argThat( in testAppWidgetProviderCallbacks()
313 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
314 any(AppWidgetManager.class), eq(new int[] {secondAppWidgetId})); in testAppWidgetProviderCallbacks()
315 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
316 any(AppWidgetManager.class), eq(secondAppWidgetId), argThat( in testAppWidgetProviderCallbacks()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DSimpleAdapterTest.java25 import static org.mockito.Matchers.any;
194 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetView()
197 verify(binder, times(1)).setViewValue(any(View.class), eq("01"), anyString()); in testGetView()
200 doReturn(false).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetView()
203 verify(binder, times(1)).setViewValue(any(View.class), eq("01"), anyString()); in testGetView()
269 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetDropDownView()
272 verify(binder, times(1)).setViewValue(any(View.class), eq("191"), anyString()); in testGetDropDownView()
275 doReturn(false).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetDropDownView()
278 verify(binder, times(1)).setViewValue(any(View.class), eq("191"), anyString()); in testGetDropDownView()
310 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testAccessViewBinder()
[all …]
DVideoViewTest.java24 import static org.mockito.Matchers.any;
153 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
154 verify(mockPreparedListener, times(1)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
159 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
160 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
201 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
202 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
224 any(MediaPlayer.class), anyInt(), anyInt()); in testSetOnErrorListener()
225 verify(mockErrorListener, times(1)).onError(any(MediaPlayer.class), anyInt(), anyInt()); in testSetOnErrorListener()
243 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testGetBufferPercentage()
[all …]
/cts/tests/tests/print/src/android/print/cts/
DPrintDocumentAdapterContractTest.java21 import static org.mockito.Matchers.any;
163 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in noPrintOptionsOrPrinterChange()
164 any(CancellationSignal.class), any(WriteResultCallback.class)); in noPrintOptionsOrPrinterChange()
235 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in noPrintOptionsOrPrinterChangeCanceled()
236 any(CancellationSignal.class), any(WriteResultCallback.class)); in noPrintOptionsOrPrinterChangeCanceled()
498 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in printOptionsChangeAndNoPrinterChange()
499 any(CancellationSignal.class), any(WriteResultCallback.class)); in printOptionsChangeAndNoPrinterChange()
764 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in printOptionsChangeAndPrinterChange()
765 any(CancellationSignal.class), any(WriteResultCallback.class)); in printOptionsChangeAndPrinterChange()
902 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in printOptionsChangeAndNoPrinterChangeAndContentChange()
[all …]
/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/
DContentSuggestionsManagerTest.java24 import static org.mockito.ArgumentMatchers.any;
111 verifyService().onNotifyInteraction(eq(requestId), any()); in managerForwards_notifyInteraction()
119 verifyService().onProcessContextImage(eq(taskId), any(), any()); in managerForwards_provideContextImage()
129 verifyService().onSuggestContentSelections(any(), any()); in managerForwards_suggestContentSelections()
141 verifyService().onClassifyContentSelections(any(), any()); in managerForwards_classifyContentSelections()

12345