Home
last modified time | relevance | path

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

12345678910

/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDevicePolicyManagerWrapper.java18 import static org.mockito.ArgumentMatchers.any;
64 doAnswer(answer).when(spy).isAdminActive(any()); in getWrapper()
65 doAnswer(answer).when(spy).isDeviceOwnerApp(any()); in getWrapper()
66 doAnswer(answer).when(spy).isManagedProfile(any()); in getWrapper()
67 doAnswer(answer).when(spy).isProfileOwnerApp(any()); in getWrapper()
71 doAnswer(answer).when(spy).setTime(any(), anyLong()); in getWrapper()
72 doAnswer(answer).when(spy).setTimeZone(any(), any()); in getWrapper()
73 doAnswer(answer).when(spy).setGlobalSetting(any(), any(), any()); in getWrapper()
76 doAnswer(answer).when(spy).setUserControlDisabledPackages(any(), any()); in getWrapper()
77 doAnswer(answer).when(spy).getUserControlDisabledPackages(any()); in getWrapper()
[all …]
/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;
83 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), any(), any(), any(), in testAccountAccess_sameCertAsAuthenticatorCanSeeAccount()
84 any()); in testAccountAccess_sameCertAsAuthenticatorCanSeeAccount()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppTest.java54 TestApp testApp = sDeviceState.testApps().any(); in reference_returnsNeneReference()
61 TestApp testApp = sDeviceState.testApps().any(); in install_noUserSpecified_installsInInstrumentedUser()
74 TestApp testApp = sDeviceState.testApps().any(); in install_userReference_installs()
87 TestApp testApp = sDeviceState.testApps().any(); in install_userReference_returnsReferenceToInstance()
101 TestApp testApp = sDeviceState.testApps().any(); in install_userHandle_installs()
114 TestApp testApp = sDeviceState.testApps().any(); in install_userHandle_returnsReferenceToInstance()
128 TestApp testApp = sDeviceState.testApps().any(); in install_nullUserReference_throwsException()
135 TestApp testApp = sDeviceState.testApps().any(); in install_nullUserHandle_throwsException()
142 TestApp testApp = sDeviceState.testApps().any(); in instance_userHandle_instanceIsNotInstalled_stillReturnsInstance()
152 TestApp testApp = sDeviceState.testApps().any(); in instance_userReference_instanceIsNotInstalled_stillReturnsInstance()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DTransformationMethodTest.java22 import static org.mockito.Mockito.any;
80 when(mMethod.getTransformation(any(), any())).then(returnsFirstArg()); in setup()
105 when(mMethod.getTransformation(any(), any())).then(returnsFirstArg()); in testGetTransformation()
108 verify(mMethod, atLeastOnce()).getTransformation(any(), any()); in testGetTransformation()
118 verify(mMethod, atLeastOnce()).onFocusChanged(any(), any(), anyBoolean(), anyInt(), any()); in testOnFocusChanged()
126 verify(mMethod, atLeastOnce()).onFocusChanged(any(), any(), anyBoolean(), anyInt(), any()); in testOnFocusChanged()
/cts/tests/tests/nfc/src/android/nfc/tech/cts/
DNdefFormatableTest.java20 import static org.mockito.ArgumentMatchers.any;
85 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormat()
87 when(mNfcTagMock.ndefWrite(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormat()
98 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly()
100 when(mNfcTagMock.ndefWrite(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly()
112 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.ERROR_IO); in testFormatReadOnly_formatNdefIOError()
120 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testFormatReadOnly_formatNdefFormatError()
128 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(1); in testFormatReadOnly_formatNdefUnknownError()
136 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly_notNdef()
145 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly_ndefWriteIOError()
[all …]
/cts/tests/translation/src/android/translation/cts/
DUiTranslationManagerTest.java40 import static org.mockito.ArgumentMatchers.any;
225 .onStarted(any(ULocale.class), any(ULocale.class), any(String.class)); in testTranslationAfterStartActivityOnSameTask()
229 Mockito.verify(mockCallback, Mockito.times(1)).onPaused(any(String.class)); in testTranslationAfterStartActivityOnSameTask()
234 .onResumed(any(ULocale.class), any(ULocale.class), any(String.class)); in testTranslationAfterStartActivityOnSameTask()
238 Mockito.verify(mockCallback, Mockito.times(1)).onFinished(any(String.class)); in testTranslationAfterStartActivityOnSameTask()
438 Mockito.verify(mockCallback, Mockito.never()).onClearTranslation(any(View.class)); in testUiTranslation_CustomViewTranslationCallback()
442 Mockito.verify(mockCallback, Mockito.times(2)).onShowTranslation(any()); in testUiTranslation_CustomViewTranslationCallback()
443 Mockito.verify(mockCallback, Mockito.times(1)).onHideTranslation(any()); in testUiTranslation_CustomViewTranslationCallback()
679 .onStarted(any(ULocale.class), any(ULocale.class), any(String.class)); in testNonIMEUiTranslationStateCallback()
683 Mockito.verify(mockCallback, Mockito.times(1)).onPaused(any(String.class)); in testNonIMEUiTranslationStateCallback()
[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;
103 any(ActionMode.class), any(Menu.class)); in testInvalidateContentRectOnFloatingCallsCallback()
105 any(ActionMode.class), any(Menu.class)); in testInvalidateContentRectOnFloatingCallsCallback()
114 verify(mockCallback, atLeastOnce()).onGetContentRect(any(ActionMode.class), any(View.class), in testInvalidateContentRectOnFloatingCallsCallback()
115 any(Rect.class)); in testInvalidateContentRectOnFloatingCallsCallback()
/cts/tests/tests/text/src/android/text/cts/
DLayoutDrawOrderTest.java19 import static org.mockito.ArgumentMatchers.any;
83 when(canvas.getClipBounds(any())).thenAnswer(invocation -> { in prepareMockCanvas()
123 .drawText((CharSequence) any(), anyInt(), anyInt(), anyFloat(), anyFloat(), any()); in testBoringLayout_testDrawOrder_Selection_on_top_of_Highlight()
143 .drawText((CharSequence) any(), anyInt(), anyInt(), anyFloat(), anyFloat(), any()); in testStaticLayout_testDrawOrder_Selection_on_top_of_Highlight()
163 .drawText((CharSequence) any(), anyInt(), anyInt(), anyFloat(), anyFloat(), any()); in testDynamicLayout_testDrawOrder_Selection_on_top_of_Highlight()
183 eq(canvas), any(), in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background()
185 any(), in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background()
192 .drawTextRun((CharSequence) any(), anyInt(), anyInt(), in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background()
193 anyInt(), anyInt(), anyFloat(), anyFloat(), anyBoolean(), any()); in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background()
213 eq(canvas), any(), in testDynamicLayout_testDrawOrder_Highlight_on_top_of_Background()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
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()
147 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("...3456"))); in testCreditCardObfuscator()
164 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("****"))); in testReplaceAllByOne()
181 verify(template, never()).setCharSequence(eq(0), any(), any()); in testPartialMatchIsIgnored()
201 verify(template).setCharSequence(eq(0), any(), in userNameObfuscator()
221 verify(template, never()).setCharSequence(eq(0), any(), any()); in testMismatch()
244 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/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 …]
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 …]
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 …]
/cts/tests/tests/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessOtherCertTestCases.java33 import static org.mockito.ArgumentMatchers.any;
138 verify(adapter, never()).onPerformSync(any(), any(), any(), any(), any()); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
189 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), any(), any(), any(), in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
190 any()); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
/cts/tests/tests/transition/src/android/transition/cts/
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 …]
DActivityTransitionTest.java25 import static org.mockito.Matchers.any;
147 verify(targetActivity.enterListener, within(5000)).onTransitionStart(any()); in viewsNotStripped()
148 verify(targetActivity.enterListener, within(5000)).onTransitionEnd(any()); in viewsNotStripped()
149 verify(mExitListener, times(1)).onTransitionEnd(any()); in viewsNotStripped()
172 verify(mReenterListener, within(5000)).onTransitionStart(any()); in viewsNotStripped()
173 verify(mReenterListener, within(5000)).onTransitionEnd(any()); in viewsNotStripped()
174 verify(mSharedElementReenterListener, within(5000)).onTransitionStart(any()); in viewsNotStripped()
175 verify(mSharedElementReenterListener, within(5000)).onTransitionEnd(any()); in viewsNotStripped()
176 verify(targetActivity.returnListener, times(1)).onTransitionStart(any()); in viewsNotStripped()
177 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 …]
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/app/
DSharedConnectivityManagerTest.java27 import static org.mockito.ArgumentMatchers.any;
146 when(mContext.bindService(any(Intent.class), any(ServiceConnection.class), in setUp()
170 verify(mContext).bindService(any(Intent.class), any(ServiceConnection.class), anyInt()); in bindingToServiceOnFirstCallbackRegistration()
175 when(mContext.bindService(any(Intent.class), any(ServiceConnection.class), in bindToServiceFails_userUnlocked_callsOnRegisterCallbackFailed()
181 verify(mClientCallback).onRegisterCallbackFailed(any(IllegalStateException.class)); in bindToServiceFails_userUnlocked_callsOnRegisterCallbackFailed()
187 when(mContext.bindService(any(Intent.class), any(ServiceConnection.class), in bindToServiceFails_userLocked_registerReceiver()
193 verify(mContext).registerReceiver(any(BroadcastReceiver.class), in bindToServiceFails_userLocked_registerReceiver()
206 verify(mContext).bindService(any(Intent.class), any(ServiceConnection.class), anyInt()); in broadcastReceiver_onReceiveUnlock_retriesBind()
214 verify(mContext, times(1)).bindService(any(Intent.class), any(ServiceConnection.class), in bindIsCalledOnceOnMultipleCallbackRegistrations()
218 verify(mContext, times(1)).bindService(any(Intent.class), any(ServiceConnection.class), in bindIsCalledOnceOnMultipleCallbackRegistrations()
[all …]
/cts/tests/mediapc/requirements/
Dtemplatefns_test.go151 values []any
152 want map[string]any
155 values: []any{1, 2, 3},
156 want: map[string]any{
162 values: []any{"foo", "bar"},
163 want: map[string]any{"foo": "bar"},
166 values: []any{errors.New("error_key"), errorValue},
167 want: map[string]any{"error_key": errorValue},
/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;
161 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
162 verify(mockPreparedListener, times(1)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
167 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
168 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
209 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
210 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
232 any(MediaPlayer.class), anyInt(), anyInt()); in testSetOnErrorListener()
233 verify(mockErrorListener, times(1)).onError(any(MediaPlayer.class), anyInt(), anyInt()); in testSetOnErrorListener()
251 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testGetBufferPercentage()
[all …]
DToastPresenterTest.java22 import static org.mockito.ArgumentMatchers.any;
84 mockWindowManager).addView(any(), any()); in testShowOnInvalidDisplay_doNotThrow()
105 verify(a11yManager, times(0)).addClient(any(), anyInt()); in testAddA11yClientOnlyWhenShowing()
107 verify(a11yManager).addClient(any(), anyInt()); in testAddA11yClientOnlyWhenShowing()
108 verify(a11yManager).removeClient(any(), anyInt()); in testAddA11yClientOnlyWhenShowing()

12345678910