Home
last modified time | relevance | path

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

12

/cts/tests/tests/print/src/android/print/cts/
DPrintDocumentAdapterContractTest.java23 import static org.mockito.Mockito.inOrder;
144 InOrder inOrder = inOrder(adapter); in noPrintOptionsOrPrinterChange() local
147 inOrder.verify(adapter).onStart(); in noPrintOptionsOrPrinterChange()
159 verifyLayoutCall(inOrder, adapter, firstOldAttributes, firstNewAttributes, true); in noPrintOptionsOrPrinterChange()
163 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in noPrintOptionsOrPrinterChange()
178 verifyLayoutCall(inOrder, adapter, secondOldAttributes, secondNewAttributes, true); in noPrintOptionsOrPrinterChange()
181 verifyLayoutCall(inOrder, adapter, secondNewAttributes, secondNewAttributes, false); in noPrintOptionsOrPrinterChange()
188 inOrder.verify(adapter).onFinish(); in noPrintOptionsOrPrinterChange()
216 InOrder inOrder = inOrder(adapter); in noPrintOptionsOrPrinterChangeCanceled() local
219 inOrder.verify(adapter).onStart(); in noPrintOptionsOrPrinterChangeCanceled()
[all …]
DPrinterDiscoverySessionLifecycleTest.java26 import static org.mockito.Mockito.inOrder;
334 InOrder inOrder = inOrder(firstSessionCallbacks); in normalLifecycle() local
338 inOrder.verify(firstSessionCallbacks).onStartPrinterDiscovery( in normalLifecycle()
342 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( in normalLifecycle()
346 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( in normalLifecycle()
350 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( in normalLifecycle()
354 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( in normalLifecycle()
358 inOrder.verify(firstSessionCallbacks).onStopPrinterDiscovery(); in normalLifecycle()
361 inOrder.verify(firstSessionCallbacks).onDestroy(); in normalLifecycle()
432 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/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/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/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;
1507 InOrder inOrder = inOrder(listener); in testRemoveDetachedView() local
1508 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child1); in testRemoveDetachedView()
1509 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child2); in testRemoveDetachedView()
1510 inOrder.verify(listener, times(1)).onChildViewRemoved(parent, child1); in testRemoveDetachedView()
2185 InOrder inOrder = inOrder(listener); in testSetOnHierarchyChangeListener() local
2186 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child); in testSetOnHierarchyChangeListener()
2187 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;
390 InOrder inOrder = inOrder(mockScrollListener); in testInteractionWithSwipeDown() local
391 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
394 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
397 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
461 InOrder inOrder = inOrder(mockScrollListener); in testInteractionWithSwipeUp() local
462 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
465 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
468 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()
DAbsListViewTest.java32 import static org.mockito.Mockito.inOrder;
523 final InOrder reclaimedOrder = inOrder(mockRecyclerListener); in testSetRecyclerListener()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java31 import static org.mockito.Mockito.inOrder;
305 InOrder inOrder = inOrder(callbacks); in testAppWidgetProviderCallbacks() local
307 inOrder.verify(callbacks).onEnabled(any(Context.class)); in testAppWidgetProviderCallbacks()
308 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
310 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
313 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
315 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
318 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
320 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
322 inOrder.verify(callbacks).onDisabled(any(Context.class)); in testAppWidgetProviderCallbacks()
[all …]
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/
DCountMetricsTests.java278 boolean inOrder = reports.getReports(0).getCurrentReportWallClockNanos() < in testPartialBucketCountMetric()
289 reports.getReports(inOrder? 0 : 1).getMetrics(0).getCountMetrics().getData(0); in testPartialBucketCountMetric()
291 reports.getReports(inOrder? 1 : 0).getMetrics(0).getCountMetrics().getData(0); in testPartialBucketCountMetric()
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DSafeCleanerRuleTest.java232 .inOrder(); in testThrowTheKitchenSinkAKAEverybodyThrows()
255 .inOrder(); in testIgnoreAssumptionViolatedException()
293 .inOrder(); in testThrowTheKitchenSinkAKAEverybodyThrows_withDumper()
/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.java296 assertThat(node.getAutofillHints()).asList().containsExactly("Auto", "Man").inOrder(); in assertSimpleNode()
297 assertThat(node.getAutofillOptions()).asList().containsExactly("Maybe").inOrder(); in assertSimpleNode()
384 assertThat(node.getTextLineCharOffsets()).asList().containsExactly(4, 8, 15).inOrder(); in assertNodeWithComplexText()
385 assertThat(node.getTextLineBaselines()).asList().containsExactly(16, 23, 42).inOrder(); in assertNodeWithComplexText()
/cts/tests/tests/provider/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.java405 assertThat(sessionIds).containsExactly(mainSessionId, childSessionId).inOrder(); in testAddAndRemoveImportantChildOnDifferentSession()
496 .inOrder(); in testDinamicallyManageChildlessSiblingSessions()
585 assertThat(receivedIds).containsExactly(mainSessionId, childSessionId).inOrder(); in dinamicallyAddOneChildOnAnotherSessionTest()
705 .inOrder(); in testDinamicallyManageSiblingSessions()
817 .inOrder(); in testNestedSessions_simplestScenario()
909 .inOrder(); in testDinamicallyManageChildlessNestedSessions()
1005 .inOrder(); in testRemoveChildrenFromDifferentSessions()
DAssertions.java368 .that(ids).containsExactly((Object[]) expectedIds).inOrder(); in assertViewsDisappeared()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java428 InOrder inOrder = inOrder(listener); in verifyCameraStateOpened() local
436 inOrder.verify(listener) in verifyCameraStateOpened()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DUiBot.java254 .containsExactlyElementsIn(Arrays.asList(names)).inOrder(); in assertDatasets()
276 .containsAllIn(Arrays.asList(names)).inOrder(); in assertDatasetsContains()
302 .containsExactlyElementsIn(Arrays.asList(header)).inOrder();
312 .containsExactlyElementsIn(expectedChild).inOrder();
DCheckoutActivityTest.java111 .inOrder();
196 .containsExactly("never", "today", "tomorrow", "yesterday").inOrder();
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java43 import static org.mockito.Mockito.inOrder;
884 View.OnHoverListener verifier = inOrder(listener).verify(listener); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain()
945 View.OnHoverListener verifier = inOrder(listener).verify(listener); in testTouchDelegateCoverParentWithEbt_HoverChildAndBack_FocusTargetAgain()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java817 protected void verifyLayoutCall(InOrder inOrder, PrintDocumentAdapter mock, in verifyLayoutCall() argument
820 inOrder.verify(mock).onLayout(eq(oldAttributes), eq(newAttributes), in verifyLayoutCall()

12