Home
last modified time | relevance | path

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

/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
DBaseBasicsTestCase.java223 final ActionMode.Callback amCallback = mock(ActionMode.Callback.class); in testSupportActionModeAppCompatCallbacks() local
224 when(amCallback.onCreateActionMode(any(ActionMode.class), any(Menu.class))) in testSupportActionModeAppCompatCallbacks()
235 final ActionMode actionMode = activity.startSupportActionMode(amCallback); in testSupportActionModeAppCompatCallbacks()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityTest.java791 final ActionMode.Callback amCallback = mock(ActionMode.Callback.class); in testSetSelectionAndActionMode() local
792 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()