Home
last modified time | relevance | path

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

/cts/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java68 CaptioningChangeListener mockListener = mock(CaptioningChangeListener.class); in testChangeListener() local
69 mManager.addCaptioningChangeListener(mockListener); in testChangeListener()
72 verify(mockListener, timeout(LISTENER_TIMEOUT)).onEnabledChanged(true); in testChangeListener()
77 verify(mockListener, timeout(LISTENER_TIMEOUT)).onUserStyleChanged(anyObject()); in testChangeListener()
80 verify(mockListener, timeout(LISTENER_TIMEOUT)).onLocaleChanged(anyObject()); in testChangeListener()
83 verify(mockListener, timeout(LISTENER_TIMEOUT)).onFontScaleChanged(anyFloat()); in testChangeListener()
85 mManager.removeCaptioningChangeListener(mockListener); in testChangeListener()
87 Mockito.reset(mockListener); in testChangeListener()
90 verifyZeroInteractions(mockListener); in testChangeListener()
93 mManager.removeCaptioningChangeListener(mockListener); in testChangeListener()
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DModuleDefTest.java62 ITestInvocationListener mockListener = EasyMock.createMock(ITestInvocationListener.class); in testModuleFinisher() local
64 mockListener.testRunStarted(ID, 0); in testModuleFinisher()
66 mockListener.testRunEnded(0, Collections.emptyMap()); in testModuleFinisher()
68 EasyMock.replay(mockListener); in testModuleFinisher()
69 def.run(mockListener); in testModuleFinisher()
70 EasyMock.verify(mockListener); in testModuleFinisher()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java214 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerOpenCamerasSerially() local
215 mCameraListener = new BlockingStateCallback(mockListener); in testCameraManagerOpenCamerasSerially()
226 camera = verifyCameraStateOpened(ids[i], mockListener); in testCameraManagerOpenCamerasSerially()
255 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerOpenAllCameras() local
256 mCameraListener = new BlockingStateCallback(mockListener); in testCameraManagerOpenAllCameras()
315 verify(mockListener) in testCameraManagerOpenAllCameras()
319 verifyNoMoreInteractions(mockListener); in testCameraManagerOpenAllCameras()
328 mockListener); in testCameraManagerOpenAllCameras()
336 listenerList.add(mockListener); in testCameraManagerOpenAllCameras()
525 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerListenerCallbacks() local
[all …]
DSurfaceViewPreviewTest.java888 CaptureCallback mockListener, in verifyCaptureResults() argument
894 verify(mockListener, in verifyCaptureResults()
920 verify(mockListener, in verifyCaptureResults()
928 verify(mockListener, never()) in verifyCaptureResults()
DCameraDeviceTest.java1419 CameraCaptureSession.CaptureCallback mockListener, in verifyCaptureResults() argument
1423 verify(mockListener, in verifyCaptureResults()
1430 verify(mockListener, never()) in verifyCaptureResults()
1436 verify(mockListener, in verifyCaptureResults()
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java114 ValueAnimator.AnimatorUpdateListener mockListener = in testOfFloat() local
116 objAnimator.addUpdateListener(mockListener); in testOfFloat()
125 verify(mockListener, timeout(2000).atLeast(20)).onAnimationUpdate(objAnimator); in testOfFloat()
154 final Animator.AnimatorListener mockListener = mock(Animator.AnimatorListener.class); in testOfInt() local
155 intAnimator.addListener(mockListener); in testOfInt()
163 verify(mockListener, timeout(400)).onAnimationRepeat(intAnimator); in testOfInt()
164 verify(mockListener, timeout(400)).onAnimationEnd(intAnimator, false); in testOfInt()
188 final Animator.AnimatorListener mockListener = mock(Animator.AnimatorListener.class); in testOfObject() local
189 colorAnimator.addListener(mockListener); in testOfObject()
197 verify(mockListener, timeout(400)).onAnimationRepeat(colorAnimator); in testOfObject()
[all …]
DAnimatorSetTest.java731 AnimatorListenerAdapter mockListener = mock(AnimatorListenerAdapter.class); in testSeeking() local
733 set.addListener(mockListener); in testSeeking()
738 verify(mockListener, within(300)).onAnimationEnd(set, false); in testSeeking()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsMouseUtil.java42 final View.OnHoverListener mockListener = mock(View.OnHoverListener.class); in installHoverListener() local
45 mockListener.onHover(v, MotionEvent.obtain(event)); in installHoverListener()
48 return mockListener; in installHoverListener()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java112 Icon.OnDrawableLoadedListener mockListener = mock(Icon.OnDrawableLoadedListener.class); in testLoadDrawableAsync() local
114 () -> mIcon.loadDrawableAsync(mActivity, mockListener, new Handler())); in testLoadDrawableAsync()
118 verify(mockListener, times(1)).onDrawableLoaded(any()); in testLoadDrawableAsync()
/cts/tests/tests/permission/src/android/permission/cts/
DNoLocationPermissionTest.java139 LocationListener mockListener = new MockLocationListener(); in checkRequestLocationUpdates() local
142 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener); in checkRequestLocationUpdates()
150 mLocationManager.requestLocationUpdates(provider, 0, 0, mockListener, looper); in checkRequestLocationUpdates()
/cts/tests/tests/widget/src/android/widget/cts/
DToolbarTest.java467 View.OnClickListener mockListener = mock(View.OnClickListener.class); in testNavigationOnClickListener() local
468 mMainToolbar.setNavigationOnClickListener(mockListener); in testNavigationOnClickListener()
470 verify(mockListener, never()).onClick(any(View.class)); in testNavigationOnClickListener()
473 verify(mockListener, times(1)).onClick(any(View.class)); in testNavigationOnClickListener()
475 verifyNoMoreInteractions(mockListener); in testNavigationOnClickListener()
/cts/tests/tests/view/src/android/view/cts/
DPointerCaptureTest.java111 final View.OnCapturedPointerListener mockListener = in installCapturedPointerListener() local
115 mockListener.onCapturedPointer(v, MotionEvent.obtain(event)); in installCapturedPointerListener()
118 return mockListener; in installCapturedPointerListener()