Home
last modified time | relevance | path

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

123

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java106 InOrder inOrder = inOrder(binder, mBatteryStats); in acquireWifiLockSuccessful() local
108 inOrder.verify(binder).linkToDeath(deathRecipient.capture(), eq(0)); in acquireWifiLockSuccessful()
110 inOrder.verify(mBatteryStats).noteFullWifiLockAcquired(DEFAULT_TEST_UID_1); in acquireWifiLockSuccessful()
112 inOrder.verify(mBatteryStats).noteFullWifiLockAcquiredFromSource(ws); in acquireWifiLockSuccessful()
131 InOrder inOrder = inOrder(binder, mBatteryStats); in releaseWifiLockSuccessful() local
132 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseWifiLockSuccessful()
133 inOrder.verify(mBatteryStats).noteFullWifiLockReleasedFromSource(any(WorkSource.class)); in releaseWifiLockSuccessful()
141 InOrder inOrder = inOrder(binder, mBatteryStats); in releaseWifiLockSuccessful_noBatteryStats() local
142 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseWifiLockSuccessful_noBatteryStats()
150 InOrder inOrder = inOrder(binder, mBatteryStats); in releaseLowLatencyWifiLockSuccessful() local
[all …]
DSarManagerTest.java317 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook() local
323 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
328 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
342 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn() local
351 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
364 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook() local
371 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
378 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
385 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
390 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
[all …]
DWakeupOnboardingTest.java117 InOrder inOrder = Mockito.inOrder(mNotificationManager); in doesNotShowNotificationIfAlreadyShowing() local
118 inOrder.verify(mNotificationManager) in doesNotShowNotificationIfAlreadyShowing()
120 inOrder.verifyNoMoreInteractions(); in doesNotShowNotificationIfAlreadyShowing()
239 InOrder inOrder = Mockito.inOrder(mNotificationManager); in doesNotShowMultipleNotificationsWithin24Hours() local
240 inOrder.verify(mNotificationManager) in doesNotShowMultipleNotificationsWithin24Hours()
242 inOrder.verify(mNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in doesNotShowMultipleNotificationsWithin24Hours()
243 inOrder.verifyNoMoreInteractions(); in doesNotShowMultipleNotificationsWithin24Hours()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java38 import static org.mockito.Mockito.inOrder;
159 final InOrder inOrder = inOrder(mHardware); in testNoSettingsValueDefaultDisabledDoesNotStart() local
160 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultDisabledDoesNotStart()
161 inOrder.verify(mHardware, never()).initOffloadConfig(); in testNoSettingsValueDefaultDisabledDoesNotStart()
162 inOrder.verify(mHardware, never()).initOffloadControl( in testNoSettingsValueDefaultDisabledDoesNotStart()
164 inOrder.verifyNoMoreInteractions(); in testNoSettingsValueDefaultDisabledDoesNotStart()
179 final InOrder inOrder = inOrder(mHardware); in testNoSettingsValueDefaultEnabledDoesStart() local
180 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultEnabledDoesStart()
181 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testNoSettingsValueDefaultEnabledDoesStart()
182 inOrder.verify(mHardware, times(1)).initOffloadControl( in testNoSettingsValueDefaultEnabledDoesStart()
[all …]
/frameworks/base/tests/utils/testutils/java/android/os/test/
DTestLooperTest.java23 import static org.mockito.Mockito.inOrder;
79 InOrder inOrder = inOrder(mHandlerSpy); in testNoTimeMovement() local
88 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
90 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
92 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
94 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
97 inOrder.verify(mHandlerSpy, never()).handleMessage(any(Message.class)); in testNoTimeMovement()
110 InOrder inOrder = inOrder(runnableA, runnableB, runnableC); in testNoTimeMovementExecutor() local
118 inOrder.verify(runnableA).run(); in testNoTimeMovementExecutor()
119 inOrder.verify(runnableB).run(); in testNoTimeMovementExecutor()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetectorTest.java20 import static org.mockito.Mockito.inOrder;
60 InOrder inOrder = inOrder(listener); in onTouchEvent_shouldTriggerCallbackOnFourTaps() local
63 inOrder.verify(listener).onConsecutiveTaps(eq(1)); in onTouchEvent_shouldTriggerCallbackOnFourTaps()
66 inOrder.verify(listener).onConsecutiveTaps(eq(2)); in onTouchEvent_shouldTriggerCallbackOnFourTaps()
69 inOrder.verify(listener).onConsecutiveTaps(eq(3)); in onTouchEvent_shouldTriggerCallbackOnFourTaps()
72 inOrder.verify(listener).onConsecutiveTaps(eq(4)); in onTouchEvent_shouldTriggerCallbackOnFourTaps()
77 InOrder inOrder = inOrder(listener); in onTouchEvent_tapOnDifferentLocation_shouldResetCounter() local
80 inOrder.verify(listener).onConsecutiveTaps(eq(1)); in onTouchEvent_tapOnDifferentLocation_shouldResetCounter()
83 inOrder.verify(listener).onConsecutiveTaps(eq(2)); in onTouchEvent_tapOnDifferentLocation_shouldResetCounter()
86 inOrder.verify(listener).onConsecutiveTaps(eq(1)); in onTouchEvent_tapOnDifferentLocation_shouldResetCounter()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java36 import static org.mockito.Mockito.inOrder;
258 InOrder inOrder = inOrder(mockCallback1, mockCallback2, mockSessionCallback1, in testRequestMacAddresses() local
264 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testRequestMacAddresses()
271 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses()
275 inOrder.verify(mockCallback1).onConnectSuccess(clientId1); in testRequestMacAddresses()
279 inOrder.verify(mockCallback2).onConnectSuccess(clientId2); in testRequestMacAddresses()
284 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
288 inOrder.verify(mockSessionCallback1).onSessionStarted(sessionId.capture()); in testRequestMacAddresses()
292 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
296 inOrder.verify(mockSessionCallback2).onSessionStarted(sessionId.capture()); in testRequestMacAddresses()
[all …]
DWifiAwareDataPathStateManagerTest.java33 import static org.mockito.Mockito.inOrder;
209 InOrder inOrder = inOrder(mMockNative); in testCreateDeleteAllInterfaces() local
214 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testCreateDeleteAllInterfaces()
222 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
237 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
258 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
265 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
287 InOrder inOrder = inOrder(mMockNative, mMockCm, mMockCallback, mMockSessionCallback); in testDataPathPmkWithoutPermission() local
288 InOrder inOrderM = inOrder(mAwareMetricsMock); in testDataPathPmkWithoutPermission()
295 peerDiscoveryMac, inOrder, inOrderM, false); in testDataPathPmkWithoutPermission()
[all …]
/frameworks/base/tests/net/java/android/net/ip/
DIpServerTest.java42 import static org.mockito.Mockito.inOrder;
217 InOrder inOrder = inOrder(mCallback, mNMService); in canBeTethered() local
218 inOrder.verify(mNMService).tetherInterface(IFACE_NAME); in canBeTethered()
219 inOrder.verify(mCallback).updateInterfaceState( in canBeTethered()
221 inOrder.verify(mCallback).updateLinkProperties( in canBeTethered()
231 InOrder inOrder = inOrder(mNMService, mNetd, mStatsService, mCallback); in canUnrequestTethering() local
232 inOrder.verify(mNMService).untetherInterface(IFACE_NAME); in canUnrequestTethering()
233 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTethering()
234 inOrder.verify(mCallback).updateInterfaceState( in canUnrequestTethering()
236 inOrder.verify(mCallback).updateLinkProperties( in canUnrequestTethering()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
DItemGroupTest.java21 import static org.mockito.Mockito.inOrder;
67 final InOrder inOrder = inOrder(observer); in testGroup() local
68 inOrder.verify(observer).onItemRangeInserted(eq(itemGroup), eq(0), eq(1)); in testGroup()
69 inOrder.verify(observer).onItemRangeInserted(eq(itemGroup), eq(1), eq(1)); in testGroup()
128 final InOrder inOrder = inOrder(observer); in testNestedGroup() local
129 inOrder.verify(observer).onItemRangeInserted(eq(parentGroup), eq(0), eq(1)); in testNestedGroup()
130 inOrder.verify(observer).onItemRangeInserted(eq(parentGroup), eq(1), eq(2)); in testNestedGroup()
131 inOrder.verify(observer).onItemRangeInserted(eq(parentGroup), eq(3), eq(1)); in testNestedGroup()
149 final InOrder inOrder = inOrder(observer); in testNestedGroupClearNotification() local
150 inOrder.verify(observer).onItemRangeInserted(eq(parentGroup), eq(0), eq(1)); in testNestedGroupClearNotification()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DAppDataRollbackHelperTest.java70 InOrder inOrder = Mockito.inOrder(installer); in testSnapshotAppData() local
71 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
73 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
75 inOrder.verifyNoMoreInteractions(); in testSnapshotAppData()
90 inOrder = Mockito.inOrder(installer); in testSnapshotAppData()
91 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
94 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
96 inOrder.verifyNoMoreInteractions(); in testSnapshotAppData()
126 InOrder inOrder = Mockito.inOrder(installer); in testRestoreAppDataSnapshot_pendingBackupForUser() local
127 inOrder.verify(installer).restoreAppDataSnapshot( in testRestoreAppDataSnapshot_pendingBackupForUser()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DTimeControllerTest.java20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.inOrder;
189 InOrder inOrder = inOrder(mAlarmManager); in runTestMaybeStartTrackingJobLocked_DelayInOrder() local
192 inOrder.verify(mAlarmManager, times(1)) in runTestMaybeStartTrackingJobLocked_DelayInOrder()
196 inOrder.verify(mAlarmManager, never()) in runTestMaybeStartTrackingJobLocked_DelayInOrder()
199 inOrder.verify(mAlarmManager, never()) in runTestMaybeStartTrackingJobLocked_DelayInOrder()
223 InOrder inOrder = inOrder(mAlarmManager); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady() local
226 inOrder.verify(mAlarmManager, times(1)) in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
230 inOrder.verify(mAlarmManager, never()) in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
233 inOrder.verify(mAlarmManager, never()) in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
265 InOrder inOrder = inOrder(mAlarmManager); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder() local
[all …]
DConnectivityControllerTest.java26 import static com.android.dx.mockito.inline.extended.ExtendedMockito.inOrder;
307 InOrder inOrder = inOrder(mNetPolicyManagerInternal); in testRequestStandbyExceptionLocked() local
310 inOrder.verify(mNetPolicyManagerInternal, times(1)) in testRequestStandbyExceptionLocked()
312 inOrder.verify(mNetPolicyManagerInternal, never()) in testRequestStandbyExceptionLocked()
318 inOrder.verify(mNetPolicyManagerInternal, never()) in testRequestStandbyExceptionLocked()
320 inOrder.verify(mNetPolicyManagerInternal, never()) in testRequestStandbyExceptionLocked()
326 inOrder.verify(mNetPolicyManagerInternal, never()) in testRequestStandbyExceptionLocked()
328 inOrder.verify(mNetPolicyManagerInternal, times(1)) in testRequestStandbyExceptionLocked()
393 InOrder inOrder = inOrder(mNetPolicyManagerInternal); in testEvaluateStateLocked_JobWouldBeReady() local
396 inOrder.verify(mNetPolicyManagerInternal, times(1)) in testEvaluateStateLocked_JobWouldBeReady()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java29 import static org.mockito.Mockito.inOrder;
162 InOrder inOrder = inOrder(mockCallback, mockSessionCallback, mockAwareService); in testConnectFlow() local
171 inOrder.verify(mockAwareService).connect(binder.capture(), any(), in testConnectFlow()
175 inOrder.verify(mockCallback).onAttached(sessionCaptor.capture()); in testConnectFlow()
181 inOrder.verify(mockAwareService).publish(any(), eq(clientId), eq(publishConfig), any()); in testConnectFlow()
185 inOrder.verify(mockAwareService).disconnect(eq(clientId), eq(binder.getValue())); in testConnectFlow()
193 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), isNull(), in testConnectFlow()
207 InOrder inOrder = inOrder(mockCallback, mockSessionCallback, mockAwareService); in testConnectFailure() local
215 inOrder.verify(mockAwareService).connect(any(), any(), clientProxyCallback.capture(), in testConnectFailure()
219 inOrder.verify(mockCallback).onAttachFailed(); in testConnectFailure()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/assist/
DAssistHandleBehaviorControllerTest.java25 import static org.mockito.Mockito.inOrder;
174 InOrder inOrder = inOrder(mMockScreenDecorations); in showAndGo_showsThenHidesHandlesWhenHiding() local
175 inOrder.verify(mMockScreenDecorations).setAssistHintVisible(true); in showAndGo_showsThenHidesHandlesWhenHiding()
176 inOrder.verify(mMockScreenDecorations).setAssistHintVisible(false); in showAndGo_showsThenHidesHandlesWhenHiding()
177 inOrder.verifyNoMoreInteractions(); in showAndGo_showsThenHidesHandlesWhenHiding()
237 InOrder inOrder = inOrder(mMockScreenDecorations); in showAndGoDelayed_showsThenHidesHandlesWhenHiding() local
238 inOrder.verify(mMockScreenDecorations).setAssistHintVisible(true); in showAndGoDelayed_showsThenHidesHandlesWhenHiding()
239 inOrder.verify(mMockScreenDecorations).setAssistHintVisible(false); in showAndGoDelayed_showsThenHidesHandlesWhenHiding()
240 inOrder.verifyNoMoreInteractions(); in showAndGoDelayed_showsThenHidesHandlesWhenHiding()
269 InOrder inOrder = inOrder(mMockScreenDecorations); in showAndGoDelayed_hidesInitiallyThenShowsThenHidesAfterTimeoutWhenHideRequested() local
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DRequestFocusTest.java19 import static org.mockito.Mockito.inOrder;
144 InOrder inOrder = inOrder(mock); in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable() local
145 inOrder.verify(mock).onFocusChange(clearingFocusButton, false); in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
146 inOrder.verify(mock).onGlobalFocusChanged(clearingFocusButton, gainingFocusButton); in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
147 inOrder.verify(mock).onFocusChange(gainingFocusButton, true); in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
187 InOrder inOrder = inOrder(mock); in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable() local
188 inOrder.verify(mock).onFocusChange(clearingFocusButton, false); in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable()
189 inOrder.verify(mock).onGlobalFocusChanged(clearingFocusButton, gainingFocusButton); in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable()
190 inOrder.verify(mock).onFocusChange(gainingFocusButton, true); in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable()
/frameworks/base/startop/iorap/tests/src/com/google/android/startop/iorap/
DIIorapIntegrationTest.kt22 import org.mockito.Mockito.inOrder in <lambda>()
69 val inOrder = inOrder(taskListener) in <lambda>() constant
73 inOrder.verify(taskListener, timeout(100)) in <lambda>()
75 inOrder.verify(taskListener, timeout(100)) in <lambda>()
77 inOrder.verify(taskListener, timeout(100)) in <lambda>()
79 inOrder.verifyNoMoreInteractions() in <lambda>()
/frameworks/base/tests/net/java/android/net/
DIpMemoryStoreTest.java28 import static org.mockito.Mockito.inOrder;
227 InOrder inOrder = inOrder(mMockService); in testEnqueuedIpMsRequests() local
229 inOrder.verify(mMockService).storeNetworkAttributes(eq(l2Key), mNapCaptor.capture(), any()); in testEnqueuedIpMsRequests()
230 inOrder.verify(mMockService).retrieveNetworkAttributes(eq(l2Key), any()); in testEnqueuedIpMsRequests()
231 inOrder.verify(mMockService).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testEnqueuedIpMsRequests()
233 inOrder.verify(mMockService).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testEnqueuedIpMsRequests()
272 InOrder inOrder = inOrder(mMockService); in testEnqueuedIpMsRequestsWithException() local
274 inOrder.verify(mMockService).storeNetworkAttributes(eq(l2Key), mNapCaptor.capture(), any()); in testEnqueuedIpMsRequestsWithException()
275 inOrder.verify(mMockService).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testEnqueuedIpMsRequestsWithException()
277 inOrder.verify(mMockService).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testEnqueuedIpMsRequestsWithException()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/
DInlineLengthsEncryptedChunkEncoderTest.java21 import static org.mockito.Mockito.inOrder;
65 InOrder inOrder = inOrder(mMockBackupWriter); in writeChunkToWriter_writesLengthThenNonceThenData() local
66 inOrder.verify(mMockBackupWriter) in writeChunkToWriter_writesLengthThenNonceThenData()
70 inOrder.verify(mMockBackupWriter).writeBytes(TEST_NONCE); in writeChunkToWriter_writesLengthThenNonceThenData()
71 inOrder.verify(mMockBackupWriter).writeBytes(TEST_DATA); in writeChunkToWriter_writesLengthThenNonceThenData()
DLengthlessEncryptedChunkEncoderTest.java21 import static org.mockito.Mockito.inOrder;
64 InOrder inOrder = inOrder(mMockBackupWriter); in writeChunkToWriter_writesNonceThenData() local
65 inOrder.verify(mMockBackupWriter).writeBytes(TEST_NONCE); in writeChunkToWriter_writesNonceThenData()
66 inOrder.verify(mMockBackupWriter).writeBytes(TEST_DATA); in writeChunkToWriter_writesNonceThenData()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemAdapterTest.java21 import static org.mockito.Mockito.inOrder;
86 final InOrder inOrder = inOrder(observer); in testAdapterNotifications() local
89 inOrder.verify(observer).onChanged(); in testAdapterNotifications()
92 inOrder.verify(observer).onChanged(); in testAdapterNotifications()
95 inOrder.verify(observer).onChanged(); in testAdapterNotifications()
DItemTest.java25 import static org.mockito.Mockito.inOrder;
106 final InOrder inOrder = inOrder(mObserver); in testProperties() local
109 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
112 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
115 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
119 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
124 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsNotedWatcherTest.java34 import static org.mockito.Mockito.inOrder;
65 final InOrder inOrder = inOrder(listener); in testWatchNotedOps() local
66 inOrder.verify(listener, timeout(NOTIFICATION_TIMEOUT_MILLIS) in testWatchNotedOps()
70 inOrder.verify(listener, timeout(NOTIFICATION_TIMEOUT_MILLIS) in testWatchNotedOps()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNat464XlatTest.java23 import static org.mockito.Mockito.inOrder;
223 InOrder inOrder = inOrder(mNetd, mConnectivity);
229 inOrder.verify(mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX));
235 inOrder.verify(mConnectivity).handleUpdateLinkProperties(eq(mNai), c.capture());
243 inOrder.verify(mNetd).clatdStop(eq(BASE_IFACE));
245 inOrder.verify(mConnectivity, times(1)).handleUpdateLinkProperties(eq(mNai), c.capture());
261 inOrder.verifyNoMoreInteractions();
265 inOrder.verify(mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX));
279 inOrder.verify(mConnectivity).handleUpdateLinkProperties(eq(mNai), c.capture());
287 inOrder.verify(mNetd).clatdStop(eq(BASE_IFACE));
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DDataChangedJournalTest.java104 InOrder inOrder = Mockito.inOrder(mConsumer); in forEach_iteratesThroughPackagesInFileInOrder() local
105 inOrder.verify(mConsumer).accept(GMAIL); in forEach_iteratesThroughPackagesInFileInOrder()
106 inOrder.verify(mConsumer).accept(DOCS); in forEach_iteratesThroughPackagesInFileInOrder()
107 inOrder.verifyNoMoreInteractions(); in forEach_iteratesThroughPackagesInFileInOrder()

123