Home
last modified time | relevance | path

Searched refs:inOrder (Results 1 – 25 of 34) sorted by relevance

12

/cts/tests/tests/print/src/android/print/cts/
DPrintDocumentAdapterContractTest.java23 import static org.mockito.Mockito.inOrder;
142 InOrder inOrder = inOrder(adapter); in noPrintOptionsOrPrinterChange() local
145 inOrder.verify(adapter).onStart(); in noPrintOptionsOrPrinterChange()
157 verifyLayoutCall(inOrder, adapter, firstOldAttributes, firstNewAttributes, true); in noPrintOptionsOrPrinterChange()
161 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in noPrintOptionsOrPrinterChange()
176 verifyLayoutCall(inOrder, adapter, secondOldAttributes, secondNewAttributes, true); in noPrintOptionsOrPrinterChange()
179 verifyLayoutCall(inOrder, adapter, secondNewAttributes, secondNewAttributes, false); in noPrintOptionsOrPrinterChange()
186 inOrder.verify(adapter).onFinish(); in noPrintOptionsOrPrinterChange()
213 InOrder inOrder = inOrder(adapter); in noPrintOptionsOrPrinterChangeCanceled() local
216 inOrder.verify(adapter).onStart(); in noPrintOptionsOrPrinterChangeCanceled()
[all …]
DPrinterDiscoverySessionLifecycleTest.java26 import static org.mockito.Mockito.inOrder;
327 InOrder inOrder = inOrder(firstSessionCallbacks); in normalLifecycle() local
331 inOrder.verify(firstSessionCallbacks).onStartPrinterDiscovery( in normalLifecycle()
335 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( in normalLifecycle()
339 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( in normalLifecycle()
343 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( in normalLifecycle()
347 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( in normalLifecycle()
351 inOrder.verify(firstSessionCallbacks).onStopPrinterDiscovery(); in normalLifecycle()
354 inOrder.verify(firstSessionCallbacks).onDestroy(); in normalLifecycle()
430 InOrder inOrder = inOrder(firstSessionCallbacks); in cancelPrintServicesAlertDialog() local
[all …]
DPageRangeAdjustmentTest.java22 import static org.mockito.Mockito.inOrder;
135 InOrder inOrder = inOrder(firstServiceCallbacks); in allPagesWantedAndAllPagesWritten() local
138 inOrder.verify(firstServiceCallbacks) in allPagesWantedAndAllPagesWritten()
142 inOrder.verify(firstServiceCallbacks).onPrintJobQueued( in allPagesWantedAndAllPagesWritten()
221 InOrder inOrder = inOrder(firstServiceCallbacks); in somePagesWantedAndAllPagesWritten() local
224 inOrder.verify(firstServiceCallbacks) in somePagesWantedAndAllPagesWritten()
228 inOrder.verify(firstServiceCallbacks).onPrintJobQueued( in somePagesWantedAndAllPagesWritten()
326 InOrder inOrder = inOrder(firstServiceCallbacks); in somePagesWantedAndSomeMorePagesWritten() local
329 inOrder.verify(firstServiceCallbacks) in somePagesWantedAndSomeMorePagesWritten()
333 inOrder.verify(firstServiceCallbacks).onPrintJobQueued( in somePagesWantedAndSomeMorePagesWritten()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsMouseUtil.java21 import static org.mockito.Mockito.inOrder;
140 final InOrder inOrder = inOrder(listener); in verifyEnterMove() local
141 verifyEnterMoveInternal(listener, view, moveCount, inOrder); in verifyEnterMove()
142 inOrder.verifyNoMoreInteractions(); in verifyEnterMove()
147 final InOrder inOrder = inOrder(listener); in verifyEnterMoveExit() local
148 verifyEnterMoveInternal(listener, view, moveCount, inOrder); in verifyEnterMoveExit()
149 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveExit()
151 inOrder.verifyNoMoreInteractions(); in verifyEnterMoveExit()
155 View.OnHoverListener listener, View view, int moveCount, InOrder inOrder) { in verifyEnterMoveInternal() argument
156 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveInternal()
[all …]
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DGenericDocumentCtsTest.java172 .inOrder(); in testDocumentGetSingleValue()
191 .inOrder(); in testDocumentGetSingleValue()
218 .inOrder(); in testDocumentGetArrayValues()
222 .inOrder(); in testDocumentGetArrayValues()
226 .inOrder(); in testDocumentGetArrayValues()
230 .inOrder(); in testDocumentGetArrayValues()
234 .inOrder(); in testDocumentGetArrayValues()
238 .inOrder(); in testDocumentGetArrayValues()
324 .inOrder(); in testDocumentGetValues_differentTypes()
367 .inOrder(); in testRetrieveTopLevelProperties()
[all …]
DSearchSpecCtsTest.java68 .inOrder(); in testBuildSearchSpec()
71 .inOrder(); in testBuildSearchSpec()
74 .inOrder(); in testBuildSearchSpec()
DRemoveByDocumentIdRequestCtsTest.java37 assertThat(request.getIds()).containsExactly("uri1", "uri2", "uri3").inOrder(); in testBuildRequest()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInsetsAnimationTests.java38 import static org.mockito.Mockito.inOrder;
132 InOrder inOrder = inOrder(callback, mActivity.mListener); in testAnimationCallbacks_overlapping() local
134 inOrder.verify(callback).onPrepare(eq(callback.navBarAnim)); in testAnimationCallbacks_overlapping()
136 inOrder.verify(mActivity.mListener).onApplyWindowInsets(any(), argThat( in testAnimationCallbacks_overlapping()
140 inOrder.verify(callback).onStart(eq(callback.navBarAnim), argThat( in testAnimationCallbacks_overlapping()
144 inOrder.verify(callback).onPrepare(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping()
145 inOrder.verify(mActivity.mListener).onApplyWindowInsets( in testAnimationCallbacks_overlapping()
148 inOrder.verify(callback).onStart(eq(callback.statusBarAnim), argThat( in testAnimationCallbacks_overlapping()
152 inOrder.verify(callback).onEnd(eq(callback.navBarAnim)); in testAnimationCallbacks_overlapping()
153 inOrder.verify(callback).onEnd(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping()
DWindowInsetsAnimationTestBase.java35 import static org.mockito.Mockito.inOrder;
74 InOrder inOrder = inOrder(activity.mCallback, activity.mListener); in commonAnimationAssertions() local
77 inOrder.verify(callback).onPrepare(eq(callback.lastAnimation)); in commonAnimationAssertions()
78 inOrder.verify(activity.mListener).onApplyWindowInsets(any(), any()); in commonAnimationAssertions()
80 inOrder.verify(callback).onStart(eq(callback.lastAnimation), argThat( in commonAnimationAssertions()
86 inOrder.verify(callback, atLeast(2)).onProgress(any(), argThat( in commonAnimationAssertions()
88 inOrder.verify(callback).onEnd(eq(callback.lastAnimation)); in commonAnimationAssertions()
DWindowInsetsAnimationImeTests.java33 import static org.mockito.Mockito.inOrder;
110 InOrder inOrderBar = inOrder(callback, mActivity.mListener); in testAnimationCallbacks_overlapping_opposite()
111 InOrder inOrderIme = inOrder(callback, mActivity.mListener); in testAnimationCallbacks_overlapping_opposite()
/cts/tests/tests/view/src/android/view/cts/
DPointerCaptureTest.java31 import static org.mockito.Mockito.inOrder;
151 private static void verifyRelativeMouseEvent(InOrder inOrder, in verifyRelativeMouseEvent() argument
153 inOrder.verify(listener, times(1)).onCapturedPointer( in verifyRelativeMouseEvent()
300 InOrder inOrder = inOrder( in testEventDispatch() local
304 inOrder.verify(hoverListenerTarget2, times(1)).onHover( in testEventDispatch()
307 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_MOVE, 1, 2); in testEventDispatch()
308 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_DOWN, 1, 2); in testEventDispatch()
309 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_MOVE, 3, 4); in testEventDispatch()
310 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_UP, 3, 4); in testEventDispatch()
311 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_MOVE, 1, 2); in testEventDispatch()
[all …]
DHoverTest.java27 import static org.mockito.Mockito.inOrder;
136 InOrder inOrder = inOrder(listener); in testHoverMoveMultiple() local
138 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
140 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
142 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
144 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
DViewGroupTest.java28 import static org.mockito.Mockito.inOrder;
1511 InOrder inOrder = inOrder(listener); in testRemoveDetachedView() local
1512 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child1); in testRemoveDetachedView()
1513 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child2); in testRemoveDetachedView()
1514 inOrder.verify(listener, times(1)).onChildViewRemoved(parent, child1); in testRemoveDetachedView()
2189 InOrder inOrder = inOrder(listener); in testSetOnHierarchyChangeListener() local
2190 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child); in testSetOnHierarchyChangeListener()
2191 inOrder.verify(listener, times(1)).onChildViewRemoved(parent, child); in testSetOnHierarchyChangeListener()
/cts/tests/tests/widget/src/android/widget/cts/
DNumberPickerTest.java27 import static org.mockito.Mockito.inOrder;
395 InOrder inOrder = inOrder(mockScrollListener); in testInteractionWithSwipeDown() local
396 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
399 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
402 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
466 InOrder inOrder = inOrder(mockScrollListener); in testInteractionWithSwipeUp() local
467 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
470 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
473 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
DSlidingDrawerTest.java25 import static org.mockito.Mockito.inOrder;
267 InOrder inOrder = inOrder(mockScrollListener); in testSetOnDrawerScrollListener() local
268 inOrder.verify(mockScrollListener).onScrollStarted(); in testSetOnDrawerScrollListener()
269 inOrder.verify(mockScrollListener).onScrollEnded(); in testSetOnDrawerScrollListener()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java33 import static org.mockito.Mockito.inOrder;
308 InOrder inOrder = inOrder(callbacks); in testAppWidgetProviderCallbacks() local
310 inOrder.verify(callbacks).onEnabled(any(Context.class)); in testAppWidgetProviderCallbacks()
311 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
313 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
316 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
318 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
321 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
323 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
325 inOrder.verify(callbacks).onDisabled(any(Context.class)); in testAppWidgetProviderCallbacks()
[all …]
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFamilyUpdateRequestTest.java55 assertThat(font.getAxes()).containsExactlyElementsIn(axes).inOrder(); in font()
88 assertThat(fontFamily.getFonts()).containsExactly(font1, font2).inOrder(); in fontFamily()
132 assertThat(request.getFontFamilies()).containsExactly(fontFamily1, fontFamily2).inOrder(); in fontFamilyUpdateRequest()
/cts/hostsidetests/tv/src/com/android/cts/tv/
DTvInputManagerServiceHostTest.java117 inOrder(); in verifyCallbackVideoAvailable()
145 inOrder(); in verifyCallbackVideoUnavailable()
172 inOrder(); in verifyCommandTune()
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DSafeCleanerRuleTest.java232 .inOrder(); in testThrowTheKitchenSinkAKAEverybodyThrows()
255 .inOrder(); in testIgnoreAssumptionViolatedException()
293 .inOrder(); in testThrowTheKitchenSinkAKAEverybodyThrows_withDumper()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/
DViewNodeTest.java302 assertThat(node.getAutofillHints()).asList().containsExactly("Auto", "Man").inOrder(); in assertSimpleNode()
303 assertThat(node.getAutofillOptions()).asList().containsExactly("Maybe").inOrder(); in assertSimpleNode()
392 assertThat(node.getTextLineCharOffsets()).asList().containsExactly(4, 8, 15).inOrder(); in assertNodeWithComplexText()
393 assertThat(node.getTextLineBaselines()).asList().containsExactly(16, 23, 42).inOrder(); in assertNodeWithComplexText()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DDatabaseAsserts.java168 boolean inOrder, ContentValues... expectedValues) { in assertStoredValuesInUriMatchExactly() argument
171 if (inOrder) { in assertStoredValuesInUriMatchExactly()
DContactsContract_FrequentsStrequentsTest.java370 boolean inOrder, ContentValues... expected) { in assertCursorStoredValuesWithContactsFilter() argument
382 null, null, inOrder, expected); in assertCursorStoredValuesWithContactsFilter()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DChildlessActivityTest.java401 assertThat(sessionIds).containsExactly(mainSessionId, childSessionId).inOrder(); in testAddAndRemoveImportantChildOnDifferentSession()
495 .inOrder(); in testDinamicallyManageChildlessSiblingSessions()
584 assertThat(receivedIds).containsExactly(mainSessionId, childSessionId).inOrder(); in dinamicallyAddOneChildOnAnotherSessionTest()
704 .inOrder(); in testDinamicallyManageSiblingSessions()
819 .inOrder(); in testNestedSessions_simplestScenario()
911 .inOrder(); in testDinamicallyManageChildlessNestedSessions()
1007 .inOrder(); in testRemoveChildrenFromDifferentSessions()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DUiBot.java287 .containsExactlyElementsIn(Arrays.asList(names)).inOrder(); in assertDatasets()
299 .containsAtLeastElementsIn(Arrays.asList(names)).inOrder(); in assertDatasetsContains()
319 .containsExactlyElementsIn(Arrays.asList(header)).inOrder(); in assertDatasetsWithBorders()
329 .containsExactlyElementsIn(expectedChild).inOrder(); in assertDatasetsWithBorders()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java807 .containsExactly(1L, 2L, 3L).inOrder();
826 .containsExactly(1L, 2L, 3L).inOrder();
842 .containsExactly(1L, 2L, 3L).inOrder();

12