/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | CaptioningManagerTest.java | 69 CaptioningChangeListener mockListener = mock(CaptioningChangeListener.class); in testChangeListener() local 70 mManager.addCaptioningChangeListener(mockListener); in testChangeListener() 73 verify(mockListener, timeout(LISTENER_TIMEOUT)).onEnabledChanged(true); in testChangeListener() 78 verify(mockListener, timeout(LISTENER_TIMEOUT)).onUserStyleChanged(anyObject()); in testChangeListener() 81 verify(mockListener, timeout(LISTENER_TIMEOUT)).onLocaleChanged(anyObject()); in testChangeListener() 84 verify(mockListener, timeout(LISTENER_TIMEOUT)).onFontScaleChanged(anyFloat()); in testChangeListener() 86 mManager.removeCaptioningChangeListener(mockListener); in testChangeListener() 88 Mockito.reset(mockListener); in testChangeListener() 91 verifyZeroInteractions(mockListener); in testChangeListener() 94 mManager.removeCaptioningChangeListener(mockListener); in testChangeListener()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 241 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerOpenCamerasSerially() local 242 mCameraListener = new BlockingStateCallback(mockListener); in testCameraManagerOpenCamerasSerially() 257 camera = verifyCameraStateOpened(ids[i], mockListener); in testCameraManagerOpenCamerasSerially() 292 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerOpenAllCameras() local 293 mCameraListener = new BlockingStateCallback(mockListener); in testCameraManagerOpenAllCameras() 355 verify(mockListener) in testCameraManagerOpenAllCameras() 359 verifyNoMoreInteractions(mockListener); in testCameraManagerOpenAllCameras() 368 mockListener); in testCameraManagerOpenAllCameras() 376 listenerList.add(mockListener); in testCameraManagerOpenAllCameras() 595 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerListenerCallbacks() local [all …]
|
D | SurfaceViewPreviewTest.java | 911 CaptureCallback mockListener, in verifyCaptureResults() argument 917 verify(mockListener, in verifyCaptureResults() 943 verify(mockListener, in verifyCaptureResults() 951 verify(mockListener, never()) in verifyCaptureResults()
|
D | CameraDeviceTest.java | 1876 CameraCaptureSession.CaptureCallback mockListener, in verifyCaptureResults() argument 1880 verify(mockListener, in verifyCaptureResults() 1887 verify(mockListener, never()) in verifyCaptureResults() 1893 verify(mockListener, in verifyCaptureResults()
|
D | ExtendedCameraCharacteristicsTest.java | 706 final ImageReader.OnImageAvailableListener mockListener = mock( in checkFormatLatency() local 708 createDefaultImageReader(sz, format, MAX_NUM_IMAGES, mockListener); in checkFormatLatency() 734 verify(mockListener, timeout(threshold).times(1)).onImageAvailable( in checkFormatLatency() 736 reset(mockListener); in checkFormatLatency()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | ObjectAnimatorTest.java | 115 ValueAnimator.AnimatorUpdateListener mockListener = in testOfFloat() local 117 objAnimator.addUpdateListener(mockListener); in testOfFloat() 126 verify(mockListener, timeout(2000).atLeast(20)).onAnimationUpdate(objAnimator); in testOfFloat() 155 final Animator.AnimatorListener mockListener = mock(Animator.AnimatorListener.class); in testOfInt() local 156 intAnimator.addListener(mockListener); in testOfInt() 164 verify(mockListener, timeout(400)).onAnimationRepeat(intAnimator); in testOfInt() 165 verify(mockListener, timeout(400)).onAnimationEnd(intAnimator, false); in testOfInt() 189 final Animator.AnimatorListener mockListener = mock(Animator.AnimatorListener.class); in testOfObject() local 190 colorAnimator.addListener(mockListener); in testOfObject() 198 verify(mockListener, timeout(400)).onAnimationRepeat(colorAnimator); in testOfObject() [all …]
|
D | AnimatorSetTest.java | 761 AnimatorListenerAdapter mockListener = mock(AnimatorListenerAdapter.class); in testSeeking() local 763 set.addListener(mockListener); in testSeeking() 768 verify(mockListener, within(300)).onAnimationEnd(set, false); in testSeeking()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | CtsMouseUtil.java | 44 final View.OnHoverListener mockListener = mock(View.OnHoverListener.class); in installHoverListener() local 47 mockListener.onHover(v, MotionEvent.obtain(event)); in installHoverListener() 50 return mockListener; in installHoverListener()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CtsMouseUtil.java | 44 final View.OnHoverListener mockListener = mock(View.OnHoverListener.class); in installHoverListener() local 47 mockListener.onHover(v, MotionEvent.obtain(event)); in installHoverListener() 50 return mockListener; in installHoverListener()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoLocationPermissionTest.java | 156 LocationListener mockListener = new MockLocationListener(); in checkRequestLocationUpdates() local 159 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener); in checkRequestLocationUpdates() 167 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener, looper); in checkRequestLocationUpdates()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | IconTest.java | 114 Icon.OnDrawableLoadedListener mockListener = mock(Icon.OnDrawableLoadedListener.class); in testLoadDrawableAsync() local 116 () -> mIcon.loadDrawableAsync(mActivity, mockListener, new Handler())); in testLoadDrawableAsync() 120 verify(mockListener, times(1)).onDrawableLoaded(any()); in testLoadDrawableAsync()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ToolbarTest.java | 497 View.OnClickListener mockListener = mock(View.OnClickListener.class); in testNavigationOnClickListener() local 498 mMainToolbar.setNavigationOnClickListener(mockListener); in testNavigationOnClickListener() 500 verify(mockListener, never()).onClick(any(View.class)); in testNavigationOnClickListener() 503 verify(mockListener, times(1)).onClick(any(View.class)); in testNavigationOnClickListener() 505 verifyNoMoreInteractions(mockListener); in testNavigationOnClickListener()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PointerCaptureTest.java | 116 final View.OnCapturedPointerListener mockListener = in installCapturedPointerListener() local 120 mockListener.onCapturedPointer(v, MotionEvent.obtain(event)); in installCapturedPointerListener() 123 return mockListener; in installCapturedPointerListener()
|