Home
last modified time | relevance | path

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

1234

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java130 InOrder inOrder = inOrder(binder, mBatteryStats); in acquireWifiLockSuccessful() local
132 inOrder.verify(binder).linkToDeath(deathRecipient.capture(), eq(0)); in acquireWifiLockSuccessful()
133 inOrder.verify(mBatteryStats).reportFullWifiLockAcquiredFromSource(ws); in acquireWifiLockSuccessful()
151 InOrder inOrder = inOrder(binder, mBatteryStats); in releaseWifiLockSuccessful() local
152 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseWifiLockSuccessful()
153 inOrder.verify(mBatteryStats).reportFullWifiLockReleasedFromSource(any(WorkSource.class)); in releaseWifiLockSuccessful()
161 InOrder inOrder = inOrder(binder, mBatteryStats); in releaseWifiLockSuccessful_noBatteryStats() local
162 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseWifiLockSuccessful_noBatteryStats()
170 InOrder inOrder = inOrder(binder, mBatteryStats); in releaseLowLatencyWifiLockSuccessful() local
171 inOrder.verify(binder).unlinkToDeath(deathRecipient.capture(), eq(0)); in releaseLowLatencyWifiLockSuccessful()
[all …]
DSarManagerTest.java175 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook() local
181 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
186 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
200 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn() local
209 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
222 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook() local
229 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
236 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
243 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
248 inOrder.verify(mWifiNative, never()).selectTxPowerScenario(any(SarInfo.class)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
[all …]
DWakeupOnboardingTest.java111 InOrder inOrder = Mockito.inOrder(mWifiNotificationManager); in doesNotShowNotificationIfAlreadyShowing() local
112 inOrder.verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), in doesNotShowNotificationIfAlreadyShowing()
114 inOrder.verifyNoMoreInteractions(); in doesNotShowNotificationIfAlreadyShowing()
233 InOrder inOrder = Mockito.inOrder(mWifiNotificationManager); in doesNotShowMultipleNotificationsWithin24Hours() local
234 inOrder.verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), in doesNotShowMultipleNotificationsWithin24Hours()
236 inOrder.verify(mWifiNotificationManager).cancel(WakeupNotificationFactory.ONBOARD_ID); in doesNotShowMultipleNotificationsWithin24Hours()
237 inOrder.verifyNoMoreInteractions(); in doesNotShowMultipleNotificationsWithin24Hours()
DWifiCarrierInfoStoreManagerDataTest.java20 import static org.mockito.Mockito.inOrder;
118 InOrder inOrder = inOrder(mDataSource); in testDeserializeOnNewDeviceOrNewUser() local
121 inOrder.verify(mDataSource).reset(); in testDeserializeOnNewDeviceOrNewUser()
127 InOrder inOrder = inOrder(mDataSource); in assertSerializeDeserialize() local
136 inOrder.verify(mDataSource).serializeComplete(); in assertSerializeDeserialize()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java37 import static org.mockito.Mockito.inOrder;
270 InOrder inOrder = inOrder(mockCallback1, mockCallback2, mockSessionCallback1, in testRequestMacAddresses() local
274 inOrder.verify(mMockNativeManager).start(any(Handler.class)); in testRequestMacAddresses()
275 inOrder.verify(mMockNativeManager).tryToGetAware(new WorkSource(Process.WIFI_UID)); in testRequestMacAddresses()
276 inOrder.verify(mMockNativeManager).releaseAware(); in testRequestMacAddresses()
286 inOrder.verify(mMockNativeManager).tryToGetAware(new WorkSource(uid1, callingPackage)); in testRequestMacAddresses()
287 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses()
291 inOrder.verify(mockCallback1).onConnectSuccess(clientId1); in testRequestMacAddresses()
296 inOrder.verify(mockCallback2).onConnectSuccess(clientId2); in testRequestMacAddresses()
300 inOrder.verify(mMockNativeManager).replaceRequestorWs(expectedRequestorWs); in testRequestMacAddresses()
[all …]
DWifiAwareDataPathStateManagerTest.java34 import static org.mockito.Mockito.inOrder;
215 InOrder inOrder = inOrder(mMockNative); in testCreateDeleteAllInterfaces() local
220 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testCreateDeleteAllInterfaces()
228 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
243 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
265 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
272 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
295 InOrder inOrder = inOrder(mMockNative, mMockCm, mMockCallback, mMockSessionCallback); in testDataPathWithPortInfoOnPublisher() local
296 InOrder inOrderM = inOrder(mAwareMetricsMock); in testDataPathWithPortInfoOnPublisher()
300 peerDiscoveryMac, inOrder, inOrderM, false); in testDataPathWithPortInfoOnPublisher()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java49 import static org.mockito.Mockito.inOrder;
198 final InOrder inOrder = inOrder(mHardware); in startOffloadController() local
199 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in startOffloadController()
200 inOrder.verify(mHardware, times(expectStart ? 1 : 0)).initOffloadConfig(); in startOffloadController()
201 inOrder.verify(mHardware, times(expectStart ? 1 : 0)).initOffloadControl( in startOffloadController()
203 inOrder.verifyNoMoreInteractions(); in startOffloadController()
210 final InOrder inOrder = inOrder(mHardware); in stopOffloadController() local
212 inOrder.verify(mHardware, times(1)).stopOffloadControl(); in stopOffloadController()
213 inOrder.verifyNoMoreInteractions(); in stopOffloadController()
263 final InOrder inOrder = inOrder(mHardware); in testSetUpstreamLinkPropertiesWorking() local
[all …]
DBpfCoordinatorTest.java65 import static org.mockito.Mockito.inOrder;
420 private <T> T verifyWithOrder(@Nullable InOrder inOrder, @NonNull T t) { in verifyWithOrder() argument
421 if (inOrder != null) { in verifyWithOrder()
422 return inOrder.verify(t); in verifyWithOrder()
444 private void verifyStartUpstreamIpv6Forwarding(@Nullable InOrder inOrder, int downstreamIfIndex, in verifyStartUpstreamIpv6Forwarding() argument
451 verifyWithOrder(inOrder, mBpfUpstream6Map).insertEntry(key, value); in verifyStartUpstreamIpv6Forwarding()
454 private void verifyStopUpstreamIpv6Forwarding(@Nullable InOrder inOrder, int downstreamIfIndex, in verifyStopUpstreamIpv6Forwarding() argument
459 verifyWithOrder(inOrder, mBpfUpstream6Map).deleteEntry(key); in verifyStopUpstreamIpv6Forwarding()
462 private void verifyNoUpstreamIpv6ForwardingChange(@Nullable InOrder inOrder) throws Exception { in verifyNoUpstreamIpv6ForwardingChange() argument
464 if (inOrder != null) { in verifyNoUpstreamIpv6ForwardingChange()
[all …]
DEntitlementManagerTest.java48 import static org.mockito.Mockito.inOrder;
405 private void assertPermissionChangeCallback(InOrder inOrder) { in assertPermissionChangeCallback() argument
406 inOrder.verify(mPermissionChangeCallback, times(1)).run(); in assertPermissionChangeCallback()
409 private void assertNoPermissionChange(InOrder inOrder) { in assertNoPermissionChange() argument
410 inOrder.verifyNoMoreInteractions(); in assertNoPermissionChange()
415 final InOrder inOrder = inOrder(mPermissionChangeCallback); in verifyPermissionResult() local
422 assertPermissionChangeCallback(inOrder); in verifyPermissionResult()
428 assertNoPermissionChange(inOrder); in verifyPermissionResult()
434 assertPermissionChangeCallback(inOrder); in verifyPermissionResult()
440 final InOrder inOrder = inOrder(mPermissionChangeCallback); in verifyPermissionIfAllNotApproved() local
[all …]
DTetheringTest.java92 import static org.mockito.Mockito.inOrder;
1111 private void verifyDisableTryCellWhenTetheringStop(InOrder inOrder) { in verifyDisableTryCellWhenTetheringStop() argument
1113 inOrder.verify(mUpstreamNetworkMonitor).setTryCell(false); in verifyDisableTryCellWhenTetheringStop()
1116 private void upstreamSelectionTestCommon(final boolean automatic, InOrder inOrder, in upstreamSelectionTestCommon() argument
1126 inOrder.verify(mUpstreamNetworkMonitor).startObserveAllNetworks(); in upstreamSelectionTestCommon()
1127 inOrder.verify(mUpstreamNetworkMonitor).setTryCell(true); in upstreamSelectionTestCommon()
1133 inOrder.verify(mUpstreamNetworkMonitor).setCurrentUpstream(mobile.networkId); in upstreamSelectionTestCommon()
1139 inOrder.verify(mUpstreamNetworkMonitor).setTryCell(false); in upstreamSelectionTestCommon()
1140 inOrder.verify(mUpstreamNetworkMonitor).setCurrentUpstream(wifi.networkId); in upstreamSelectionTestCommon()
1147 InOrder inOrder = inOrder(mCm, mUpstreamNetworkMonitor); in testAutomaticUpstreamSelection() local
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java58 import static org.mockito.Mockito.inOrder;
407 InOrder inOrder = inOrder(mCallback, mNetd); in canBeTethered() local
408 inOrder.verify(mNetd).tetherInterfaceAdd(IFACE_NAME); in canBeTethered()
409 inOrder.verify(mNetd).networkAddInterface(INetd.LOCAL_NET_ID, IFACE_NAME); in canBeTethered()
411 inOrder.verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(IFACE_NAME), in canBeTethered()
413 inOrder.verify(mCallback).updateInterfaceState( in canBeTethered()
415 inOrder.verify(mCallback).updateLinkProperties( in canBeTethered()
425 InOrder inOrder = inOrder(mCallback, mNetd, mAddressCoordinator); in canUnrequestTethering() local
426 inOrder.verify(mNetd).tetherApplyDnsInterfaces(); in canUnrequestTethering()
427 inOrder.verify(mNetd).tetherInterfaceRemove(IFACE_NAME); in canUnrequestTethering()
[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/providers/CallLogProvider/tests/src/com/android/calllogbackup/
DCallLogBackupAgentTest.java121 InOrder inOrder = Mockito.inOrder(mDataOutput); in testWriteState_NoCalls() local
122 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION); in testWriteState_NoCalls()
123 inOrder.verify(mDataOutput).writeInt(0 /* size */); in testWriteState_NoCalls()
134 InOrder inOrder = Mockito.inOrder(mDataOutput); in testWriteState_OneCall() local
135 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION); in testWriteState_OneCall()
136 inOrder.verify(mDataOutput).writeInt(1); in testWriteState_OneCall()
137 inOrder.verify(mDataOutput).writeInt(101 /* call-ID */); in testWriteState_OneCall()
150 InOrder inOrder = Mockito.inOrder(mDataOutput); in testWriteState_MultipleCalls() local
151 inOrder.verify(mDataOutput).writeInt(CallLogBackupAgent.VERSION); in testWriteState_MultipleCalls()
152 inOrder.verify(mDataOutput).writeInt(3 /* size */); in testWriteState_MultipleCalls()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java31 import static org.mockito.Mockito.inOrder;
197 InOrder inOrder = inOrder(mockCallback, mockSessionCallback, mockAwareService); in testConnectFlow() local
206 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), in testConnectFlow()
210 inOrder.verify(mockCallback).onAttached(sessionCaptor.capture()); in testConnectFlow()
216 inOrder.verify(mockAwareService).publish(any(), any(), eq(clientId), eq(publishConfig), in testConnectFlow()
221 inOrder.verify(mockAwareService).disconnect(eq(clientId), eq(binder.getValue())); in testConnectFlow()
229 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), any(), isNull(), in testConnectFlow()
243 InOrder inOrder = inOrder(mockCallback, mockSessionCallback, mockAwareService); in testConnectFailure() local
251 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testConnectFailure()
255 inOrder.verify(mockCallback).onAttachFailed(); in testConnectFailure()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java26 import static org.mockito.Mockito.inOrder;
588 final InOrder inOrder = inOrder(mMockHeaderController); in entityHeader_shouldShowShortRemainingTime() local
589 inOrder.verify(mMockHeaderController).setSecondSummary(expectedSummary); in entityHeader_shouldShowShortRemainingTime()
592 inOrder.verify(mMockHeaderController).setSecondSummary((String) null); in entityHeader_shouldShowShortRemainingTime()
606 final InOrder inOrder = inOrder(mMockHeaderController); in entityHeader_shouldShowExpiryDate() local
607 inOrder.verify(mMockHeaderController).setSecondSummary(expectedSummary); in entityHeader_shouldShowExpiryDate()
610 inOrder.verify(mMockHeaderController).setSecondSummary((String) null); in entityHeader_shouldShowExpiryDate()
1057 private void verifyDisplayedIpv6Addresses(InOrder inOrder, LinkAddress... addresses) { in verifyDisplayedIpv6Addresses() argument
1061 inOrder.verify(mMockIpv6AddressesPref).setSummary(text); in verifyDisplayedIpv6Addresses()
1070 InOrder inOrder = inOrder(mMockIpAddressPref, mMockGatewayPref, mMockSubnetPref, in onLinkPropertiesChanged_updatesFields() local
[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/wifi/
DNetworkRequestDialogFragmentTest.java21 import static org.mockito.Mockito.inOrder;
129 final InOrder inOrder = inOrder(networkRequestDialogFragment); in onMatch_shouldUpdateWifiEntries() local
133 inOrder.verify(networkRequestDialogFragment).updateWifiEntries(); in onMatch_shouldUpdateWifiEntries()
134 inOrder.verify(networkRequestDialogFragment).updateUi(); in onMatch_shouldUpdateWifiEntries()
139 final InOrder inOrder = inOrder(networkRequestDialogFragment); in onWifiStateChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries() local
147 inOrder.verify(networkRequestDialogFragment).updateWifiEntries(); in onWifiStateChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries()
148 inOrder.verify(networkRequestDialogFragment).updateUi(); in onWifiStateChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries()
153 final InOrder inOrder = inOrder(networkRequestDialogFragment); in onWifiEntriesChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries() local
161 inOrder.verify(networkRequestDialogFragment).updateWifiEntries(); in onWifiEntriesChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries()
162 inOrder.verify(networkRequestDialogFragment).updateUi(); in onWifiEntriesChanged_nonEmptyMatchedScanResults_shouldUpdateWifiEntries()
/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()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/keyguard/
DCarKeyguardViewControllerTest.java22 import static org.mockito.Mockito.inOrder;
137 InOrder inOrder = inOrder(mOverlayViewGlobalStateController); in onShow_bouncerNotSecure_keyguardIsNotVisible() local
138 inOrder.verify(mOverlayViewGlobalStateController).showView(eq(mCarKeyguardViewController), in onShow_bouncerNotSecure_keyguardIsNotVisible()
140 inOrder.verify(mOverlayViewGlobalStateController).hideView(eq(mCarKeyguardViewController), in onShow_bouncerNotSecure_keyguardIsNotVisible()
166 InOrder inOrder = inOrder(mOverlayViewGlobalStateController); in onHide_KeyguardNotVisible() local
167 inOrder.verify(mOverlayViewGlobalStateController).showView(eq(mCarKeyguardViewController), in onHide_KeyguardNotVisible()
169 inOrder.verify(mOverlayViewGlobalStateController).hideView(eq(mCarKeyguardViewController), in onHide_KeyguardNotVisible()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/block/
DBlockFileTest.java150 InOrder inOrder = Mockito.inOrder(mockVisitor); in visit() local
151 inOrder.verify(mockVisitor).begin(); in visit()
152 inOrder.verify(mockVisitor).visitFileHeader(magic, version, blockCount); in visit()
153 inOrder.verify(mockVisitor).visitBlockInfo(blockInfo1111); in visit()
154 inOrder.verify(mockVisitor).visitBlockInfo(blockInfo2222); in visit()
155 inOrder.verify(mockVisitor).visitBlock(argThat(new BlockMatcher(block1111))); in visit()
156 inOrder.verify(mockVisitor).visitBlock(argThat(new BlockMatcher(block2222))); in visit()
157 inOrder.verify(mockVisitor).end(); in visit()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeLocalRequestSchedulerTest.java33 import static org.mockito.Mockito.inOrder;
120 InOrder inOrder = inOrder(mMockConsumer); in testProcessOrder() local
126 inOrder.verify(mMockConsumer).onNewProcedureReady(r); in testProcessOrder()
132 InOrder inOrder = inOrder(mMockConsumer); in testPriorityProcessOrder() local
154 inOrder.verify(mMockConsumer).onNewProcedureReady(r); in testPriorityProcessOrder()
157 inOrder.verify(mMockConsumer).onNewProcedureReady(r); in testPriorityProcessOrder()
160 inOrder.verify(mMockConsumer).onNewProcedureReady(r); in testPriorityProcessOrder()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/ui/list/
DDvrHistoryRowAdapterTest.java124 assertThat(getHeaderItemCounts()).containsExactly(2, 3).inOrder(); in testOnScheduledRecordingAdded_existingHeader()
141 assertThat(getHeaderItemCounts()).containsExactly(2, 2, 1).inOrder(); in testOnScheduledRecordingAdded_newHeader_addOldest()
158 assertThat(getHeaderItemCounts()).containsExactly(2, 1, 2).inOrder(); in testOnScheduledRecordingAdded_newHeader_addBetween()
175 assertThat(getHeaderItemCounts()).containsExactly(1, 2, 2).inOrder(); in testOnScheduledRecordingAdded_newHeader_addNewest()
186 assertThat(getHeaderItemCounts()).containsExactly(2, 3).inOrder(); in testOnScheduledRecordingAdded_addRecordedProgram()
197 assertThat(getHeaderItemCounts()).containsExactly(2, 1).inOrder(); in testOnScheduledRecordingRemoved_keepHeader()
209 assertThat(getHeaderItemCounts()).containsExactly(2).inOrder(); in testOnScheduledRecordingRemoved_removeHeader()
218 assertThat(getHeaderItemCounts()).containsExactly(2, 3).inOrder(); in testOnScheduledRecordingRemoved_removeRecordedProgram()
275 assertThat(getHeaderItemCounts()).containsExactly(2, 2).inOrder(); in assertInitialState()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarAppFocusManagerTest.java142 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
143 assertThat(manager2.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
154 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
155 assertThat(manager2.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
165 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
166 assertThat(manager2.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
179 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
180 assertThat(manager2.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
190 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
191 assertThat(manager2.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
[all …]
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java73 import static org.mockito.Mockito.inOrder;
636 private <T> T verifyWithTimeout(InOrder inOrder, T t) {
637 if (inOrder != null) {
638 return inOrder.verify(t, timeout(TEST_TIMEOUT_MS));
644 private void expectAlarmCancelled(InOrder inOrder, OnAlarmListener listener) {
645 inOrder.verify(mAlarm, timeout(TEST_TIMEOUT_MS)).cancel(eq(listener));
648 private OnAlarmListener expectAlarmSet(InOrder inOrder, String tagMatch, long afterSeconds,
655 verifyWithTimeout(inOrder, mAlarm).setExact(
661 private OnAlarmListener expectAlarmSet(InOrder inOrder, String tagMatch, int afterSeconds) {
662 return expectAlarmSet(inOrder, tagMatch, (long) afterSeconds, mIpc.getHandler());
[all …]
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/block/read/
DBlockInfoTest.java39 InOrder inOrder = Mockito.inOrder(mockVisitor); in visit() local
40 inOrder.verify(mockVisitor).begin(); in visit()
41 inOrder.verify(mockVisitor).visit(blockInfo); in visit()
42 inOrder.verify(mockVisitor).end(); in visit()

1234