Home
last modified time | relevance | path

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

1234

/cts/tests/tests/content/src/android/content/cts/
DDeferSyncTest.java32 import static org.mockito.ArgumentMatchers.any;
96 verify(notAlwaysSyncableAdapter, never()).onPerformSync(any(), any(), any(), any(), in noSyncsWhenDeferred()
97 any()); in noSyncsWhenDeferred()
100 verify(alwaysSyncableAdapter, never()).onPerformSync(any(), any(), any(), any(), any()); in noSyncsWhenDeferred()
120 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndMakeSyncable()
121 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndMakeSyncable()
146 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndReportIsReady()
147 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndReportIsReady()
171 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndReportIsReadyAlwaysSyncable()
172 extrasCaptor.capture(), any(), any(), any()); in deferSyncAndReportIsReadyAlwaysSyncable()
[all …]
DAccountAccessSameCertTest.java28 import static org.mockito.ArgumentMatchers.any;
78 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), any(), any(), any(), in testAccountAccess_sameCertAsAuthenticatorCanSeeAccount()
79 any()); in testAccountAccess_sameCertAsAuthenticatorCanSeeAccount()
/cts/tests/tests/text/src/android/text/method/cts/
DTransformationMethodTest.java22 import static org.mockito.Mockito.any;
72 when(mMethod.getTransformation(any(), any())).then(returnsFirstArg()); in setup()
97 when(mMethod.getTransformation(any(), any())).then(returnsFirstArg()); in testGetTransformation()
100 verify(mMethod, atLeastOnce()).getTransformation(any(), any()); in testGetTransformation()
110 verify(mMethod, atLeastOnce()).onFocusChanged(any(), any(), anyBoolean(), anyInt(), any()); in testOnFocusChanged()
118 verify(mMethod, atLeastOnce()).onFocusChanged(any(), any(), anyBoolean(), anyInt(), any()); in testOnFocusChanged()
DLinkMovementMethodTest.java24 import static org.mockito.Matchers.any;
169 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
170 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
179 verify(mClickable0, times(1)).onClick(any()); in testOnKeyDown()
180 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
189 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
190 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
198 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
199 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
208 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminReceiverTest.java24 import static org.mockito.Mockito.any;
91 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED), eq(USER)); in testOnReceivePasswordChanged()
92 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED)); in testOnReceivePasswordChanged()
102 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED), eq(USER)); in testOnReceivePasswordFailed()
103 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED)); in testOnReceivePasswordFailed()
113 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED), eq(USER)); in testOnReceivePasswordSucceeded()
114 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED)); in testOnReceivePasswordSucceeded()
124 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING), eq(USER)); in testOnReceivePasswordExpiring()
125 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING)); in testOnReceivePasswordExpiring()
136 any(), actionEq(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_ENABLED)); in testOnReceiveEnabled()
[all …]
/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;
91 any(ActionMode.class), any(Menu.class)); in testInvalidateContentRectOnFloatingCallsCallback()
93 any(ActionMode.class), any(Menu.class)); in testInvalidateContentRectOnFloatingCallsCallback()
102 verify(mockCallback, atLeastOnce()).onGetContentRect(any(ActionMode.class), any(View.class), in testInvalidateContentRectOnFloatingCallsCallback()
103 any(Rect.class)); in testInvalidateContentRectOnFloatingCallsCallback()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionSetTest.java22 import static org.mockito.Matchers.any;
60 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
61 verify(changeBoundsListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
88 verify(fadeListener, within(500)).onTransitionStart(any()); in testTransitionSequentially()
89 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionSequentially()
92 verify(fadeListener, times(0)).onTransitionEnd(any()); in testTransitionSequentially()
93 verify(changeBoundsListener, times(0)).onTransitionStart(any()); in testTransitionSequentially()
96 verify(fadeListener, within(1000)).onTransitionEnd(any()); in testTransitionSequentially()
99 verify(changeBoundsListener, within(500)).onTransitionStart(any()); in testTransitionSequentially()
100 verify(changeBoundsListener, times(1)).onTransitionStart(any()); in testTransitionSequentially()
DTransitionManagerTest.java22 import static org.mockito.Matchers.any;
59 verify(mListener, never()).onTransitionResume(any()); in testBeginDelayedTransition()
60 verify(mListener, never()).onTransitionPause(any()); in testBeginDelayedTransition()
61 verify(mListener, never()).onTransitionCancel(any()); in testBeginDelayedTransition()
131 verify(mListener, never()).onTransitionResume(any()); in testGo()
132 verify(mListener, never()).onTransitionPause(any()); in testGo()
133 verify(mListener, never()).onTransitionCancel(any()); in testGo()
179 verify(mListener, never()).onTransitionResume(any()); in testSetTransition1()
180 verify(mListener, never()).onTransitionPause(any()); in testSetTransition1()
181 verify(mListener, never()).onTransitionCancel(any()); in testSetTransition1()
[all …]
DChangeTransformTest.java20 import static org.mockito.Matchers.any;
66 verify(mListener, never()).onTransitionEnd(any()); // still running in testTranslation()
86 verify(mListener, never()).onTransitionEnd(any()); // still running in testRotation()
106 verify(mListener, never()).onTransitionEnd(any()); // still running in testScale()
119 verify(mListener, never()).onTransitionEnd(any()); // still running in testReparent()
134 verify(mListener, never()).onTransitionEnd(any()); // still running in testReparentWithOverlay()
151 verify(mListener, never()).onTransitionEnd(any()); // still running in testReparentWithOverlay()
DTransitionTest.java31 import static org.mockito.Matchers.any;
90 verify(mListener, times(1)).onTransitionPause(any()); in testAddListener()
91 verify(mListener, times(1)).onTransitionResume(any()); in testAddListener()
92 verify(mListener, never()).onTransitionCancel(any()); in testAddListener()
93 verify(mListener, never()).onTransitionEnd(any()); in testAddListener()
94 verify(mListener, times(1)).onTransitionStart(any()); in testAddListener()
96 verify(listener2, never()).onTransitionPause(any()); in testAddListener()
97 verify(listener2, never()).onTransitionResume(any()); in testAddListener()
98 verify(listener2, never()).onTransitionCancel(any()); in testAddListener()
99 verify(listener2, never()).onTransitionEnd(any()); in testAddListener()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableWrapperTest.java23 import static org.mockito.Matchers.any;
103 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
107 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
112 verify(cb, never()).invalidateDrawable(any()); in testInvalidateDrawable()
123 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
127 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
132 verify(cb, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
143 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
147 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
152 verify(cb, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
[all …]
DDrawableContainerTest.java26 import static org.mockito.Matchers.any;
106 doNothing().when(dr).draw(any()); in testDraw()
108 verify(dr, times(1)).draw(any()); in testDraw()
111 doNothing().when(dr).draw(any()); in testDraw()
113 verify(dr, times(1)).draw(any()); in testDraw()
183 }).when(dr0).getPadding(any()); in testGetPadding()
190 }).when(dr1).getPadding(any()); in testGetPadding()
316 verify(mockDrawable, times(1)).setColorFilter(any()); in testSetColorFilter()
589 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
594 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
[all …]
DRotateDrawableTest.java25 import static org.mockito.Matchers.any;
183 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
187 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
192 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
201 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
205 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
210 verify(callback, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
219 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
223 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
228 verify(callback, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
DTransitionDrawableTest.java23 import static org.mockito.Matchers.any;
88 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
95 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
102 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
116 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
122 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
130 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
142 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition()
148 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition()
155 verify(cb, never()).invalidateDrawable(any()); in testReverseTransition()
[all …]
DScaleDrawableTest.java25 import static org.mockito.Matchers.any;
95 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
99 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
104 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
116 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
120 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
125 verify(callback, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
137 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
141 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
146 verify(callback, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
[all …]
/cts/tests/tests/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessOtherCertTestCases.java32 import static org.mockito.ArgumentMatchers.any;
109 verify(adapter, never()).onPerformSync(any(), any(), any(), any(), any()); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
143 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), any(), any(), any(), in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
144 any()); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
/cts/tests/autofillservice/src/android/autofillservice/cts/
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()
DCharSequenceTransformationTest.java19 import static org.mockito.ArgumentMatchers.any;
100 verify(template, never()).setCharSequence(eq(0), any(), any()); in testBadSubst()
129 verify(template, never()).setCharSequence(eq(0), any(), any()); in testUnknownField()
148 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("...3456"))); in testCreditCardObfuscator()
165 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("****"))); in testReplaceAllByOne()
182 verify(template, never()).setCharSequence(eq(0), any(), any()); in testPartialMatchIsIgnored()
202 verify(template).setCharSequence(eq(0), any(), in userNameObfuscator()
222 verify(template, never()).setCharSequence(eq(0), any(), any()); in testMismatch()
245 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("ACB"))); in testFieldsAreAppliedInOrder()
/cts/tests/tests/widget/src/android/widget/cts/
DVideoViewTest.java24 import static org.mockito.Matchers.any;
157 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
158 verify(mockPreparedListener, times(1)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
163 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
164 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
205 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
206 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
229 any(MediaPlayer.class), anyInt(), anyInt()); in testSetOnErrorListener()
230 verify(mockErrorListener, times(1)).onError(any(MediaPlayer.class), anyInt(), anyInt()); in testSetOnErrorListener()
249 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testGetBufferPercentage()
[all …]
DSimpleAdapterTest.java25 import static org.mockito.Matchers.any;
193 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetView()
196 verify(binder, times(1)).setViewValue(any(View.class), eq("01"), anyString()); in testGetView()
199 doReturn(false).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetView()
202 verify(binder, times(1)).setViewValue(any(View.class), eq("01"), anyString()); in testGetView()
268 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetDropDownView()
271 verify(binder, times(1)).setViewValue(any(View.class), eq("191"), anyString()); in testGetDropDownView()
274 doReturn(false).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetDropDownView()
277 verify(binder, times(1)).setViewValue(any(View.class), eq("191"), anyString()); in testGetDropDownView()
309 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testAccessViewBinder()
[all …]
/cts/tests/app/src/android/app/cts/
DActivityActionModeTest.java48 when(mCallback.onCreateActionMode(any(), any())).thenReturn(true); in setUp()
49 when(mCallback.onPrepareActionMode(any(), any())).thenReturn(true); in setUp()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java24 import static org.mockito.Matchers.any;
58 doReturn(true).when(inputConnection).commitContent(any(InputContentInfo.class), in testInputConnectionWrapper()
59 anyInt(), any(Bundle.class)); in testInputConnectionWrapper()
110 verify(inputConnection, times(1)).getExtractedText(any(ExtractedTextRequest.class), eq(0)); in testInputConnectionWrapper()
126 any(Bundle.class)); in testInputConnectionWrapper()
160 verify(inputConnection, never()).commitContent(any(InputContentInfo.class), anyInt(), in testInputConnectionWrapper()
161 any(Bundle.class)); in testInputConnectionWrapper()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java27 import static org.mockito.Matchers.any;
813 any(CancellationSignal.class), any(LayoutResultCallback.class), argThat( in verifyLayoutCall()
834 doAnswer(layoutAnswer).when(adapter).onLayout(any(PrintAttributes.class), in createMockPrintDocumentAdapter()
835 any(PrintAttributes.class), any(CancellationSignal.class), in createMockPrintDocumentAdapter()
836 any(LayoutResultCallback.class), any(Bundle.class)); in createMockPrintDocumentAdapter()
839 doAnswer(writeAnswer).when(adapter).onWrite(any(PageRange[].class), in createMockPrintDocumentAdapter()
840 any(ParcelFileDescriptor.class), any(CancellationSignal.class), in createMockPrintDocumentAdapter()
841 any(WriteResultCallback.class)); in createMockPrintDocumentAdapter()
900 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks()
905 any(List.class)); in createMockPrinterDiscoverySessionCallbacks()
[all …]
/cts/tests/fragment/src/android/fragment/cts/
DTransitionFragment.java20 import static org.mockito.Matchers.any;
74 verify(mListener, within(500)).onTransitionEnd(any()); in waitForTransition()
80 verify(mListener, never()).onTransitionStart(any()); in waitForNoTransition()

1234