Home
last modified time | relevance | path

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

/cts/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java93 CaptioningChangeListener mockListener = mock(CaptioningChangeListener.class); in testChangeListener() local
94 mManager.addCaptioningChangeListener(mockListener); in testChangeListener()
97 verify(mockListener, timeout(LISTENER_TIMEOUT)).onEnabledChanged(true); in testChangeListener()
102 verify(mockListener, timeout(LISTENER_TIMEOUT)).onUserStyleChanged(anyObject()); in testChangeListener()
105 verify(mockListener, timeout(LISTENER_TIMEOUT)).onLocaleChanged(anyObject()); in testChangeListener()
108 verify(mockListener, timeout(LISTENER_TIMEOUT)).onFontScaleChanged(anyFloat()); in testChangeListener()
111 verify(mockListener, timeout(LISTENER_TIMEOUT)).onSystemAudioCaptioningChanged(true); in testChangeListener()
114 verify(mockListener, timeout(LISTENER_TIMEOUT)).onSystemAudioCaptioningUiChanged(true); in testChangeListener()
116 mManager.removeCaptioningChangeListener(mockListener); in testChangeListener()
118 Mockito.reset(mockListener); in testChangeListener()
[all …]
/cts/tests/camera/headlessSystemUserTest/src/android/camera/cts/headlesssystemusertest/
DCamera2HeadlessSystemUserTest.java113 MockStateCallback mockListener = MockStateCallback.mock(); in testHeadlessSystemUser_OpenCamera() local
114 mCameraListener = new BlockingStateCallback(mockListener); in testHeadlessSystemUser_OpenCamera()
117 mockListener); in testHeadlessSystemUser_OpenCamera()
140 MockStateCallback mockListener = MockStateCallback.mock(); in testHeadlessSystemUser_InvalidAccess() local
141 mCameraListener = new BlockingStateCallback(mockListener); in testHeadlessSystemUser_InvalidAccess()
170 MockStateCallback mockListener = MockStateCallback.mock(); in testHeadlessSystemUser_SwitchForegroundUser() local
171 mCameraListener = new BlockingStateCallback(mockListener); in testHeadlessSystemUser_SwitchForegroundUser()
174 mockListener); in testHeadlessSystemUser_SwitchForegroundUser()
176 verifyNoMoreInteractions(mockListener); in testHeadlessSystemUser_SwitchForegroundUser()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioRecordAppOpTest.java66 final OnOpActiveChangedListener mockListener = mock(OnOpActiveChangedListener.class); in testRecordAppOps() local
69 mockListener.onOpActiveChanged(op, uid, packageName, active); in testRecordAppOps()
99 verify(mockListener, timeout(APP_OP_CHANGE_TIMEOUT_MILLIS) in testRecordAppOps()
109 Mockito.reset(mockListener); in testRecordAppOps()
117 verify(mockListener, timeout(APP_OP_CHANGE_TIMEOUT_MILLIS) in testRecordAppOps()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java356 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerOpenCamerasSerially() local
357 mCameraListener = new BlockingStateCallback(mockListener); in testCameraManagerOpenCamerasSerially()
372 camera = CameraTestUtils.verifyCameraStateOpened(ids[i], mockListener); in testCameraManagerOpenCamerasSerially()
408 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerOpenAllCameras() local
409 mCameraListener = new BlockingStateCallback(mockListener); in testCameraManagerOpenAllCameras()
473 verify(mockListener) in testCameraManagerOpenAllCameras()
478 verifyNoMoreInteractions(mockListener); in testCameraManagerOpenAllCameras()
487 mockListener); in testCameraManagerOpenAllCameras()
495 listenerList.add(mockListener); in testCameraManagerOpenAllCameras()
725 MockStateCallback mockListener = MockStateCallback.mock(); in testCameraManagerListenerCallbacks() local
[all …]
DSurfaceViewPreviewTest.java871 CaptureCallback mockListener, in verifyCaptureResults() argument
877 verify(mockListener, in verifyCaptureResults()
903 verify(mockListener, in verifyCaptureResults()
911 verify(mockListener, never()) in verifyCaptureResults()
DCameraDeviceSetupTest.java177 MockStateCallback mockListener = MockStateCallback.mock(); in testOpenSuccessful() local
178 BlockingStateCallback callback = new BlockingStateCallback(mockListener); in testOpenSuccessful()
186 cameraId, mockListener); in testOpenSuccessful()
DCameraDeviceTest.java1909 CameraCaptureSession.CaptureCallback mockListener, in verifyCaptureResults() argument
1913 verify(mockListener, in verifyCaptureResults()
1920 verify(mockListener, never()) in verifyCaptureResults()
1926 verify(mockListener, in verifyCaptureResults()
DExtendedCameraCharacteristicsTest.java940 final ImageReader.OnImageAvailableListener mockListener = mock( in checkFormatLatency() local
942 createDefaultImageReader(sz, format, MAX_NUM_IMAGES, mockListener); in checkFormatLatency()
968 verify(mockListener, timeout(threshold).times(1)).onImageAvailable( in checkFormatLatency()
970 reset(mockListener); in checkFormatLatency()
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java135 ValueAnimator.AnimatorUpdateListener mockListener = in testOfFloat() local
137 objAnimator.addUpdateListener(mockListener); in testOfFloat()
146 verify(mockListener, timeout(2000).atLeast(2)).onAnimationUpdate(objAnimator); in testOfFloat()
176 final Animator.AnimatorListener mockListener = mock(Animator.AnimatorListener.class); in testOfInt() local
177 intAnimator.addListener(mockListener); in testOfInt()
185 verify(mockListener, timeout(2000)).onAnimationRepeat(intAnimator); in testOfInt()
186 verify(mockListener, timeout(3000)).onAnimationEnd(intAnimator, false); in testOfInt()
211 final Animator.AnimatorListener mockListener = mock(Animator.AnimatorListener.class); in testOfObject() local
212 colorAnimator.addListener(mockListener); in testOfObject()
220 verify(mockListener, timeout(8000)).onAnimationRepeat(colorAnimator); in testOfObject()
[all …]
DAnimatorSetTest.java770 AnimatorListenerAdapter mockListener = mock(AnimatorListenerAdapter.class); in testSeeking() local
772 set.addListener(mockListener); in testSeeking()
777 verify(mockListener, within(300)).onAnimationEnd(set, false); in testSeeking()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsMouseUtil.java49 final View.OnHoverListener mockListener = mock(View.OnHoverListener.class); in installHoverListener() local
52 mockListener.onHover(v, MotionEvent.obtain(event)); in installHoverListener()
55 return mockListener; in installHoverListener()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java146 Icon.OnDrawableLoadedListener mockListener = mock(Icon.OnDrawableLoadedListener.class); in testLoadDrawableAsync() local
148 () -> mIcon.loadDrawableAsync(mActivity, mockListener, new Handler())); in testLoadDrawableAsync()
152 verify(mockListener, times(1)).onDrawableLoaded(any()); in testLoadDrawableAsync()
/cts/tests/tests/widget/src/android/widget/cts/
DToolbarTest.java505 View.OnClickListener mockListener = mock(View.OnClickListener.class); in testNavigationOnClickListener() local
506 mMainToolbar.setNavigationOnClickListener(mockListener); in testNavigationOnClickListener()
508 verify(mockListener, never()).onClick(any(View.class)); in testNavigationOnClickListener()
511 verify(mockListener, times(1)).onClick(any(View.class)); in testNavigationOnClickListener()
513 verifyNoMoreInteractions(mockListener); in testNavigationOnClickListener()
/cts/tests/tests/view/src/android/view/cts/
DPointerCaptureTest.java131 final View.OnCapturedPointerListener mockListener = in installCapturedPointerListener() local
135 mockListener.onCapturedPointer(v, MotionEvent.obtain(event)); in installCapturedPointerListener()
138 return mockListener; in installCapturedPointerListener()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java4597 MockStateCallback mockListener = MockStateCallback.mock(); in testPhysicalCameraAvailabilityConsistencyHelper() local
4598 BlockingStateCallback cameraListener = new BlockingStateCallback(mockListener); in testPhysicalCameraAvailabilityConsistencyHelper()
4604 CameraDevice camera = CameraTestUtils.verifyCameraStateOpened(cameraId, mockListener); in testPhysicalCameraAvailabilityConsistencyHelper()