Home
last modified time | relevance | path

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

123456789

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSarManagerTest.java181 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook() local
187 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
192 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
206 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn() local
215 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
228 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook() local
235 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
242 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
249 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
254 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
[all …]
DWifiLockManagerTest.java35 import static org.mockito.Mockito.inOrder;
170 InOrder inOrder = inOrder(binder, mBatteryStats); in acquireWifiLockSuccessful() local
172 inOrder.verify(binder).linkToDeath(deathRecipient.capture(), eq(0)); in acquireWifiLockSuccessful()
173 inOrder.verify(mBatteryStats).reportFullWifiLockAcquiredFromSource(ws); in acquireWifiLockSuccessful()
195 InOrder inOrder = inOrder(binder, mBatteryStats); in releaseWifiLockSuccessful() local
196 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseWifiLockSuccessful()
197 inOrder.verify(mBatteryStats).reportFullWifiLockReleasedFromSource(any(WorkSource.class)); in releaseWifiLockSuccessful()
205 InOrder inOrder = inOrder(binder, mBatteryStats); in releaseWifiLockSuccessful_noBatteryStats() local
206 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseWifiLockSuccessful_noBatteryStats()
214 InOrder inOrder = inOrder(binder, mBatteryStats); in releaseLowLatencyWifiLockSuccessful() local
[all …]
DExternalPnoScanRequestManagerTest.java29 import static org.mockito.Mockito.inOrder;
101 InOrder inOrder = inOrder(mCallback, mIBinder); in testSetRequest_success() local
106 inOrder.verify(mIBinder).linkToDeath(mExternalPnoScanRequestManager, 0); in testSetRequest_success()
107 inOrder.verify(mCallback).onRegisterSuccess(); in testSetRequest_success()
112 inOrder.verify(mCallback).onRegisterSuccess(); in testSetRequest_success()
117 inOrder.verify(mCallback).onRegisterFailed(REGISTER_PNO_CALLBACK_RESOURCE_BUSY); in testSetRequest_success()
130 InOrder inOrder = inOrder(mCallback, anotherCallback, mIBinder); in testSetRequest_linkToDeathFailed() local
137 inOrder.verify(mIBinder).linkToDeath(mExternalPnoScanRequestManager, 0); in testSetRequest_linkToDeathFailed()
146 InOrder inOrder = inOrder(mCallback, mIBinder); in testRemoveRequest_explicit() local
153 inOrder.verify(mIBinder).linkToDeath(mExternalPnoScanRequestManager, 0); in testRemoveRequest_explicit()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java51 import static org.mockito.Mockito.inOrder;
207 final InOrder inOrder = inOrder(mHardware); in startOffloadController() local
208 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in startOffloadController()
209 inOrder.verify(mHardware, times(expectStart ? 1 : 0)).initOffload( in startOffloadController()
211 inOrder.verifyNoMoreInteractions(); in startOffloadController()
218 final InOrder inOrder = inOrder(mHardware); in stopOffloadController() local
220 inOrder.verify(mHardware, times(1)).stopOffload(); in stopOffloadController()
221 inOrder.verifyNoMoreInteractions(); in stopOffloadController()
271 final InOrder inOrder = inOrder(mHardware); in testSetUpstreamLinkPropertiesWorking() local
272 inOrder.verify(mHardware, times(1)).setLocalPrefixes(mStringArrayCaptor.capture()); in testSetUpstreamLinkPropertiesWorking()
[all …]
DBpfCoordinatorTest.java83 import static org.mockito.Mockito.inOrder;
764 private <T> T verifyWithOrder(@Nullable InOrder inOrder, @NonNull T t) { in verifyWithOrder() argument
765 return verifyWithOrder(inOrder, t, times(1)); in verifyWithOrder()
768 private <T> T verifyWithOrder(@Nullable InOrder inOrder, @NonNull T t, VerificationMode mode) { in verifyWithOrder() argument
769 if (inOrder != null) { in verifyWithOrder()
770 return inOrder.verify(t, mode); in verifyWithOrder()
792 private void verifyStartUpstreamIpv6Forwarding(@Nullable InOrder inOrder, int upstreamIfindex, in verifyStartUpstreamIpv6Forwarding() argument
809 verifyWithOrder(inOrder, mBpfUpstream6Map, times(expected.size())).insertEntry( in verifyStartUpstreamIpv6Forwarding()
820 private void verifyStopUpstreamIpv6Forwarding(@Nullable InOrder inOrder, in verifyStopUpstreamIpv6Forwarding() argument
832 verifyWithOrder(inOrder, mBpfUpstream6Map, times(expected.size())).deleteEntry( in verifyStopUpstreamIpv6Forwarding()
[all …]
DEntitlementManagerTest.java52 import static org.mockito.Mockito.inOrder;
421 private void assertPermissionChangeCallback(InOrder inOrder) { in assertPermissionChangeCallback() argument
422 inOrder.verify(mPermissionChangeCallback, times(1)).run(); in assertPermissionChangeCallback()
425 private void assertNoPermissionChange(InOrder inOrder) { in assertNoPermissionChange() argument
426 inOrder.verifyNoMoreInteractions(); in assertNoPermissionChange()
431 final InOrder inOrder = inOrder(mPermissionChangeCallback); in verifyPermissionResult() local
438 assertPermissionChangeCallback(inOrder); in verifyPermissionResult()
444 assertNoPermissionChange(inOrder); in verifyPermissionResult()
450 assertPermissionChangeCallback(inOrder); in verifyPermissionResult()
456 final InOrder inOrder = inOrder(mPermissionChangeCallback); in verifyPermissionIfAllNotApproved() local
[all …]
DOffloadHalAidlImplTest.java31 import static org.mockito.Mockito.inOrder;
329 final InOrder inOrder = inOrder(mOffloadHalCallback); in testTetheringOffloadCallback() local
330 inOrder.verify(mOffloadHalCallback).onStarted(); in testTetheringOffloadCallback()
331 inOrder.verifyNoMoreInteractions(); in testTetheringOffloadCallback()
335 inOrder.verify(mOffloadHalCallback).onStoppedError(); in testTetheringOffloadCallback()
336 inOrder.verifyNoMoreInteractions(); in testTetheringOffloadCallback()
340 inOrder.verify(mOffloadHalCallback).onStoppedUnsupported(); in testTetheringOffloadCallback()
341 inOrder.verifyNoMoreInteractions(); in testTetheringOffloadCallback()
345 inOrder.verify(mOffloadHalCallback).onSupportAvailable(); in testTetheringOffloadCallback()
346 inOrder.verifyNoMoreInteractions(); in testTetheringOffloadCallback()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java58 import static org.mockito.Mockito.inOrder;
364 InOrder inOrder = inOrder(mCallback, mNetd, mAddressCoordinator); in canBeTetheredAsBluetooth() local
366 inOrder.verify(mAddressCoordinator).requestDownstreamAddress(any(), in canBeTetheredAsBluetooth()
368 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> in canBeTetheredAsBluetooth()
371 inOrder.verify(mNetd).tetherInterfaceAdd(IFACE_NAME); in canBeTetheredAsBluetooth()
372 inOrder.verify(mNetd).networkAddInterface(INetd.LOCAL_NET_ID, IFACE_NAME); in canBeTetheredAsBluetooth()
374 inOrder.verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(IFACE_NAME), in canBeTetheredAsBluetooth()
376 inOrder.verify(mCallback).updateInterfaceState( in canBeTetheredAsBluetooth()
378 inOrder.verify(mCallback).updateLinkProperties( in canBeTetheredAsBluetooth()
388 InOrder inOrder = inOrder(mCallback, mNetd, mAddressCoordinator); in canUnrequestTethering() local
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java48 import static org.mockito.Mockito.inOrder;
404 InOrder inOrder = inOrder(mockCallback1, mockCallback2, mockSessionCallback1, in testRequestMacAddresses() local
408 inOrder.verify(mMockNativeManager).start(any(Handler.class)); in testRequestMacAddresses()
409 inOrder.verify(mMockNativeManager).tryToGetAware(new WorkSource(Process.WIFI_UID)); in testRequestMacAddresses()
410 inOrder.verify(mMockNativeManager).releaseAware(); in testRequestMacAddresses()
420 inOrder.verify(mMockNativeManager).tryToGetAware(new WorkSource(uid1, callingPackage)); in testRequestMacAddresses()
421 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses()
427 inOrder.verify(mockCallback1).onConnectSuccess(clientId1); in testRequestMacAddresses()
432 inOrder.verify(mockCallback2).onConnectSuccess(clientId2); in testRequestMacAddresses()
436 inOrder.verify(mMockNativeManager).replaceRequestorWs(expectedRequestorWs); in testRequestMacAddresses()
[all …]
DWifiAwareDataPathStateManagerTest.java38 import static org.mockito.Mockito.inOrder;
263 InOrder inOrder = inOrder(mMockNative); in testCreateDeleteAllInterfaces() local
268 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testCreateDeleteAllInterfaces()
276 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
291 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
313 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
320 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
341 InOrder inOrder = inOrder(mMockNative, mMockCm, mMockCallback, mMockSessionCallback); in testDataPathWithPortInfoOnSubscriber() local
342 InOrder inOrderM = inOrder(mAwareMetricsMock); in testDataPathWithPortInfoOnSubscriber()
346 peerDiscoveryMac, inOrder, inOrderM, false); in testDataPathWithPortInfoOnSubscriber()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/util/
DStateMachineShimTest.kt28 import org.mockito.Mockito.inOrder
50 val inOrder = inOrder(mSyncSM, mAsyncSM) in makeSyncStateMachine() constant
53 inOrder.verify(mSyncSM).start(mState1) in makeSyncStateMachine()
59 inOrder.verify(mSyncSM).addAllStates(allStates) in makeSyncStateMachine()
62 inOrder.verify(mSyncSM).transitionTo(mState1) in makeSyncStateMachine()
66 inOrder.verify(mSyncSM).processMessage(what, 0, 0, null) in makeSyncStateMachine()
69 inOrder.verify(mSyncSM).processMessage(what, 0, 0, obj) in makeSyncStateMachine()
72 inOrder.verify(mSyncSM).processMessage(what, arg1, 0, null) in makeSyncStateMachine()
75 inOrder.verify(mSyncSM).processMessage(what, arg1, arg2, obj) in makeSyncStateMachine()
86 inOrder.verify(mSyncSM).sendSelfMessage(what, 0, 0, obj) in makeSyncStateMachine()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSLocalAgentTests.kt54 import org.mockito.Mockito.inOrder
248 val inOrder = inOrder(multicastRoutingCoordinatorService) in keepScore() constant
268 inOrder.verify(multicastRoutingCoordinatorService).applyMulticastRoutingConfig( in keepScore()
270 inOrder.verify(multicastRoutingCoordinatorService).applyMulticastRoutingConfig( in keepScore()
275 inOrder.verify(multicastRoutingCoordinatorService) in keepScore()
277 inOrder.verify(multicastRoutingCoordinatorService) in keepScore()
286 val inOrder = inOrder(multicastRoutingCoordinatorService) in keepScore() constant
300 inOrder.verify(multicastRoutingCoordinatorService).applyMulticastRoutingConfig( in keepScore()
302 inOrder.verify(multicastRoutingCoordinatorService).applyMulticastRoutingConfig( in keepScore()
309 inOrder.verify(multicastRoutingCoordinatorService).applyMulticastRoutingConfig( in keepScore()
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/
DDvrScheduleManagerTest.java121 .inOrder(); in testGetConflictingSchedules_conflict()
130 .inOrder(); in testGetConflictingSchedules_conflict()
139 .inOrder(); in testGetConflictingSchedules_conflict()
142 .inOrder(); in testGetConflictingSchedules_conflict()
151 .inOrder(); in testGetConflictingSchedules_conflict()
154 .inOrder(); in testGetConflictingSchedules_conflict()
163 .inOrder(); in testGetConflictingSchedules_conflict()
166 .inOrder(); in testGetConflictingSchedules_conflict()
169 .inOrder(); in testGetConflictingSchedules_conflict()
178 .inOrder(); in testGetConflictingSchedules_conflict()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DRoutingCoordinatorServiceTest.kt30 import org.mockito.Mockito.inOrder in <lambda>()
41 val inOrder = inOrder(mNetd) in <lambda>() constant
44 inOrder.verify(mNetd).ipfwdEnableForwarding(any()) in <lambda>()
45 inOrder.verify(mNetd).tetherAddForward("from1", "to1") in <lambda>()
46 inOrder.verify(mNetd).ipfwdAddInterfaceForward("from1", "to1") in <lambda>()
49 inOrder.verify(mNetd).tetherAddForward("from2", "to1") in <lambda>()
50 inOrder.verify(mNetd).ipfwdAddInterfaceForward("from2", "to1") in <lambda>()
64 inOrder.verify(mNetd).ipfwdRemoveInterfaceForward("from1", "to1") in <lambda>()
65 inOrder.verify(mNetd).tetherRemoveForward("from1", "to1") in <lambda>()
68 inOrder.verify(mNetd).ipfwdRemoveInterfaceForward("from2", "to1") in <lambda>()
[all …]
DClatCoordinatorTest.java40 import static org.mockito.Mockito.inOrder;
402 final InOrder inOrder = inOrder(mNetd, mDeps, mIngressMap, mEgressMap, mCookieTagMap); in testStartStopClatd() local
415 inOrder.verify(mDeps).selectIpv4Address(eq(INIT_V4ADDR_STRING), in testStartStopClatd()
419 inOrder.verify(mDeps).generateIpv6Address(eq(BASE_IFACE), in testStartStopClatd()
423 inOrder.verify(mDeps).openPacketSocket(); in testStartStopClatd()
424 inOrder.verify(mDeps).adoptFd(eq(PACKET_SOCK_FD)); in testStartStopClatd()
425 inOrder.verify(mDeps).openRawSocket6(eq(MARK)); in testStartStopClatd()
426 inOrder.verify(mDeps).adoptFd(eq(RAW_SOCK_FD)); in testStartStopClatd()
427 inOrder.verify(mDeps).getInterfaceIndex(eq(BASE_IFACE)); in testStartStopClatd()
428 inOrder.verify(mDeps).addAnycastSetsockopt( in testStartStopClatd()
[all …]
DNat464XlatTest.java30 import static org.mockito.Mockito.inOrder;
231 private <T> T verifyWithOrder(@Nullable InOrder inOrder, @NonNull T t) {
232 if (inOrder != null) {
233 return inOrder.verify(t);
239 private void verifyClatdStart(@Nullable InOrder inOrder) throws Exception {
241 verifyWithOrder(inOrder, mClatCoordinator)
244 verifyWithOrder(inOrder, mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX));
256 private void verifyClatdStop(@Nullable InOrder inOrder) throws Exception {
258 verifyWithOrder(inOrder, mClatCoordinator).clatStop();
260 verifyWithOrder(inOrder, mNetd).clatdStop(eq(BASE_IFACE));
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java33 import static org.mockito.Mockito.inOrder;
213 InOrder inOrder = inOrder(mockCallback, mockSessionCallback, mockAwareService); in testConnectFlow() local
222 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), in testConnectFlow()
226 inOrder.verify(mockCallback).onAttached(sessionCaptor.capture()); in testConnectFlow()
232 inOrder.verify(mockAwareService).publish(any(), any(), eq(clientId), eq(publishConfig), in testConnectFlow()
237 inOrder.verify(mockAwareService).disconnect(eq(clientId), eq(binder.getValue())); in testConnectFlow()
245 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), any(), isNull(), in testConnectFlow()
259 InOrder inOrder = inOrder(mockCallback, mockSessionCallback, mockAwareService); in testConnectFailure() local
267 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testConnectFailure()
271 inOrder.verify(mockCallback).onAttachFailed(); in testConnectFailure()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DJumpTableTest.kt31 import org.mockito.Mockito.inOrder
89 val inOrder = inOrder(gen) in testCodeGeneration() constant
93 inOrder.verify(gen).defineLabel(name) in testCodeGeneration()
94 inOrder.verify(gen).addLoadFromMemory(R0, slot) in testCodeGeneration()
95 inOrder.verify(gen).addJumpIfR0Equals(0, "foo") in testCodeGeneration()
96 inOrder.verify(gen).addJumpIfR0Equals(1, "bar") in testCodeGeneration()
97 inOrder.verify(gen).addJumpIfR0Equals(2, "baz") in testCodeGeneration()
98 inOrder.verify(gen).addJump(ApfV4Generator.PASS_LABEL) in testCodeGeneration()
99 inOrder.verifyNoMoreInteractions() in testCodeGeneration()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java31 import static org.mockito.Mockito.inOrder;
579 final InOrder inOrder = inOrder(mMockHeaderController); in entityHeader_shouldShowShortRemainingTime() local
580 inOrder.verify(mMockHeaderController).setSecondSummary(expectedSummary); in entityHeader_shouldShowShortRemainingTime()
583 inOrder.verify(mMockHeaderController).setSecondSummary((String) null); in entityHeader_shouldShowShortRemainingTime()
597 final InOrder inOrder = inOrder(mMockHeaderController); in entityHeader_shouldShowExpiryDate() local
598 inOrder.verify(mMockHeaderController).setSecondSummary(expectedSummary); in entityHeader_shouldShowExpiryDate()
601 inOrder.verify(mMockHeaderController).setSecondSummary((String) null); in entityHeader_shouldShowExpiryDate()
1005 private void verifyDisplayedIpv6Addresses(InOrder inOrder, LinkAddress... addresses) { in verifyDisplayedIpv6Addresses() argument
1009 inOrder.verify(mMockIpv6AddressesPref).setSummary(text); in verifyDisplayedIpv6Addresses()
1019 InOrder inOrder = inOrder(mMockIpAddressPref, mMockGatewayPref, mMockSubnetPref, in onLinkPropertiesChanged_updatesFields() local
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/keyguard/
DCarKeyguardViewControllerTest.java22 import static org.mockito.Mockito.inOrder;
193 InOrder inOrder = inOrder(mOverlayViewGlobalStateController); in onShow_bouncerNotSecure_keyguardIsNotVisible() local
194 inOrder.verify(mOverlayViewGlobalStateController).showView(eq(mCarKeyguardViewController), in onShow_bouncerNotSecure_keyguardIsNotVisible()
196 inOrder.verify(mOverlayViewGlobalStateController).hideView(eq(mCarKeyguardViewController), in onShow_bouncerNotSecure_keyguardIsNotVisible()
222 InOrder inOrder = inOrder(mOverlayViewGlobalStateController); in onHide_KeyguardNotVisible() local
223 inOrder.verify(mOverlayViewGlobalStateController).showView(eq(mCarKeyguardViewController), in onHide_KeyguardNotVisible()
225 inOrder.verify(mOverlayViewGlobalStateController).hideView(eq(mCarKeyguardViewController), in onHide_KeyguardNotVisible()
275 InOrder inOrder = inOrder(mOverlayViewGlobalStateController); in onEnterSleepModeAndThenShowKeyguard_bouncerNotSecure_keyguardIsVisible() local
276 inOrder.verify(mOverlayViewGlobalStateController).showView(eq(mCarKeyguardViewController), in onEnterSleepModeAndThenShowKeyguard_bouncerNotSecure_keyguardIsVisible()
278 inOrder.verify(mOverlayViewGlobalStateController, never()).hideView( in onEnterSleepModeAndThenShowKeyguard_bouncerNotSecure_keyguardIsVisible()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DIpMemoryStoreTest.java28 import static org.mockito.Mockito.inOrder;
232 InOrder inOrder = inOrder(mMockService); in testEnqueuedIpMsRequests() local
234 inOrder.verify(mMockService).storeNetworkAttributes(eq(l2Key), mNapCaptor.capture(), any()); in testEnqueuedIpMsRequests()
235 inOrder.verify(mMockService).retrieveNetworkAttributes(eq(l2Key), any()); in testEnqueuedIpMsRequests()
236 inOrder.verify(mMockService).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testEnqueuedIpMsRequests()
238 inOrder.verify(mMockService).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testEnqueuedIpMsRequests()
277 InOrder inOrder = inOrder(mMockService); in testEnqueuedIpMsRequestsWithException() local
279 inOrder.verify(mMockService).storeNetworkAttributes(eq(l2Key), mNapCaptor.capture(), any()); in testEnqueuedIpMsRequestsWithException()
280 inOrder.verify(mMockService).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testEnqueuedIpMsRequestsWithException()
282 inOrder.verify(mMockService).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testEnqueuedIpMsRequestsWithException()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBackupHelperTest.java34 import static org.mockito.Mockito.inOrder;
316 final InOrder inOrder = inOrder(mBatteryOptimizeUtils); in restoreOptimizationMode_invalidModeFormat_skipRestore() local
317 inOrder.verify(mBatteryOptimizeUtils).setAppUsageState(MODE_RESTRICTED, Action.RESTORE); in restoreOptimizationMode_invalidModeFormat_skipRestore()
318 inOrder.verify(mBatteryOptimizeUtils, never()) in restoreOptimizationMode_invalidModeFormat_skipRestore()
341 final InOrder inOrder = inOrder(mBatteryOptimizeUtils); in restoreOptimizationMode_restoreExpectedModes() local
342 inOrder.verify(mBatteryOptimizeUtils).setAppUsageState(MODE_RESTRICTED, Action.RESTORE); in restoreOptimizationMode_restoreExpectedModes()
343 inOrder.verify(mBatteryOptimizeUtils).setAppUsageState(MODE_UNRESTRICTED, Action.RESTORE); in restoreOptimizationMode_restoreExpectedModes()
344 inOrder.verify(mBatteryOptimizeUtils, never()) in restoreOptimizationMode_restoreExpectedModes()
358 final InOrder inOrder = inOrder(mBackupDataOutput); in performBackup_backupDeviceBuildInformation() local
359 verifyBackupData(inOrder, BatteryBackupHelper.KEY_BUILD_BRAND, Build.BRAND); in performBackup_backupDeviceBuildInformation()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsServiceTypeClientTests.java43 import static org.mockito.Mockito.inOrder;
702 InOrder inOrder = inOrder(mockListenerOne, mockSocketClient, mockDeps); in testCombinedSubtypesQueriedWithMultipleListeners() local
708 inOrder.verify(mockSocketClient, times(2)).sendPacketRequestingUnicastResponse( in testCombinedSubtypesQueriedWithMultipleListeners()
722 inOrder.verify(mockDeps).removeMessages(any(), eq(EVENT_START_QUERYTASK)); in testCombinedSubtypesQueriedWithMultipleListeners()
727 inOrder.verify(mockSocketClient, times(2)).sendPacketRequestingUnicastResponse( in testCombinedSubtypesQueriedWithMultipleListeners()
731 inOrder.verify(mockDeps).sendMessageDelayed(any(), any(), anyLong()); in testCombinedSubtypesQueriedWithMultipleListeners()
753 inOrder.verify(mockSocketClient, times(2)).sendPacketRequestingMulticastResponse( in testCombinedSubtypesQueriedWithMultipleListeners()
1106 InOrder inOrder = inOrder(mockListenerOne); in testProcessResponse_InOrder() local
1130 inOrder.verify(mockListenerOne).onServiceNameDiscovered( in testProcessResponse_InOrder()
1143 inOrder.verify(mockListenerOne).onServiceFound( in testProcessResponse_InOrder()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DMatrixTest.java44 assertThat(matrix.data).usingTolerance(EPSILON).containsExactly(expected.data).inOrder(); in invert_invertsMatrixOntoItself()
113 .inOrder(); in newRigidTransform_isEquivalentToTrsWithoutScale()
114 assertThat(transform.data).usingTolerance(EPSILON).containsExactly(trs.data).inOrder(); in newRigidTransform_isEquivalentToTrsWithoutScale()
139 assertThat(trs.data).usingTolerance(EPSILON).containsExactly(product.data).inOrder(); in newTrs_isEquivalentToMultiplyingTranslationRotationScale()
150 .inOrder(); in newScale_uniformScaleMatricesAreEqual()
160 .inOrder(); in invert_identityInverseIsIdentity()
175 .containsExactly(Matrix.identity().data).inOrder(); in invert_multiplyWithInverseIsIdentity()
179 .containsExactly(Matrix.identity().data).inOrder(); in invert_multiplyWithInverseIsIdentity()
193 assertThat(product.data).usingTolerance(EPSILON).containsExactly(a.data).inOrder(); in multiply_multiplyWithIdentityIsNoOp()
196 assertThat(product.data).usingTolerance(EPSILON).containsExactly(a.data).inOrder(); in multiply_multiplyWithIdentityIsNoOp()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DRadioButtonPickerFragmentTest.java109 InOrder inOrder = Mockito.inOrder(mFragment); in staticPreferencesPrepended_addedFirst() local
110 inOrder.verify(mFragment).addStaticPreferences(any()); in staticPreferencesPrepended_addedFirst()
111 inOrder.verify(mFragment).getRadioButtonPreferenceCustomLayoutResId(); in staticPreferencesPrepended_addedFirst()
119 InOrder inOrder = Mockito.inOrder(mFragment); in staticPreferencesAppended_addedLast() local
120 inOrder.verify(mFragment).mayCheckOnlyRadioButton(); in staticPreferencesAppended_addedLast()
121 inOrder.verify(mFragment).addStaticPreferences(any()); in staticPreferencesAppended_addedLast()

123456789