Home
last modified time | relevance | path

Searched refs:when (Results 1 – 13 of 13) sorted by relevance

/appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/
DSwitchCompatEmojiTest.java24 import static org.mockito.Mockito.when;
50 when(mEmojiCompatMock.getLoadState()).thenReturn(EmojiCompat.LOAD_STATE_LOADING); in setupCallbacks_whenLoading()
64 when(mEmojiCompatMock.getLoadState()).thenReturn(EmojiCompat.LOAD_STATE_LOADING); in dontSetupCallbacks_whenDisabled()
78 when(mEmojiCompatMock.getLoadState()).thenReturn(EmojiCompat.LOAD_STATE_LOADING); in noInteractions_whenDisnabled_andRepeatedShowText()
95 when(mEmojiCompatMock.getLoadState()).thenReturn(EmojiCompat.LOAD_STATE_LOADING); in setupCallbacks_whenLoading_andEnabledLate()
DAppCompatEditTextReceiveContentTest.java34 import static org.mockito.Mockito.when;
214 when(mMockReceiver.onReceiveContent(eq(mEditText), any(ContentInfoCompat.class))) in testPaste_withReceiver_resultBoolean()
219 when(mMockReceiver.onReceiveContent(eq(mEditText), any(ContentInfoCompat.class))) in testPaste_withReceiver_resultBoolean()
346 when(mMockReceiver.onReceiveContent(eq(mEditText), any(ContentInfoCompat.class))) in testImeCommitContent_withReceiver_resultBoolean()
352 when(mMockReceiver.onReceiveContent(eq(mEditText), any(ContentInfoCompat.class))) in testImeCommitContent_withReceiver_resultBoolean()
560 when(dragEvent.getAction()).thenReturn(action); in createDragEvent()
561 when(dragEvent.getX()).thenReturn(x); in createDragEvent()
562 when(dragEvent.getY()).thenReturn(y); in createDragEvent()
563 when(dragEvent.getClipData()).thenReturn(clip); in createDragEvent()
DSearchView_CursorTest.java27 import static org.mockito.Mockito.when;
155 when(mockQueryTextListener.onQueryTextChange(anyString())).thenCallRealMethod(); in testSuggestionFiltering()
177 when(mockSuggestionListener.onSuggestionClick(anyInt())).thenCallRealMethod(); in testSuggestionSelection()
181 when(mockQueryTextListener.onQueryTextChange(anyString())).thenCallRealMethod(); in testSuggestionSelection()
DSearchViewTest.java28 import static org.mockito.Mockito.when;
151 when(mockDenyCloseListener.onClose()).thenReturn(Boolean.TRUE); in testDenyIconifyingInconifiableView()
181 when(mockAllowCloseListener.onClose()).thenReturn(Boolean.FALSE); in testAllowIconifyingInconifiableView()
241 when(mockQueryTextListener.onQueryTextSubmit(anyString())).thenReturn(Boolean.TRUE); in testAccessQuery()
DAppCompatBaseTextViewEmojiTest.java27 import static org.mockito.Mockito.when;
76 when(mEmojiCompatMock.getLoadState()).thenReturn(EmojiCompat.LOAD_STATE_FAILED); in resetEmojiCompatToNewMock()
DListPopupWindowTest.java565 doCallRealMethod().when(mOnItemClickListener).onItemClick( in configure()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/
DBaseBasicsTestCase.java33 import static org.mockito.Mockito.when;
279 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(true); in testSupportActionModeCallbacks()
303 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(true); in testSupportActionModeCallbacksInvalidate()
327 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(false); in testSupportActionModeCallbacksWithFalseOnCreate()
357 when(amCallback.onCreateActionMode(any(ActionMode.class), any(Menu.class))) in testSupportActionModeAppCompatCallbacks()
363 when(apCallback.onWindowStartingSupportActionMode(any(ActionMode.Callback.class))) in testSupportActionModeAppCompatCallbacks()
/appcompat/appcompat-resources/src/main/java/androidx/appcompat/graphics/drawable/
DDrawableWrapperCompat.java171 public void scheduleDrawable(Drawable who, Runnable what, long when) { in scheduleDrawable() argument
172 scheduleSelf(what, when); in scheduleDrawable()
DDrawableContainerCompat.java377 public void scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when) { in scheduleDrawable() argument
379 getCallback().scheduleDrawable(this, what, when); in scheduleDrawable()
1189 public void scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when) { in scheduleDrawable() argument
1191 mCallback.scheduleDrawable(who, what, when); in scheduleDrawable()
/appcompat/appcompat/
Dbuild.gradle5 * Please use that script when creating a new project, rather than copying an existing project and
111 //TODO(b/407507716): Target Kotlin 2 when support for it is stable in kapt
/appcompat/appcompat-lint/integration-tests/
Dbuild.gradle5 * Please use that script when creating a new project, rather than copying an existing project and
/appcompat/appcompat-lint/
Dbuild.gradle21 * Please use that script when creating a new project, rather than copying an existing project and
/appcompat/appcompat-resources/
Dbuild.gradle21 * Please use that script when creating a new project, rather than copying an existing project and