Searched refs:mockCallback (Results 1 – 2 of 2) 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/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 …]
|