Home
last modified time | relevance | path

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

1234

/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/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java47 import static org.mockito.Mockito.inOrder;
190 final InOrder inOrder = inOrder(mHardware); in testNoSettingsValueDefaultDisabledDoesNotStart() local
191 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultDisabledDoesNotStart()
192 inOrder.verify(mHardware, never()).initOffloadConfig(); in testNoSettingsValueDefaultDisabledDoesNotStart()
193 inOrder.verify(mHardware, never()).initOffloadControl( in testNoSettingsValueDefaultDisabledDoesNotStart()
195 inOrder.verifyNoMoreInteractions(); in testNoSettingsValueDefaultDisabledDoesNotStart()
208 final InOrder inOrder = inOrder(mHardware); in testNoSettingsValueDefaultEnabledDoesStart() local
209 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultEnabledDoesStart()
210 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testNoSettingsValueDefaultEnabledDoesStart()
211 inOrder.verify(mHardware, times(1)).initOffloadControl( in testNoSettingsValueDefaultEnabledDoesStart()
[all …]
DBpfCoordinatorTest.java43 import static org.mockito.Mockito.inOrder;
355 final InOrder inOrder = inOrder(mNetd); in testSetDataLimit() local
357 inOrder.verify(mNetd).tetherOffloadRuleAdd(matches(rule)); in testSetDataLimit()
358 inOrder.verify(mNetd).tetherOffloadSetInterfaceQuota(mobileIfIndex, QUOTA_UNLIMITED); in testSetDataLimit()
359 inOrder.verifyNoMoreInteractions(); in testSetDataLimit()
366 inOrder.verify(mNetd).tetherOffloadSetInterfaceQuota(mobileIfIndex, quota); in testSetDataLimit()
367 inOrder.verifyNoMoreInteractions(); in testSetDataLimit()
396 final InOrder inOrder = inOrder(mNetd); in testSetDataLimitOnRuleChange() local
399 inOrder.verify(mNetd, never()).tetherOffloadSetInterfaceQuota(anyInt(), anyLong()); in testSetDataLimitOnRuleChange()
404 inOrder.verify(mNetd).tetherOffloadRuleAdd(matches(ruleA)); in testSetDataLimitOnRuleChange()
[all …]
DEntitlementManagerTest.java48 import static org.mockito.Mockito.inOrder;
396 private void assertPermissionChangeCallback(InOrder inOrder) { in assertPermissionChangeCallback() argument
397 inOrder.verify(mPermissionChangeCallback, times(1)).run(); in assertPermissionChangeCallback()
400 private void assertNoPermissionChange(InOrder inOrder) { in assertNoPermissionChange() argument
401 inOrder.verifyNoMoreInteractions(); in assertNoPermissionChange()
406 final InOrder inOrder = inOrder(mPermissionChangeCallback); in verifyPermissionResult() local
413 assertPermissionChangeCallback(inOrder); in verifyPermissionResult()
419 assertNoPermissionChange(inOrder); in verifyPermissionResult()
425 assertPermissionChangeCallback(inOrder); in verifyPermissionResult()
431 final InOrder inOrder = inOrder(mPermissionChangeCallback); in verifyPermissionIfAllNotApproved() local
[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;
210 InOrder inOrder = inOrder(mMockNative); in testCreateDeleteAllInterfaces() local
215 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testCreateDeleteAllInterfaces()
223 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
238 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
259 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
266 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
288 InOrder inOrder = inOrder(mMockNative, mMockCm, mMockCallback, mMockSessionCallback); in testDataPathPmkWithoutPermission() local
289 InOrder inOrderM = inOrder(mAwareMetricsMock); in testDataPathPmkWithoutPermission()
296 peerDiscoveryMac, inOrder, inOrderM, false); in testDataPathPmkWithoutPermission()
[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.java71 InOrder inOrder = Mockito.inOrder(installer); in testSnapshotAppData() local
72 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
74 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
76 inOrder.verifyNoMoreInteractions(); in testSnapshotAppData()
91 inOrder = Mockito.inOrder(installer); in testSnapshotAppData()
92 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
95 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
97 inOrder.verifyNoMoreInteractions(); in testSnapshotAppData()
127 InOrder inOrder = Mockito.inOrder(installer); in testRestoreAppDataSnapshot_pendingBackupForUser() local
128 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/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java55 import static org.mockito.Mockito.inOrder;
320 InOrder inOrder = inOrder(mCallback, mNetd); in canBeTethered() local
321 inOrder.verify(mNetd).tetherInterfaceAdd(IFACE_NAME); in canBeTethered()
322 inOrder.verify(mNetd).networkAddInterface(INetd.LOCAL_NET_ID, IFACE_NAME); in canBeTethered()
324 inOrder.verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(IFACE_NAME), in canBeTethered()
326 inOrder.verify(mCallback).updateInterfaceState( in canBeTethered()
328 inOrder.verify(mCallback).updateLinkProperties( in canBeTethered()
338 InOrder inOrder = inOrder(mCallback, mNetd, mAddressCoordinator); in canUnrequestTethering() local
339 inOrder.verify(mNetd).tetherApplyDnsInterfaces(); in canUnrequestTethering()
340 inOrder.verify(mNetd).tetherInterfaceRemove(IFACE_NAME); in canUnrequestTethering()
[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/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DPersistAtomsStorageTest.java35 import static org.mockito.Mockito.inOrder;
472 InOrder inOrder = inOrder(mTestFileOutputStream); in addVoiceCallSession_emptyProto() local
473 inOrder.verify(mTestFileOutputStream, times(1)) in addVoiceCallSession_emptyProto()
475 inOrder.verify(mTestFileOutputStream, times(1)).close(); in addVoiceCallSession_emptyProto()
476 inOrder.verifyNoMoreInteractions(); in addVoiceCallSession_emptyProto()
502 InOrder inOrder = inOrder(mTestFileOutputStream); in addVoiceCallSession_withExistingCalls() local
503 inOrder.verify(mTestFileOutputStream, times(1)) in addVoiceCallSession_withExistingCalls()
505 inOrder.verify(mTestFileOutputStream, times(1)).close(); in addVoiceCallSession_withExistingCalls()
506 inOrder.verifyNoMoreInteractions(); in addVoiceCallSession_withExistingCalls()
544 InOrder inOrder = inOrder(mTestFileOutputStream); in addVoiceCallRatUsage_emptyProto() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/assist/
DAssistHandleBehaviorControllerTest.java25 import static org.mockito.Mockito.inOrder;
194 InOrder inOrder = inOrder(mMockScreenDecorations); in showAndGo_showsThenHidesHandlesWhenHiding() local
195 inOrder.verify(mMockScreenDecorations).setAssistHintVisible(true); in showAndGo_showsThenHidesHandlesWhenHiding()
196 inOrder.verify(mMockScreenDecorations).setAssistHintVisible(false); in showAndGo_showsThenHidesHandlesWhenHiding()
197 inOrder.verifyNoMoreInteractions(); in showAndGo_showsThenHidesHandlesWhenHiding()
257 InOrder inOrder = inOrder(mMockScreenDecorations); in showAndGoDelayed_showsThenHidesHandlesWhenHiding() local
258 inOrder.verify(mMockScreenDecorations).setAssistHintVisible(true); in showAndGoDelayed_showsThenHidesHandlesWhenHiding()
259 inOrder.verify(mMockScreenDecorations).setAssistHintVisible(false); in showAndGoDelayed_showsThenHidesHandlesWhenHiding()
260 inOrder.verifyNoMoreInteractions(); in showAndGoDelayed_showsThenHidesHandlesWhenHiding()
289 InOrder inOrder = inOrder(mMockScreenDecorations); in showAndGoDelayed_hidesInitiallyThenShowsThenHidesAfterTimeoutWhenHideRequested() local
[all …]
/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;
228 InOrder inOrder = inOrder(mMockService); in testEnqueuedIpMsRequests() local
230 inOrder.verify(mMockService).storeNetworkAttributes(eq(l2Key), mNapCaptor.capture(), any()); in testEnqueuedIpMsRequests()
231 inOrder.verify(mMockService).retrieveNetworkAttributes(eq(l2Key), any()); in testEnqueuedIpMsRequests()
232 inOrder.verify(mMockService).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testEnqueuedIpMsRequests()
234 inOrder.verify(mMockService).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testEnqueuedIpMsRequests()
273 InOrder inOrder = inOrder(mMockService); in testEnqueuedIpMsRequestsWithException() local
275 inOrder.verify(mMockService).storeNetworkAttributes(eq(l2Key), mNapCaptor.capture(), any()); in testEnqueuedIpMsRequestsWithException()
276 inOrder.verify(mMockService).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testEnqueuedIpMsRequestsWithException()
278 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()
/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()

1234