Home
last modified time | relevance | path

Searched refs:mockListener (Results 1 – 11 of 11) sorted by relevance

/cts/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java86 CaptioningChangeListener mockListener = mock(CaptioningChangeListener.class); in testChangeListener() local
87 mManager.addCaptioningChangeListener(mockListener); in testChangeListener()
90 verify(mockListener, timeout(LISTENER_TIMEOUT)).onEnabledChanged(true); in testChangeListener()
95 verify(mockListener, timeout(LISTENER_TIMEOUT)).onUserStyleChanged(anyObject()); in testChangeListener()
98 verify(mockListener, timeout(LISTENER_TIMEOUT)).onLocaleChanged(anyObject()); in testChangeListener()
101 verify(mockListener, timeout(LISTENER_TIMEOUT)).onFontScaleChanged(anyFloat()); in testChangeListener()
103 mManager.removeCaptioningChangeListener(mockListener); in testChangeListener()
105 Mockito.reset(mockListener); in testChangeListener()
108 verifyZeroInteractions(mockListener); in testChangeListener()
111 mManager.removeCaptioningChangeListener(mockListener); in testChangeListener()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordAppOpTest.java64 final OnOpActiveChangedListener mockListener = mock(OnOpActiveChangedListener.class); in testRecordAppOps() local
67 mockListener.onOpActiveChanged(op, uid, packageName, active); in testRecordAppOps()
97 verify(mockListener, timeout(APP_OP_CHANGE_TIMEOUT_MILLIS) in testRecordAppOps()
107 Mockito.reset(mockListener); in testRecordAppOps()
115 verify(mockListener, timeout(APP_OP_CHANGE_TIMEOUT_MILLIS) in testRecordAppOps()
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java115 ValueAnimator.AnimatorUpdateListener mockListener = in testOfFloat() local
117 objAnimator.addUpdateListener(mockListener); in testOfFloat()
126 verify(mockListener, timeout(2000).atLeast(2)).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(2000)).onAnimationRepeat(intAnimator); in testOfInt()
165 verify(mockListener, timeout(3000)).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(2000)).onAnimationRepeat(colorAnimator); in testOfObject()
[all …]
DAnimatorSetTest.java761 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-axt/src/com/android/compatibility/common/util/
DCtsMouseUtil.java44 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/graphics/src/android/graphics/drawable/cts/
DIconTest.java137 Icon.OnDrawableLoadedListener mockListener = mock(Icon.OnDrawableLoadedListener.class); in testLoadDrawableAsync() local
139 () -> mIcon.loadDrawableAsync(mActivity, mockListener, new Handler())); in testLoadDrawableAsync()
143 verify(mockListener, times(1)).onDrawableLoaded(any()); in testLoadDrawableAsync()
/cts/tests/tests/widget/src/android/widget/cts/
DToolbarTest.java497 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/
DPointerCaptureTest.java116 final View.OnCapturedPointerListener mockListener = in installCapturedPointerListener() local
120 mockListener.onCapturedPointer(v, MotionEvent.obtain(event)); in installCapturedPointerListener()
123 return mockListener; in installCapturedPointerListener()
/cts/tests/camera/src/android/hardware/camera2/cts/
DSurfaceViewPreviewTest.java883 CaptureCallback mockListener, in verifyCaptureResults() argument
889 verify(mockListener, in verifyCaptureResults()
915 verify(mockListener, in verifyCaptureResults()
923 verify(mockListener, never()) in verifyCaptureResults()
DCameraDeviceTest.java1898 CameraCaptureSession.CaptureCallback mockListener, in verifyCaptureResults() argument
1902 verify(mockListener, in verifyCaptureResults()
1909 verify(mockListener, never()) in verifyCaptureResults()
1915 verify(mockListener, in verifyCaptureResults()
DExtendedCameraCharacteristicsTest.java729 final ImageReader.OnImageAvailableListener mockListener = mock( in checkFormatLatency() local
731 createDefaultImageReader(sz, format, MAX_NUM_IMAGES, mockListener); in checkFormatLatency()
757 verify(mockListener, timeout(threshold).times(1)).onImageAvailable( in checkFormatLatency()
759 reset(mockListener); in checkFormatLatency()