Home
last modified time | relevance | path

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

123

/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;
145 final InOrder inOrder = inOrder(listener); in verifyEnterMove() local
146 verifyEnterMoveInternal(listener, view, moveCount, inOrder); in verifyEnterMove()
147 inOrder.verifyNoMoreInteractions(); in verifyEnterMove()
152 final InOrder inOrder = inOrder(listener); in verifyEnterMoveExit() local
153 verifyEnterMoveInternal(listener, view, moveCount, inOrder); in verifyEnterMoveExit()
154 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveExit()
156 inOrder.verifyNoMoreInteractions(); in verifyEnterMoveExit()
160 View.OnHoverListener listener, View view, int moveCount, InOrder inOrder) { in verifyEnterMoveInternal() argument
161 inOrder.verify(listener, times(1)).onHover(eq(view), in verifyEnterMoveInternal()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DLayoutGetRangeForRectTest.java120 assertThat(range).asList().containsExactly(37, 38).inOrder(); in character_anyOverlap()
136 assertThat(range).asList().containsExactly(4, 38).inOrder(); in character_anyOverlap_multiLine()
148 assertThat(range).asList().containsExactly(1, 3).inOrder(); in character_containsCenter()
163 assertThat(range).asList().containsExactly(1, 3).inOrder(); in character_containsCenter_partialCharacterButNotCenter()
175 assertThat(range).asList().containsExactly(25, 27).inOrder(); in character_containsCenter_rtl()
187 assertThat(range).asList().containsExactly(22, 32).inOrder(); in character_containsCenter_ltrAndRtl()
199 assertThat(range).asList().containsExactly(24, 34).inOrder(); in character_containsCenter_rtlAndLtr()
236 assertThat(range).asList().containsExactly(9, 43).inOrder(); in character_containsCenter_multiLine()
257 assertThat(range).asList().containsExactly(30, 31).inOrder(); in character_containsCenter_multiLine_betweenCharactersOnSomeLines()
289 assertThat(range).asList().containsExactly(0, DEFAULT_TEXT.length()).inOrder(); in character_containsCenter_all()
[all …]
DLayoutDrawOrderTest.java24 import static org.mockito.Mockito.inOrder;
115 InOrder order = inOrder(canvas); in testBoringLayout_testDrawOrder_Selection_on_top_of_Highlight()
135 InOrder order = inOrder(canvas); in testStaticLayout_testDrawOrder_Selection_on_top_of_Highlight()
155 InOrder order = inOrder(canvas); in testDynamicLayout_testDrawOrder_Selection_on_top_of_Highlight()
180 InOrder order = inOrder(canvas, span); in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background()
210 InOrder order = inOrder(canvas, span); in testDynamicLayout_testDrawOrder_Highlight_on_top_of_Background()
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DGenericDocumentCtsTest.java185 .inOrder(); in testDocumentGetSingleValue()
204 .inOrder(); in testDocumentGetSingleValue()
231 .inOrder(); in testDocumentGetArrayValues()
235 .inOrder(); in testDocumentGetArrayValues()
239 .inOrder(); in testDocumentGetArrayValues()
243 .inOrder(); in testDocumentGetArrayValues()
247 .inOrder(); in testDocumentGetArrayValues()
251 .inOrder(); in testDocumentGetArrayValues()
382 .inOrder(); in testDocumentGetValues_differentTypes()
472 .inOrder(); in testDocument_toBuilder()
[all …]
DRemoveByDocumentIdRequestCtsTest.java37 assertThat(request.getIds()).containsExactly("uri1", "uri2", "uri3").inOrder(); in testBuildRequest()
DSearchResultCtsTest.java202 .inOrder(); in testBuildSearchResult_informationalRankingSignals()
223 assertThat(original.getInformationalRankingSignals()).containsExactly(3.0, 4.0).inOrder(); in testRebuild_informationalRankingSignals()
228 .inOrder(); in testRebuild_informationalRankingSignals()
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsAnimationTests.java39 import static org.mockito.Mockito.inOrder;
138 InOrder inOrder = inOrder(callback, mActivity.mListener); in testAnimationCallbacks_overlapping() local
140 inOrder.verify(callback).onPrepare(eq(callback.navBarAnim)); in testAnimationCallbacks_overlapping()
142 inOrder.verify(mActivity.mListener) in testAnimationCallbacks_overlapping()
150 inOrder.verify(callback) in testAnimationCallbacks_overlapping()
161 inOrder.verify(callback).onPrepare(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping()
162 inOrder.verify(mActivity.mListener) in testAnimationCallbacks_overlapping()
165 inOrder.verify(callback) in testAnimationCallbacks_overlapping()
174 inOrder.verify(callback).onEnd(eq(callback.navBarAnim)); in testAnimationCallbacks_overlapping()
175 inOrder.verify(callback).onEnd(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping()
/cts/tests/tests/view/src/android/view/cts/
DPointerCaptureTest.java31 import static org.mockito.Mockito.inOrder;
166 private static void verifyRelativeMouseEvent(InOrder inOrder, in verifyRelativeMouseEvent() argument
168 inOrder.verify(listener, times(1)).onCapturedPointer( in verifyRelativeMouseEvent()
322 InOrder inOrder = inOrder( in testEventDispatch() local
326 inOrder.verify(hoverListenerTarget2, times(1)).onHover( in testEventDispatch()
329 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_MOVE, 1, 2); in testEventDispatch()
330 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_DOWN, 1, 2); in testEventDispatch()
331 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_MOVE, 3, 4); in testEventDispatch()
332 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_UP, 3, 4); in testEventDispatch()
333 verifyRelativeMouseEvent(inOrder, listenerInner, mInner, MotionEvent.ACTION_MOVE, 1, 2); in testEventDispatch()
[all …]
DHoverTest.java27 import static org.mockito.Mockito.inOrder;
163 InOrder inOrder = inOrder(listener); in testHoverMoveMultiple() local
165 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
167 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
169 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
171 inOrder.verify(listener, times(1)).onHover(eq(mInner11), in testHoverMoveMultiple()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java626 assertThat(data).containsExactlyElementsIn(expectedValues).inOrder(); in testScreenBrightness()
749 .containsExactly(1L, 2L, 3L).inOrder();
751 assertThat(atom.getRepeatedIntFieldList()).containsExactly(3, 6).inOrder();
752 assertThat(atom.getRepeatedLongFieldList()).containsExactly(1000L, 1002L).inOrder();
753 assertThat(atom.getRepeatedFloatFieldList()).containsExactly(0.3f, 0.09f).inOrder();
754 assertThat(atom.getRepeatedStringFieldList()).containsExactly("str1", "str2").inOrder();
755 assertThat(atom.getRepeatedBooleanFieldList()).containsExactly(true, false).inOrder();
758 TestExtensionAtomReported.State.ON).inOrder();
778 .containsExactly(1L, 2L, 3L).inOrder();
779 assertThat(atom.getRepeatedIntFieldList()).containsExactly(3, 6).inOrder();
[all …]
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DAlternativeSpansTest.java86 .containsExactly("alt1", "alt2", "alt3").inOrder(); in testAlternativeSpanSetAndGet()
100 assertThat(altSpans.getSpans()).containsExactly(altSpan1, altSpan2, altSpan3).inOrder(); in testAlternativeSpansSetAndGet()
123 .containsExactly(altSpans1, altSpans2).inOrder(); in testBundleWriteAndRead()
/cts/tests/tests/widget/src/android/widget/cts/
DNumberPickerTest.java29 import static org.mockito.Mockito.inOrder;
429 InOrder inOrder = inOrder(mockScrollListener); in testInteractionWithSwipeDown() local
430 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
433 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
436 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeDown()
506 InOrder inOrder = inOrder(mockScrollListener); in testInteractionWithSwipeUp() local
507 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
510 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
513 inOrder.verify(mockScrollListener).onScrollStateChange(mNumberPicker, in testInteractionWithSwipeUp()
DSlidingDrawerTest.java25 import static org.mockito.Mockito.inOrder;
275 InOrder inOrder = inOrder(mockScrollListener); in testSetOnDrawerScrollListener() local
276 inOrder.verify(mockScrollListener).onScrollStarted(); in testSetOnDrawerScrollListener()
277 inOrder.verify(mockScrollListener).onScrollEnded(); in testSetOnDrawerScrollListener()
/cts/tests/credentials/src/android/credentials/cts/unittests/selection/
DGetCredentialProviderInfoTest.java96 credEntryList).inOrder(); in testConstructor()
98 actionList).inOrder(); in testConstructor()
100 authEntryList).inOrder(); in testConstructor()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowInsetsAnimationTestBase.java35 import static org.mockito.Mockito.inOrder;
82 InOrder inOrder = inOrder(activity.mCallback, activity.mListener); in commonAnimationAssertions() local
85 inOrder.verify(callback).onPrepare(eq(callback.lastAnimation)); in commonAnimationAssertions()
86 inOrder.verify(activity.mListener).onApplyWindowInsets(any(), any()); in commonAnimationAssertions()
88 inOrder.verify(callback).onStart(eq(callback.lastAnimation), argThat( in commonAnimationAssertions()
94 inOrder.verify(callback, atLeast(2)).onProgress(any(), argThat( in commonAnimationAssertions()
96 inOrder.verify(callback).onEnd(eq(callback.lastAnimation)); in commonAnimationAssertions()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java36 import static org.mockito.Mockito.inOrder;
332 InOrder inOrder = inOrder(callbacks); in testAppWidgetProviderCallbacks() local
334 inOrder.verify(callbacks).onEnabled(any(Context.class)); in testAppWidgetProviderCallbacks()
335 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
337 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
340 inOrder.verify(callbacks).onUpdate(any(Context.class), in testAppWidgetProviderCallbacks()
342 inOrder.verify(callbacks).onAppWidgetOptionsChanged(any(Context.class), in testAppWidgetProviderCallbacks()
345 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
347 inOrder.verify(callbacks).onDeleted(any(Context.class), in testAppWidgetProviderCallbacks()
349 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/tests/tests/attributionsource/src/android/attributionsource/cts/
DRuntimePermissionsAppOpTrackingTest.kt62 import org.mockito.Mockito.inOrder in <lambda>()
481 val inOrder = inOrder(listener) in <lambda>() constant
493 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
498 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
503 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
509 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
514 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
519 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
633 val inOrder = inOrder(listener) in <lambda>() constant
645 inOrder.verify(listener).onOpActiveChanged(eq(AppOpsManager.OPSTR_RECORD_AUDIO), in <lambda>()
[all …]
/cts/tests/tests/car/src/android/car/cts/
DCarMediaManagerTest.java174 assertThat(mBrowseTracker.mSources).containsExactlyElementsIn(FAKE_1_THEN_FAKE_2).inOrder(); in testDependentPlaybackConfig()
176 .containsExactlyElementsIn(FAKE_1_THEN_FAKE_2).inOrder(); in testDependentPlaybackConfig()
181 assertThat(browsedSources).containsExactlyElementsIn(FAKE_2_THEN_FAKE_1).inOrder(); in testDependentPlaybackConfig()
182 assertThat(playbackSources).containsExactlyElementsIn(FAKE_2_THEN_FAKE_1).inOrder(); in testDependentPlaybackConfig()
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DWindowInsetsAnimationImeTests.java33 import static org.mockito.Mockito.inOrder;
139 InOrder inOrderBar = inOrder(callback, mActivity.mListener); in testAnimationCallbacks_overlapping_opposite()
140 InOrder inOrderIme = inOrder(callback, mActivity.mListener); in testAnimationCallbacks_overlapping_opposite()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DRoutingSessionInfoTest.java202 .containsExactly(TEST_ROUTE_ID_0, TEST_ROUTE_ID_1).inOrder(); in testBuilderAndGettersOfRoutingSessionInfo()
205 .containsExactly(TEST_ROUTE_ID_2, TEST_ROUTE_ID_3).inOrder(); in testBuilderAndGettersOfRoutingSessionInfo()
208 .containsExactly(TEST_ROUTE_ID_4, TEST_ROUTE_ID_5).inOrder(); in testBuilderAndGettersOfRoutingSessionInfo()
211 .containsExactly(TEST_ROUTE_ID_6, TEST_ROUTE_ID_7).inOrder(); in testBuilderAndGettersOfRoutingSessionInfo()
242 .containsExactly(TEST_ROUTE_ID_0, TEST_ROUTE_ID_1).inOrder(); in testBuilderAddRouteMethodsWithBuilderCopyConstructor()
245 .containsExactly(TEST_ROUTE_ID_2, TEST_ROUTE_ID_3).inOrder(); in testBuilderAddRouteMethodsWithBuilderCopyConstructor()
248 .containsExactly(TEST_ROUTE_ID_4, TEST_ROUTE_ID_5).inOrder(); in testBuilderAddRouteMethodsWithBuilderCopyConstructor()
251 .containsExactly(TEST_ROUTE_ID_6, TEST_ROUTE_ID_7).inOrder(); in testBuilderAddRouteMethodsWithBuilderCopyConstructor()
/cts/hostsidetests/packagemanager/domainverification/device/standalone/src/com/android/cts/packagemanager/verify/domain/device/standalone/
DDomainVerificationFilterGroupTests.kt105 assertThat(map).containsExactlyEntriesIn(groupsMap).inOrder() in resolveWithUriRelativeFilterGroups_domainNotVerified()
239 .containsExactlyEntriesIn(groupsMap).inOrder() in assertResolveFilterGroups()
246 .containsExactlyEntriesIn(groupsMap).inOrder() in assertResolveFilterGroups()

123