Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DActionModeTest.java89 final ActionMode.Callback2 mockCallback = mock(ActionMode.Callback2.class); in testInvalidateContentRectOnFloatingCallsCallback() local
90 doReturn(Boolean.TRUE).when(mockCallback).onCreateActionMode( in testInvalidateContentRectOnFloatingCallsCallback()
92 doReturn(Boolean.TRUE).when(mockCallback).onPrepareActionMode( in testInvalidateContentRectOnFloatingCallsCallback()
96 ActionMode mode = view.startActionMode(mockCallback, ActionMode.TYPE_FLOATING); in testInvalidateContentRectOnFloatingCallsCallback()
102 verify(mockCallback, atLeastOnce()).onGetContentRect(any(ActionMode.class), any(View.class), in testInvalidateContentRectOnFloatingCallsCallback()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java552 Drawable.Callback mockCallback = mock(Drawable.Callback.class); in testInvalidateSelf() local
553 mockDrawable.setCallback(mockCallback); in testInvalidateSelf()
555 verify(mockCallback, times(1)).invalidateDrawable(mockDrawable); in testInvalidateSelf()
621 Callback mockCallback = mock(Callback.class); in testScheduleSelf() local
622 mockDrawable.setCallback(mockCallback); in testScheduleSelf()
624 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(1000L)); in testScheduleSelf()
627 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(0L)); in testScheduleSelf()
630 verify(mockCallback).scheduleDrawable(eq(mockDrawable), eq(runnable), eq(-1000L)); in testScheduleSelf()
636 Callback mockCallback = mock(Callback.class); in testAccessCallback() local
638 mockDrawable.setCallback(mockCallback); in testAccessCallback()
[all …]