/cts/tests/tests/print/src/android/print/cts/ |
D | PrintDocumentAdapterContractTest.java | 23 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 …]
|
D | PrinterDiscoverySessionLifecycleTest.java | 26 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 …]
|
D | PageRangeAdjustmentTest.java | 22 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/ |
D | CtsMouseUtil.java | 21 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/ |
D | CtsMouseUtil.java | 21 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/ |
D | PointerCaptureTest.java | 31 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 …]
|
D | HoverTest.java | 27 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()
|
D | ViewGroupTest.java | 28 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/ |
D | NumberPickerTest.java | 27 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()
|
D | SlidingDrawerTest.java | 25 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()
|
D | AbsListViewTest.java | 32 import static org.mockito.Mockito.inOrder; 523 final InOrder reclaimedOrder = inOrder(mockRecyclerListener); in testSetRecyclerListener()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 31 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/ |
D | CountMetricsTests.java | 278 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/ |
D | SafeCleanerRuleTest.java | 232 .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/ |
D | SafeCleanerRuleTest.java | 232 .inOrder(); in testThrowTheKitchenSinkAKAEverybodyThrows() 255 .inOrder(); in testIgnoreAssumptionViolatedException() 293 .inOrder(); in testThrowTheKitchenSinkAKAEverybodyThrows_withDumper()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/ |
D | ViewNodeTest.java | 296 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/ |
D | DatabaseAsserts.java | 168 boolean inOrder, ContentValues... expectedValues) { in assertStoredValuesInUriMatchExactly() argument 171 if (inOrder) { in assertStoredValuesInUriMatchExactly()
|
D | ContactsContract_FrequentsStrequentsTest.java | 370 boolean inOrder, ContentValues... expected) { in assertCursorStoredValuesWithContactsFilter() argument 382 null, null, inOrder, expected); in assertCursorStoredValuesWithContactsFilter()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | ChildlessActivityTest.java | 405 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()
|
D | Assertions.java | 368 .that(ids).containsExactly((Object[]) expectedIds).inOrder(); in assertViewsDisappeared()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 428 InOrder inOrder = inOrder(listener); in verifyCameraStateOpened() local 436 inOrder.verify(listener) in verifyCameraStateOpened()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | UiBot.java | 254 .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();
|
D | CheckoutActivityTest.java | 111 .inOrder(); 196 .containsExactly("never", "today", "tomorrow", "yesterday").inOrder();
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityEndToEndTest.java | 43 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/ |
D | BasePrintTest.java | 817 protected void verifyLayoutCall(InOrder inOrder, PrintDocumentAdapter mock, in verifyLayoutCall() argument 820 inOrder.verify(mock).onLayout(eq(oldAttributes), eq(newAttributes), in verifyLayoutCall()
|