Home
last modified time | relevance | path

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

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsMouseUtil.java21 import static org.mockito.Mockito.inOrder;
108 final InOrder inOrder = inOrder(listener); in verifyEnterMove() local
109 verifyEnterMoveInternal(listener, view, moveCount, inOrder); in verifyEnterMove()
110 inOrder.verifyNoMoreInteractions(); in verifyEnterMove()
115 final InOrder inOrder = inOrder(listener); in verifyEnterMoveExit() local
116 verifyEnterMoveInternal(listener, view, moveCount, inOrder); in verifyEnterMoveExit()
117 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveExit()
119 inOrder.verifyNoMoreInteractions(); in verifyEnterMoveExit()
123 View.OnHoverListener listener, View view, int moveCount, InOrder inOrder) { in verifyEnterMoveInternal() argument
124 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveInternal()
[all …]
/cts/tests/tests/print/src/android/print/cts/
DPrinterDiscoverySessionLifecycleTest.java26 import static org.mockito.Mockito.inOrder;
317 InOrder inOrder = inOrder(firstSessionCallbacks); in normalLifecycle() local
321 inOrder.verify(firstSessionCallbacks).onStartPrinterDiscovery( in normalLifecycle()
325 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( in normalLifecycle()
329 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( in normalLifecycle()
333 inOrder.verify(firstSessionCallbacks).onStartPrinterStateTracking( in normalLifecycle()
337 inOrder.verify(firstSessionCallbacks).onStopPrinterStateTracking( in normalLifecycle()
341 inOrder.verify(firstSessionCallbacks).onStopPrinterDiscovery(); in normalLifecycle()
344 inOrder.verify(firstSessionCallbacks).onDestroy(); in normalLifecycle()
415 InOrder inOrder = inOrder(firstSessionCallbacks); in cancelPrintServicesAlertDialog() local
[all …]
DPageRangeAdjustmentTest.java22 import static org.mockito.Mockito.inOrder;
134 InOrder inOrder = inOrder(firstServiceCallbacks); in allPagesWantedAndAllPagesWritten() local
137 inOrder.verify(firstServiceCallbacks) in allPagesWantedAndAllPagesWritten()
141 inOrder.verify(firstServiceCallbacks).onPrintJobQueued( in allPagesWantedAndAllPagesWritten()
220 InOrder inOrder = inOrder(firstServiceCallbacks); in somePagesWantedAndAllPagesWritten() local
223 inOrder.verify(firstServiceCallbacks) in somePagesWantedAndAllPagesWritten()
227 inOrder.verify(firstServiceCallbacks).onPrintJobQueued( in somePagesWantedAndAllPagesWritten()
325 InOrder inOrder = inOrder(firstServiceCallbacks); in somePagesWantedAndSomeMorePagesWritten() local
328 inOrder.verify(firstServiceCallbacks) in somePagesWantedAndSomeMorePagesWritten()
332 inOrder.verify(firstServiceCallbacks).onPrintJobQueued( in somePagesWantedAndSomeMorePagesWritten()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DPointerCaptureTest.java31 import static org.mockito.Mockito.inOrder;
146 private static void verifyRelativeMouseEvent(InOrder inOrder, in verifyRelativeMouseEvent() argument
148 inOrder.verify(listener, times(1)).onCapturedPointer( in verifyRelativeMouseEvent()
295 InOrder inOrder = inOrder( in testEventDispatch() local
299 inOrder.verify(hoverListenerTarget2, times(1)).onHover( in testEventDispatch()
302 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_MOVE, 1, 2); in testEventDispatch()
303 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_DOWN, 1, 2); in testEventDispatch()
304 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_MOVE, 3, 4); in testEventDispatch()
305 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_UP, 3, 4); in testEventDispatch()
306 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_MOVE, 1, 2); in testEventDispatch()
[all …]
DHoverTest.java27 import static org.mockito.Mockito.inOrder;
135 InOrder inOrder = inOrder(listener); in testHoverMoveMultiple() local
137 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
139 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
141 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
143 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
DViewGroupTest.java26 import static org.mockito.Mockito.inOrder;
1339 InOrder inOrder = inOrder(listener); in testRemoveDetachedView() local
1340 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child1); in testRemoveDetachedView()
1341 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child2); in testRemoveDetachedView()
1342 inOrder.verify(listener, times(1)).onChildViewRemoved(parent, child1); in testRemoveDetachedView()
2032 InOrder inOrder = inOrder(listener); in testSetOnHierarchyChangeListener() local
2033 inOrder.verify(listener, times(1)).onChildViewAdded(parent, child); in testSetOnHierarchyChangeListener()
2034 inOrder.verify(listener, times(1)).onChildViewRemoved(parent, child); in testSetOnHierarchyChangeListener()
/cts/tests/tests/widget/src/android/widget/cts/
DNumberPickerTest.java23 import static org.mockito.Mockito.inOrder;
356 InOrder inOrder = inOrder(mockScrollListener); in testInteractionWithSwipeDown() local
357 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
360 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
363 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
409 InOrder inOrder = inOrder(mockScrollListener); in testInteractionWithSwipeUp() local
410 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
413 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
416 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
DSlidingDrawerTest.java25 import static org.mockito.Mockito.inOrder;
266 InOrder inOrder = inOrder(mockScrollListener); in testSetOnDrawerScrollListener() local
267 inOrder.verify(mockScrollListener).onScrollStarted(); in testSetOnDrawerScrollListener()
268 inOrder.verify(mockScrollListener).onScrollEnded(); in testSetOnDrawerScrollListener()
DAbsListViewTest.java32 import static org.mockito.Mockito.inOrder;
527 final InOrder reclaimedOrder = inOrder(mockRecyclerListener); in testSetRecyclerListener()
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/
DCountMetricsTests.java151 boolean inOrder = reports.getReports(0).getCurrentReportWallClockNanos() < in testPartialBucketCountMetric()
162 reports.getReports(inOrder? 0 : 1).getMetrics(0).getCountMetrics().getData(0); in testPartialBucketCountMetric()
164 reports.getReports(inOrder? 1 : 0).getMetrics(0).getCountMetrics().getData(0); in testPartialBucketCountMetric()
/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.java377 boolean inOrder, ContentValues... expected) { in assertCursorStoredValuesWithContactsFilter() argument
389 null, null, inOrder, expected); in assertCursorStoredValuesWithContactsFilter()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DSafeCleanerRuleTest.java216 .inOrder(); in testThrowTheKitchenSinkAKAEverybodyThrows()
250 .inOrder(); in testThrowTheKitchenSinkAKAEverybodyThrows_withDumper()
DUiBot.java178 .containsExactlyElementsIn(Arrays.asList(names)).inOrder(); in assertDatasets()
200 .containsAllIn(Arrays.asList(names)).inOrder(); in assertDatasetsContains()
226 .containsExactlyElementsIn(Arrays.asList(header)).inOrder();
236 .containsExactlyElementsIn(expectedChild).inOrder();
DCheckoutActivityTest.java108 .inOrder(); in testAutofill()
193 .containsExactly("never", "today", "tomorrow", "yesterday").inOrder(); in testGetAutofillOptionsSorted()
DVirtualContainerActivityTest.java226 .inOrder(); in autofillTest()
DSimpleSaveActivityTest.java809 assertThat(saveRequest.datasetIds).containsExactly("D1", "D2").inOrder(); in testSelectedDatasetsAreSentOnSaveRequest()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java419 InOrder inOrder = inOrder(listener); in verifyCameraStateOpened() local
427 inOrder.verify(listener) in verifyCameraStateOpened()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java809 protected void verifyLayoutCall(InOrder inOrder, PrintDocumentAdapter mock, in verifyLayoutCall() argument
812 inOrder.verify(mock).onLayout(eq(oldAttributes), eq(newAttributes), in verifyLayoutCall()