Searched refs:mockCallback (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/view/src/android/view/cts/ |
D | ActionModeTest.java | 90 final ActionMode.Callback2 mockCallback = mock(ActionMode.Callback2.class); in testInvalidateContentRectOnFloatingCallsCallback() local 91 doReturn(Boolean.TRUE).when(mockCallback).onCreateActionMode( in testInvalidateContentRectOnFloatingCallsCallback() 93 doReturn(Boolean.TRUE).when(mockCallback).onPrepareActionMode( in testInvalidateContentRectOnFloatingCallsCallback() 97 ActionMode mode = view.startActionMode(mockCallback, ActionMode.TYPE_FLOATING); in testInvalidateContentRectOnFloatingCallsCallback() 103 verify(mockCallback, atLeastOnce()).onGetContentRect(any(ActionMode.class), any(View.class), in testInvalidateContentRectOnFloatingCallsCallback()
|
/cts/tests/translation/src/android/translation/cts/ |
D | UiTranslationManagerTest.java | 283 ViewTranslationCallback mockCallback = Mockito.mock(ViewTranslationCallback.class); in testUiTranslation_CustomViewTranslationCallback() local 284 mTextView.setViewTranslationCallback(mockCallback); in testUiTranslation_CustomViewTranslationCallback() 291 … Mockito.verify(mockCallback, Mockito.times(1)).onShowTranslation(viewArgumentCaptor.capture()); in testUiTranslation_CustomViewTranslationCallback() 297 … Mockito.verify(mockCallback, Mockito.times(1)).onHideTranslation(viewArgumentCaptor.capture()); in testUiTranslation_CustomViewTranslationCallback() 303 … Mockito.verify(mockCallback, Mockito.times(2)).onShowTranslation(viewArgumentCaptor.capture()); in testUiTranslation_CustomViewTranslationCallback() 313 Mockito.verify(mockCallback, Mockito.never()).onClearTranslation(any(View.class)); in testUiTranslation_CustomViewTranslationCallback() 317 Mockito.verify(mockCallback, Mockito.times(2)).onShowTranslation(any()); in testUiTranslation_CustomViewTranslationCallback() 318 Mockito.verify(mockCallback, Mockito.times(1)).onHideTranslation(any()); in testUiTranslation_CustomViewTranslationCallback() 345 ViewTranslationCallback mockCallback = Mockito.mock(ViewTranslationCallback.class); in testUiTranslation_ViewTranslationCallback_paddingText() local 346 mTextView.setViewTranslationCallback(mockCallback); in testUiTranslation_ViewTranslationCallback_paddingText() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableTest.java | 623 Drawable.Callback mockCallback = mock(Drawable.Callback.class); in testInvalidateSelf() local 624 mockDrawable.setCallback(mockCallback); in testInvalidateSelf() 626 verify(mockCallback, times(1)).invalidateDrawable(mockDrawable); in testInvalidateSelf() 692 Callback mockCallback = mock(Callback.class); in testScheduleSelf() local 693 mockDrawable.setCallback(mockCallback); in testScheduleSelf() 695 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(1000L)); in testScheduleSelf() 698 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(0L)); in testScheduleSelf() 701 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(-1000L)); in testScheduleSelf() 707 Callback mockCallback = mock(Callback.class); in testAccessCallback() local 709 mockDrawable.setCallback(mockCallback); in testAccessCallback() [all …]
|