Searched refs:amCallback (Results 1 – 2 of 2) sorted by relevance
223 final ActionMode.Callback amCallback = mock(ActionMode.Callback.class); in testSupportActionModeAppCompatCallbacks() local224 when(amCallback.onCreateActionMode(any(ActionMode.class), any(Menu.class))) in testSupportActionModeAppCompatCallbacks()235 final ActionMode actionMode = activity.startSupportActionMode(amCallback); in testSupportActionModeAppCompatCallbacks()
791 final ActionMode.Callback amCallback = mock(ActionMode.Callback.class); in testSetSelectionAndActionMode() local792 when(amCallback.onCreateActionMode(any(ActionMode.class), any(Menu.class))) in testSetSelectionAndActionMode()794 when(amCallback.onPrepareActionMode(any(ActionMode.class), any(Menu.class))) in testSetSelectionAndActionMode()796 textView.setCustomSelectionActionModeCallback(amCallback); in testSetSelectionAndActionMode()804 verify(amCallback, never()).onCreateActionMode(any(ActionMode.class), any(Menu.class)); in testSetSelectionAndActionMode()