/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | DevicePolicyManagerWrapper.java | 18 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/ |
D | DeferSyncTest.java | 32 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 …]
|
D | AccountAccessSameCertTest.java | 28 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/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
D | TestAppTest.java | 56 TestApp testApp = mTestAppProvider.any(); in reference_returnsNeneReference() 63 TestApp testApp = mTestAppProvider.any(); in resolve_returnsNenePackage() 77 TestApp testApp = mTestAppProvider.any(); in install_userReference_installs() 90 TestApp testApp = mTestAppProvider.any(); in install_userReference_returnsReferenceToInstance() 104 TestApp testApp = mTestAppProvider.any(); in install_userHandle_installs() 117 TestApp testApp = mTestAppProvider.any(); in install_userHandle_returnsReferenceToInstance() 131 TestApp testApp = mTestAppProvider.any(); in install_nullUserReference_throwsException() 138 TestApp testApp = mTestAppProvider.any(); in install_nullUserHandle_throwsException() 145 TestApp testApp = mTestAppProvider.any(); in instance_userHandle_instanceIsNotInstalled_stillReturnsInstance() 155 TestApp testApp = mTestAppProvider.any(); in instance_userReference_instanceIsNotInstalled_stillReturnsInstance() [all …]
|
D | TestAppInstanceReferenceTest.java | 74 TestApp testApp = mTestAppProvider.any(); in user_returnsUserReference() 82 TestApp testApp = mTestAppProvider.any(); in testApp_returnsTestApp() 90 TestApp testApp = mTestAppProvider.any(); in activities_any_returnsActivity() 92 assertThat(testAppInstance.activities().any()).isNotNull(); in activities_any_returnsActivity() 98 TestApp testApp = mTestAppProvider.any(); in uninstall_uninstalls() 111 TestApp testApp = mTestAppProvider.any(); in autoclose_uninstalls() 124 TestApp testApp = mTestAppProvider.any(); in keepAlive_notInstalled_throwsException() 132 TestApp testApp = mTestAppProvider.any(); in killProcess_keepAlive_processIsRunningAgain() 147 TestApp testApp = mTestAppProvider.any(); in stop_processIsNotRunning() 149 testAppInstance.activities().any().start(); in stop_processIsNotRunning() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TransformationMethodTest.java | 22 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()
|
/cts/tests/uwb/src/android/uwb/cts/ |
D | RangingSessionTest.java | 23 import static org.mockito.ArgumentMatchers.any; 72 verify(callback, times(0)).onClosed(anyInt(), any()); in testOnRangingOpened_OnOpenSuccessCalled() 85 verify(callback, times(0)).onClosed(anyInt(), any()); in testOnRangingOpened_CannotOpenClosedSession() 90 verify(callback, times(1)).onClosed(anyInt(), any()); in testOnRangingOpened_CannotOpenClosedSession() 96 verify(callback, times(1)).onClosed(anyInt(), any()); in testOnRangingOpened_CannotOpenClosedSession() 112 verify(callback, times(1)).onClosed(anyInt(), any()); in testOnRangingClosed_OnClosedCalledWhenSessionNotOpen() 123 verify(callback, times(1)).onClosed(anyInt(), any()); in testOnRangingClosed_OnClosedCalled() 127 verify(callback, times(2)).onClosed(anyInt(), any()); in testOnRangingClosed_OnClosedCalled() 152 doAnswer(new StartAnswer(session)).when(adapter).startRanging(any(), any()); in testStart_CannotStartIfAlreadyStarted() 156 verify(callback, times(1)).onStarted(any()); in testStart_CannotStartIfAlreadyStarted() [all …]
|
/cts/tests/admin/src/android/admin/cts/ |
D | DeviceAdminReceiverTest.java | 26 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/view/src/android/view/cts/ |
D | GestureDetectorCtsActivity.java | 19 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()
|
D | ActionModeTest.java | 25 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/content/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/ |
D | CtsSyncAccountAccessOtherCertTestCases.java | 32 import static org.mockito.ArgumentMatchers.any; 116 verify(adapter, never()).onPerformSync(any(), any(), any(), any(), any()); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() 168 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), any(), any(), any(), in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount() 169 any()); in testAccountAccess_otherCertAsAuthenticatorCanNotSeeAccount()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableWrapperTest.java | 23 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 …]
|
D | RotateDrawableTest.java | 25 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()
|
D | DrawableContainerTest.java | 26 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 …]
|
D | TransitionDrawableTest.java | 23 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 …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | CharSequenceTransformationTest.java | 19 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()
|
D | DateTransformationTest.java | 19 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/transition/src/android/transition/cts/ |
D | TransitionManagerTest.java | 21 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 …]
|
D | ActivityTransitionTest.java | 25 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 …]
|
D | TransitionTest.java | 31 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/camera/api31test/src/android/camera/cts/api31test/ |
D | SPerfClassTest.java | 169 onConfigured(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera() 171 onReady(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera() 172 verify(sessionListener, never()).onConfigureFailed(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera() 173 verify(sessionListener, never()).onActive(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera() 174 verify(sessionListener, never()).onClosed(any(CameraCaptureSession.class)); in testSPerfClassJpegSizesByCamera() 181 onCaptureCompleted(any(CameraCaptureSession.class), in testSPerfClassJpegSizesByCamera() 182 any(CaptureRequest.class), any(TotalCaptureResult.class)); in testSPerfClassJpegSizesByCamera() 183 verify(captureListener, never()).onCaptureFailed(any(CameraCaptureSession.class), in testSPerfClassJpegSizesByCamera() 184 any(CaptureRequest.class), any(CaptureFailure.class)); in testSPerfClassJpegSizesByCamera()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 28 import static org.mockito.Matchers.any; 310 inOrder.verify(callbacks).onEnabled(any(Context.class)); in testAppWidgetProviderCallbacks() 311 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks() 312 any(AppWidgetManager.class), eq(new int[] {firstAppWidgetId})); in testAppWidgetProviderCallbacks() 313 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks() 314 any(AppWidgetManager.class), eq(firstAppWidgetId), argThat( in testAppWidgetProviderCallbacks() 316 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks() 317 any(AppWidgetManager.class), eq(new int[] {secondAppWidgetId})); in testAppWidgetProviderCallbacks() 318 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks() 319 any(AppWidgetManager.class), eq(secondAppWidgetId), argThat( in testAppWidgetProviderCallbacks() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SimpleAdapterTest.java | 25 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 …]
|
D | VideoViewTest.java | 24 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/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsAnimationTests.java | 30 import static org.mockito.ArgumentMatchers.any; 128 inOrder.verify(mActivity.mListener).onApplyWindowInsets(any(), argThat( in testAnimationCallbacks_overlapping() 138 any(), eq(mActivity.mLastWindowInsets)); in testAnimationCallbacks_overlapping() 227 verify(childCallback).onStart(any(), argThat( in testAnimationCallbacks_childInsetting() 232 insets -> NONE.equals(insets.getInsets(navigationBars()))), any()); in testAnimationCallbacks_childInsetting() 252 verify(mActivity.mCallback).onPrepare(any()); in testAnimationCallbacks_withLegacyFlags() 253 verify(mActivity.mCallback).onStart(any(), any()); in testAnimationCallbacks_withLegacyFlags() 254 verify(mActivity.mCallback, atLeastOnce()).onProgress(any(), any()); in testAnimationCallbacks_withLegacyFlags() 255 verify(mActivity.mCallback).onEnd(any()); in testAnimationCallbacks_withLegacyFlags()
|