Home
last modified time | relevance | path

Searched refs:any (Results 1 – 25 of 91) sorted by relevance

1234

/cts/tests/tests/text/src/android/text/method/cts/
DTransformationMethodTest.java22 import static org.mockito.Mockito.any;
72 when(mMethod.getTransformation(any(), any())).then(returnsFirstArg()); in setup()
97 when(mMethod.getTransformation(any(), any())).then(returnsFirstArg()); in testGetTransformation()
100 verify(mMethod, atLeastOnce()).getTransformation(any(), any()); in testGetTransformation()
110 verify(mMethod, atLeastOnce()).onFocusChanged(any(), any(), anyBoolean(), anyInt(), any()); in testOnFocusChanged()
118 verify(mMethod, atLeastOnce()).onFocusChanged(any(), any(), anyBoolean(), anyInt(), any()); in testOnFocusChanged()
DLinkMovementMethodTest.java24 import static org.mockito.Matchers.any;
169 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
170 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
179 verify(mClickable0, times(1)).onClick(any()); in testOnKeyDown()
180 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
189 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
190 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
198 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
199 verify(mClickable1, never()).onClick(any()); in testOnKeyDown()
208 verify(mClickable0, never()).onClick(any()); in testOnKeyDown()
[all …]
DPasswordTransformationMethodTest.java24 import static org.mockito.Mockito.any;
174 verify(mMethod, atLeastOnce()).beforeTextChanged(any(), anyInt(), anyInt(), anyInt()); in testTextChangedCallBacks()
175 verify(mMethod, atLeastOnce()).onTextChanged(any(), anyInt(), anyInt(), anyInt()); in testTextChangedCallBacks()
176 verify(mMethod, atLeastOnce()).afterTextChanged(any()); in testTextChangedCallBacks()
185 verify(mMethod, atLeastOnce()).beforeTextChanged(any(), anyInt(), anyInt(), anyInt()); in testTextChangedCallBacks()
186 verify(mMethod, atLeastOnce()).onTextChanged(any(), anyInt(), anyInt(), anyInt()); in testTextChangedCallBacks()
187 verify(mMethod, atLeastOnce()).afterTextChanged(any()); in testTextChangedCallBacks()
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminReceiverTest.java24 import static org.mockito.Mockito.any;
91 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED), eq(USER)); in testOnReceivePasswordChanged()
92 verify(mReceiver).onPasswordChanged(any(), actionEq(ACTION_PASSWORD_CHANGED)); in testOnReceivePasswordChanged()
102 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED), eq(USER)); in testOnReceivePasswordFailed()
103 verify(mReceiver).onPasswordFailed(any(), actionEq(ACTION_PASSWORD_FAILED)); in testOnReceivePasswordFailed()
113 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED), eq(USER)); in testOnReceivePasswordSucceeded()
114 verify(mReceiver).onPasswordSucceeded(any(), actionEq(ACTION_PASSWORD_SUCCEEDED)); in testOnReceivePasswordSucceeded()
124 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING), eq(USER)); in testOnReceivePasswordExpiring()
125 verify(mReceiver).onPasswordExpiring(any(), actionEq(ACTION_PASSWORD_EXPIRING)); in testOnReceivePasswordExpiring()
136 any(), actionEq(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_ENABLED)); in testOnReceiveEnabled()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionManagerTest.java21 import static org.mockito.Matchers.any;
58 verify(mListener, never()).onTransitionResume(any()); in testBeginDelayedTransition()
59 verify(mListener, never()).onTransitionPause(any()); in testBeginDelayedTransition()
60 verify(mListener, never()).onTransitionCancel(any()); in testBeginDelayedTransition()
114 verify(mListener, never()).onTransitionResume(any()); in testGo()
115 verify(mListener, never()).onTransitionPause(any()); in testGo()
116 verify(mListener, never()).onTransitionCancel(any()); in testGo()
160 verify(mListener, never()).onTransitionResume(any()); in testSetTransition1()
161 verify(mListener, never()).onTransitionPause(any()); in testSetTransition1()
162 verify(mListener, never()).onTransitionCancel(any()); in testSetTransition1()
[all …]
DFadeTest.java18 import static org.mockito.Matchers.any;
58 verify(mListener, never()).onTransitionEnd(any()); in testMode()
63 verify(mListener, never()).onTransitionEnd(any()); in testMode()
71 verify(mListener, never()).onTransitionEnd(any()); in testMode()
89 verify(mListener, never()).onTransitionEnd(any()); in testMode()
DTransitionSetTest.java22 import static org.mockito.Matchers.any;
61 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
62 verify(changeBoundsListener, times(1)).onTransitionStart(any()); in testTransitionTogether()
89 verify(fadeListener, times(1)).onTransitionStart(any()); in testTransitionSequentially()
90 verify(changeBoundsListener, never()).onTransitionStart(any()); in testTransitionSequentially()
92 verify(fadeListener, within(400)).onTransitionEnd(any()); in testTransitionSequentially()
94 () -> verify(changeBoundsListener, times(1)).onTransitionStart(any())); in testTransitionSequentially()
DTransitionTest.java26 import static org.mockito.Matchers.any;
84 verify(mListener, times(1)).onTransitionPause(any()); in testAddListener()
85 verify(mListener, times(1)).onTransitionResume(any()); in testAddListener()
86 verify(mListener, never()).onTransitionCancel(any()); in testAddListener()
87 verify(mListener, never()).onTransitionEnd(any()); in testAddListener()
88 verify(mListener, times(1)).onTransitionStart(any()); in testAddListener()
90 verify(listener2, never()).onTransitionPause(any()); in testAddListener()
91 verify(listener2, never()).onTransitionResume(any()); in testAddListener()
92 verify(listener2, never()).onTransitionCancel(any()); in testAddListener()
93 verify(listener2, never()).onTransitionEnd(any()); in testAddListener()
[all …]
DChangeTransformTest.java20 import static org.mockito.Matchers.any;
66 verify(mListener, never()).onTransitionEnd(any()); // still running in testTranslation()
86 verify(mListener, never()).onTransitionEnd(any()); // still running in testRotation()
106 verify(mListener, never()).onTransitionEnd(any()); // still running in testScale()
119 verify(mListener, never()).onTransitionEnd(any()); // still running in testReparent()
134 verify(mListener, never()).onTransitionEnd(any()); // still running in testReparentWithOverlay()
151 verify(mListener, never()).onTransitionEnd(any()); // still running in testReparentWithOverlay()
DActivityTransitionTest.java25 import static org.mockito.Matchers.any;
137 verify(targetActivity.enterListener, within(3000)).onTransitionEnd(any()); in viewsNotStripped()
138 verify(mExitListener, times(1)).onTransitionEnd(any()); in viewsNotStripped()
161 verify(mReenterListener, within(3000)).onTransitionEnd(any()); in viewsNotStripped()
162 verify(mSharedElementReenterListener, within(3000)).onTransitionEnd(any()); in viewsNotStripped()
163 verify(targetActivity.returnListener, times(1)).onTransitionEnd(any()); in viewsNotStripped()
209 verify(targetActivity.enterListener, within(3000)).onTransitionEnd(any()); in viewsStripped()
210 verify(mExitListener, times(1)).onTransitionEnd(any()); in viewsStripped()
232 verify(mReenterListener, within(3000)).onTransitionEnd(any()); in viewsStripped()
233 verify(mSharedElementReenterListener, within(3000)).onTransitionEnd(any()); in viewsStripped()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DGestureDetectorCtsActivity.java19 import static org.mockito.Matchers.any;
49 doReturn(true).when(mOnGestureListener).onDown(any(MotionEvent.class)); in onCreate()
50 doReturn(true).when(mOnGestureListener).onFling(any(MotionEvent.class), in onCreate()
51 any(MotionEvent.class), anyFloat(), anyFloat()); in onCreate()
52 doReturn(true).when(mOnGestureListener).onScroll(any(MotionEvent.class), in onCreate()
53 any(MotionEvent.class), anyFloat(), anyFloat()); in onCreate()
54 doReturn(true).when(mOnGestureListener).onSingleTapUp(any(MotionEvent.class)); in onCreate()
DActionModeTest.java25 import static org.mockito.Matchers.any;
91 any(ActionMode.class), any(Menu.class)); in testInvalidateContentRectOnFloatingCallsCallback()
93 any(ActionMode.class), any(Menu.class)); in testInvalidateContentRectOnFloatingCallsCallback()
102 verify(mockCallback, atLeastOnce()).onGetContentRect(any(ActionMode.class), any(View.class), in testInvalidateContentRectOnFloatingCallsCallback()
103 any(Rect.class)); in testInvalidateContentRectOnFloatingCallsCallback()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableWrapperTest.java23 import static org.mockito.Matchers.any;
101 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
105 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
110 verify(cb, never()).invalidateDrawable(any()); in testInvalidateDrawable()
121 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
125 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
130 verify(cb, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
141 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
145 verify(cb, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
150 verify(cb, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
[all …]
DDrawableContainerTest.java26 import static org.mockito.Matchers.any;
106 doNothing().when(dr).draw(any()); in testDraw()
108 verify(dr, times(1)).draw(any()); in testDraw()
111 doNothing().when(dr).draw(any()); in testDraw()
113 verify(dr, times(1)).draw(any()); in testDraw()
183 }).when(dr0).getPadding(any()); in testGetPadding()
190 }).when(dr1).getPadding(any()); in testGetPadding()
316 verify(mockDrawable, times(1)).setColorFilter(any()); in testSetColorFilter()
589 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
594 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
[all …]
DRotateDrawableTest.java25 import static org.mockito.Matchers.any;
183 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
187 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
192 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
201 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
205 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
210 verify(callback, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
219 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
223 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
228 verify(callback, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
DTransitionDrawableTest.java23 import static org.mockito.Matchers.any;
88 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
95 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
102 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
116 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
122 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
130 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
142 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition()
148 verify(cb, times(1)).invalidateDrawable(any()); in testReverseTransition()
155 verify(cb, never()).invalidateDrawable(any()); in testReverseTransition()
[all …]
DScaleDrawableTest.java25 import static org.mockito.Matchers.any;
95 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
99 verify(callback, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
104 verify(callback, never()).invalidateDrawable(any()); in testInvalidateDrawable()
116 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
120 verify(callback, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
125 verify(callback, never()).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
137 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
141 verify(callback, times(1)).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
146 verify(callback, never()).unscheduleDrawable(any(), any()); in testUnscheduleDrawable()
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java19 import static org.mockito.Matchers.any;
294 inOrder.verify(callbacks).onEnabled(any(Context.class)); in testAppWidgetProviderCallbacks()
295 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
296 any(AppWidgetManager.class), eq(new int[] {firstAppWidgetId})); in testAppWidgetProviderCallbacks()
297 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
298 any(AppWidgetManager.class), same(firstAppWidgetId), argThat( in testAppWidgetProviderCallbacks()
300 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
301 any(AppWidgetManager.class), eq(new int[] {secondAppWidgetId})); in testAppWidgetProviderCallbacks()
302 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
303 any(AppWidgetManager.class), same(secondAppWidgetId), argThat( in testAppWidgetProviderCallbacks()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DVideoViewTest.java24 import static org.mockito.Matchers.any;
157 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
158 verify(mockPreparedListener, times(1)).onPrepared(any(MediaPlayer.class)); in testPlayVideo()
163 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
164 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testPlayVideo()
206 verify(mockCompletionListener, within(TIME_OUT)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
207 verify(mockCompletionListener, times(1)).onCompletion(any(MediaPlayer.class)); in testAudioAttributes()
230 any(MediaPlayer.class), anyInt(), anyInt()); in testSetOnErrorListener()
231 verify(mockErrorListener, times(1)).onError(any(MediaPlayer.class), anyInt(), anyInt()); in testSetOnErrorListener()
250 verify(mockPreparedListener, within(TIME_OUT)).onPrepared(any(MediaPlayer.class)); in testGetBufferPercentage()
[all …]
DSimpleAdapterTest.java25 import static org.mockito.Matchers.any;
193 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetView()
196 verify(binder, times(1)).setViewValue(any(View.class), eq("01"), anyString()); in testGetView()
199 doReturn(false).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetView()
202 verify(binder, times(1)).setViewValue(any(View.class), eq("01"), anyString()); in testGetView()
268 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetDropDownView()
271 verify(binder, times(1)).setViewValue(any(View.class), eq("191"), anyString()); in testGetDropDownView()
274 doReturn(false).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetDropDownView()
277 verify(binder, times(1)).setViewValue(any(View.class), eq("191"), anyString()); in testGetDropDownView()
309 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testAccessViewBinder()
[all …]
DListPopupWindowTest.java26 import static org.mockito.Mockito.any;
495 any(AdapterView.class), any(View.class), eq(2), eq(2L)); in testItemClicks()
507 any(AdapterView.class), any(), eq(1), eq(1L)); in testItemClicks()
590 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testAccessSelection()
605 any(AdapterView.class), any(View.class), eq(3), eq(3L)); in testAccessSelection()
620 any(AdapterView.class)); in testAccessSelection()
691 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testListSelectionWithDPad()
703 any(AdapterView.class), any(View.class), eq(2), eq(2L)); in testListSelectionWithDPad()
715 any(AdapterView.class), any(View.class), eq(1), eq(1L)); in testListSelectionWithDPad()
727 any(AdapterView.class), any(View.class), eq(0), eq(0L)); in testListSelectionWithDPad()
[all …]
/cts/tests/tests/print/src/android/print/cts/
DPrintDocumentAdapterContractTest.java19 import static org.mockito.Matchers.any;
156 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in noPrintOptionsOrPrinterChange()
157 any(CancellationSignal.class), any(WriteResultCallback.class)); in noPrintOptionsOrPrinterChange()
228 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in noPrintOptionsOrPrinterChangeCanceled()
229 any(CancellationSignal.class), any(WriteResultCallback.class)); in noPrintOptionsOrPrinterChangeCanceled()
487 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in printOptionsChangeAndNoPrinterChange()
488 any(CancellationSignal.class), any(WriteResultCallback.class)); in printOptionsChangeAndNoPrinterChange()
749 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in printOptionsChangeAndPrinterChange()
750 any(CancellationSignal.class), any(WriteResultCallback.class)); in printOptionsChangeAndPrinterChange()
885 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in printOptionsChangeAndNoPrinterChangeAndContentChange()
[all …]
DBasePrintTest.java25 import static org.mockito.Matchers.any;
739 any(CancellationSignal.class), any(LayoutResultCallback.class), argThat( in verifyLayoutCall()
760 doAnswer(layoutAnswer).when(adapter).onLayout(any(PrintAttributes.class), in createMockPrintDocumentAdapter()
761 any(PrintAttributes.class), any(CancellationSignal.class), in createMockPrintDocumentAdapter()
762 any(LayoutResultCallback.class), any(Bundle.class)); in createMockPrintDocumentAdapter()
765 doAnswer(writeAnswer).when(adapter).onWrite(any(PageRange[].class), in createMockPrintDocumentAdapter()
766 any(ParcelFileDescriptor.class), any(CancellationSignal.class), in createMockPrintDocumentAdapter()
767 any(WriteResultCallback.class)); in createMockPrintDocumentAdapter()
826 doCallRealMethod().when(callbacks).setSession(any(StubbablePrinterDiscoverySession.class)); in createMockPrinterDiscoverySessionCallbacks()
831 any(List.class)); in createMockPrinterDiscoverySessionCallbacks()
[all …]
/cts/tests/app/src/android/app/cts/
DActivityActionModeTest.java48 when(mCallback.onCreateActionMode(any(), any())).thenReturn(true); in setUp()
49 when(mCallback.onPrepareActionMode(any(), any())).thenReturn(true); in setUp()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java24 import static org.mockito.Matchers.any;
58 doReturn(true).when(inputConnection).commitContent(any(InputContentInfo.class), in testInputConnectionWrapper()
59 anyInt(), any(Bundle.class)); in testInputConnectionWrapper()
110 verify(inputConnection, times(1)).getExtractedText(any(ExtractedTextRequest.class), eq(0)); in testInputConnectionWrapper()
126 any(Bundle.class)); in testInputConnectionWrapper()
160 verify(inputConnection, never()).commitContent(any(InputContentInfo.class), anyInt(), in testInputConnectionWrapper()
161 any(Bundle.class)); in testInputConnectionWrapper()

1234