Home
last modified time | relevance | path

Searched refs:mockCallback (Results 1 – 6 of 6) sorted by relevance

/cts/tests/translation/src/android/translation/cts/
DUiTranslationManagerTest.java207 UiTranslationStateCallback mockCallback = Mockito.mock(UiTranslationStateCallback.class); in testTranslationAfterStartActivityOnSameTask() local
208 manager.registerUiTranslationStateCallback(executor, mockCallback); in testTranslationAfterStartActivityOnSameTask()
224 Mockito.verify(mockCallback, Mockito.times(1)) in testTranslationAfterStartActivityOnSameTask()
229 Mockito.verify(mockCallback, Mockito.times(1)).onPaused(any(String.class)); in testTranslationAfterStartActivityOnSameTask()
233 Mockito.verify(mockCallback, Mockito.times(1)) in testTranslationAfterStartActivityOnSameTask()
238 Mockito.verify(mockCallback, Mockito.times(1)).onFinished(any(String.class)); in testTranslationAfterStartActivityOnSameTask()
240 manager.unregisterUiTranslationStateCallback(mockCallback); in testTranslationAfterStartActivityOnSameTask()
405 ViewTranslationCallback mockCallback = Mockito.mock(ViewTranslationCallback.class); in testUiTranslation_CustomViewTranslationCallback() local
406 mTextView.setViewTranslationCallback(mockCallback); in testUiTranslation_CustomViewTranslationCallback()
413 Mockito.verify(mockCallback, Mockito.times(1)).onShowTranslation( in testUiTranslation_CustomViewTranslationCallback()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DActionModeTest.java101 final ActionMode.Callback2 mockCallback = mock(ActionMode.Callback2.class); in testInvalidateContentRectOnFloatingCallsCallback() local
102 doReturn(Boolean.TRUE).when(mockCallback).onCreateActionMode( in testInvalidateContentRectOnFloatingCallsCallback()
104 doReturn(Boolean.TRUE).when(mockCallback).onPrepareActionMode( in testInvalidateContentRectOnFloatingCallsCallback()
108 ActionMode mode = view.startActionMode(mockCallback, ActionMode.TYPE_FLOATING); in testInvalidateContentRectOnFloatingCallsCallback()
114 verify(mockCallback, atLeastOnce()).onGetContentRect(any(ActionMode.class), any(View.class), in testInvalidateContentRectOnFloatingCallsCallback()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothHapClientTest.java289 BluetoothHapClient.Callback mockCallback = mock(BluetoothHapClient.Callback.class); in registerUnregisterCallback() local
293 NullPointerException.class, () -> mService.registerCallback(null, mockCallback)); in registerUnregisterCallback()
298 mService.registerCallback(executor, mockCallback); in registerUnregisterCallback()
299 mService.unregisterCallback(mockCallback); in registerUnregisterCallback()
306 SecurityException.class, () -> mService.registerCallback(executor, mockCallback)); in registerUnregisterCallback()
315 BluetoothHapClient.Callback mockCallback = mock(BluetoothHapClient.Callback.class); in registerCallbackNoPermission() local
320 () -> mService.registerCallback(sContext.getMainExecutor(), mockCallback)); in registerCallbackNoPermission()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java624 Drawable.Callback mockCallback = mock(Drawable.Callback.class); in testInvalidateSelf() local
625 mockDrawable.setCallback(mockCallback); in testInvalidateSelf()
627 verify(mockCallback, times(1)).invalidateDrawable(mockDrawable); in testInvalidateSelf()
693 Callback mockCallback = mock(Callback.class); in testScheduleSelf() local
694 mockDrawable.setCallback(mockCallback); in testScheduleSelf()
696 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(1000L)); in testScheduleSelf()
699 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(0L)); in testScheduleSelf()
702 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(-1000L)); in testScheduleSelf()
708 Callback mockCallback = mock(Callback.class); in testAccessCallback() local
710 mockDrawable.setCallback(mockCallback); in testAccessCallback()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java587 CameraCaptureSession.StateCallback mockCallback = mock( in testBasic10BitRecording() local
590 new BlockingSessionCallback(mockCallback); in testBasic10BitRecording()
624 verify(mockCallback, timeout(SESSION_CLOSE_TIMEOUT_MS). in testBasic10BitRecording()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java2833 CameraCaptureSession.StateCallback mockCallback = mock(
2839 mockCallback, zoomRatio, aeTargetFpsMin, aeTargetFpsMax,
2856 verify(mockCallback, timeout(ItsUtils.SESSION_CLOSE_TIMEOUT_MS)