Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java26 import static org.mockito.Mockito.inOrder;
891 private void verifyDisplayedIpv6Addresses(InOrder inOrder, LinkAddress... addresses) { in verifyDisplayedIpv6Addresses() argument
895 inOrder.verify(mockIpv6AddressesPref).setSummary(text); in verifyDisplayedIpv6Addresses()
903 InOrder inOrder = inOrder(mockIpAddressPref, mockGatewayPref, mockSubnetPref, in onLinkPropertiesChanged_updatesFields() local
910 verifyDisplayedIpv6Addresses(inOrder, Constants.IPV6_LINKLOCAL); in onLinkPropertiesChanged_updatesFields()
911 inOrder.verify(mockIpv6Category).setVisible(true); in onLinkPropertiesChanged_updatesFields()
915 inOrder.verify(mockGatewayPref).setSummary(Constants.IPV4_GATEWAY.getHostAddress()); in onLinkPropertiesChanged_updatesFields()
916 inOrder.verify(mockGatewayPref).setVisible(true); in onLinkPropertiesChanged_updatesFields()
921 inOrder.verify(mockIpAddressPref).setSummary(asString(Constants.IPV4_ADDR)); in onLinkPropertiesChanged_updatesFields()
922 inOrder.verify(mockIpAddressPref).setVisible(true); in onLinkPropertiesChanged_updatesFields()
[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 …]
DScheduledRecordingTest.java107 assertThat(sortByPriority(c, b, a)).containsExactly(a, b, c).inOrder(); in testBuild_priority()
111 assertThat(sortByPriority(a, b, c)).containsExactly(b, c, a).inOrder(); in testBuild_priority()
/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/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java72 import static org.mockito.Mockito.inOrder;
485 private <T> T verifyWithTimeout(InOrder inOrder, T t) {
486 if (inOrder != null) {
487 return inOrder.verify(t, timeout(TEST_TIMEOUT_MS));
493 private void expectAlarmCancelled(InOrder inOrder, OnAlarmListener listener) {
494 inOrder.verify(mAlarm, timeout(TEST_TIMEOUT_MS)).cancel(eq(listener));
497 private OnAlarmListener expectAlarmSet(InOrder inOrder, String tagMatch, int afterSeconds) {
503 verifyWithTimeout(inOrder, mAlarm).setExact(
1422 private LinkProperties doIpv6OnlyProvisioning(InOrder inOrder, ByteBuffer ra) throws Exception {
1431 verifyWithTimeout(inOrder, mCb).onProvisioningSuccess(captor.capture());
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DRadioButtonPickerFragmentTest.java108 InOrder inOrder = Mockito.inOrder(mFragment); in staticPreferencesPrepended_addedFirst() local
109 inOrder.verify(mFragment).addStaticPreferences(any()); in staticPreferencesPrepended_addedFirst()
110 inOrder.verify(mFragment).getRadioButtonPreferenceCustomLayoutResId(); in staticPreferencesPrepended_addedFirst()
118 InOrder inOrder = Mockito.inOrder(mFragment); in staticPreferencesAppended_addedLast() local
119 inOrder.verify(mFragment).mayCheckOnlyRadioButton(); in staticPreferencesAppended_addedLast()
120 inOrder.verify(mFragment).addStaticPreferences(any()); in staticPreferencesAppended_addedLast()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeLocalRequestSchedulerTest.java25 import static org.mockito.Mockito.inOrder;
96 InOrder inOrder = inOrder(mMockConsumer); in testProcessOrder() local
102 inOrder.verify(mMockConsumer).onNewProcedureReady(r); in testProcessOrder()
108 InOrder inOrder = inOrder(mMockConsumer); in testAddRequestToFrontProcessOrder() local
124 inOrder.verify(mMockConsumer).onNewProcedureReady(mockHighPriorityRequestArray[i]); in testAddRequestToFrontProcessOrder()
127 inOrder.verify(mMockConsumer).onNewProcedureReady(r); in testAddRequestToFrontProcessOrder()
/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/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsHeaderControllerTest.java22 import static org.mockito.Mockito.inOrder;
109 InOrder inOrder = inOrder(mHeaderController); in connectionStatusChangesWhileScreenOpen() local
113 inOrder.verify(mHeaderController) in connectionStatusChangesWhileScreenOpen()
118 inOrder.verify(mHeaderController).setSummary((CharSequence) null); in connectionStatusChangesWhileScreenOpen()
123 inOrder.verify(mHeaderController) in connectionStatusChangesWhileScreenOpen()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRoutineWatchEvaluatorTest.java74 assertThat(RoutineWatchEvaluator.splitTextToWords("")).containsExactly().inOrder(); in testSplitTextToWords()
77 .inOrder(); in testSplitTextToWords()
80 .inOrder(); in testSplitTextToWords()
83 .inOrder(); in testSplitTextToWords()
86 .inOrder(); in testSplitTextToWords()
89 .inOrder(); in testSplitTextToWords()
90 assertThat(RoutineWatchEvaluator.splitTextToWords("A.I.")).containsExactly("A.I").inOrder(); in testSplitTextToWords()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DCameraManagerTest.java122 InOrder inOrder = Mockito.inOrder(wrapper); in testOpenCamera() local
123 inOrder.verify(wrapper).open(1); in testOpenCamera()
124 inOrder.verify(wrapper).release(backCamera); in testOpenCamera()
125 inOrder.verify(wrapper).open(0); in testOpenCamera()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionServiceTest.java29 import static org.mockito.Mockito.inOrder;
280 InOrder inOrder = inOrder(mCarInputService); in addedKeyEventHandler_registersWithCarInputService() local
289 inOrder.verify(mCarInputService) in addedKeyEventHandler_registersWithCarInputService()
301 inOrder.verify(mCarInputService).setProjectionKeyEventHandler( in addedKeyEventHandler_registersWithCarInputService()
325 inOrder.verify(mCarInputService).setProjectionKeyEventHandler( in addedKeyEventHandler_registersWithCarInputService()
330 inOrder.verify(mCarInputService).setProjectionKeyEventHandler(eq(null), any()); in addedKeyEventHandler_registersWithCarInputService()
DBluetoothProfileDeviceManagerTest.java861 InOrder ordered = inOrder(mMockProxies); in testAutoConnectSeveralDevices_attemptsToConnectEachDevice()
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarProjectionManagerTest.java27 import static org.mockito.Mockito.inOrder;
198 InOrder inOrder = inOrder(eventHandler); in keyEventHandler_whenRegisteredAgain_replacesEventList() local
205 inOrder.verify(eventHandler) in keyEventHandler_whenRegisteredAgain_replacesEventList()
213 inOrder.verify(eventHandler, never()) in keyEventHandler_whenRegisteredAgain_replacesEventList()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java127 Mockito.inOrder(mClientManager, mSubscriberService, mVehicleHal); in initHalService()
615 InOrder inOrder = Mockito.inOrder(mClientManager, mVehicleHal); in testHandleStartSessionEvent() local
616 inOrder.verify(mClientManager).onHalDisconnected(); in testHandleStartSessionEvent()
617 inOrder.verify(mVehicleHal).set(response); in testHandleStartSessionEvent()
618 inOrder.verify(mClientManager).onHalConnected(mPublisherClient, mSubscriberClient); in testHandleStartSessionEvent()
621 inOrder.verify(mVehicleHal).set(createHalMessage( in testHandleStartSessionEvent()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DPreprocessingManagerTest.java91 InOrder listenerInOrder = Mockito.inOrder(mCallStateListener1); in addCallStateListener_preCall_triggerChanges()
157 InOrder listenerInOrder1 = Mockito.inOrder(mCallStateListener1); in multipleCallStateListeners_triggeredAppropriately()
158 InOrder listenerInOrder2 = Mockito.inOrder(mCallStateListener2); in multipleCallStateListeners_triggeredAppropriately()
/packages/apps/TV/tests/robotests/src/com/android/tv/util/
DTvProviderUtilsTest.java68 .inOrder(); in testAddExtraColumnsToProjection()
90 .inOrder(); in testAddExtraColumnsToProjection_extraColumnExists()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPreferenceControllerTest.java27 import static org.mockito.Mockito.inOrder;
168 InOrder orderVerifier = inOrder(mPreference); in onUxRestrictionsChanged_created_restricted_unrestricted_preferenceEnabled()