Home
last modified time | relevance | path

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

123456789

/frameworks/base/core/tests/coretests/src/android/util/
DNtpTrustedTimeTest.java218 InOrder inOrder = Mockito.inOrder(ntpTrustedTime); in testForceRefreshDefaultNetwork_noConnectivity() local
219 inOrder.verify(ntpTrustedTime, times(1)).getDefaultNetwork(); in testForceRefreshDefaultNetwork_noConnectivity()
220 inOrder.verify(ntpTrustedTime, times(1)).isNetworkConnected(network); in testForceRefreshDefaultNetwork_noConnectivity()
221 inOrder.verifyNoMoreInteractions(); in testForceRefreshDefaultNetwork_noConnectivity()
234 InOrder inOrder = Mockito.inOrder(ntpTrustedTime); in testForceRefreshDefaultNetwork_noActiveNetwork() local
235 inOrder.verify(ntpTrustedTime, times(1)).getDefaultNetwork(); in testForceRefreshDefaultNetwork_noActiveNetwork()
236 inOrder.verifyNoMoreInteractions(); in testForceRefreshDefaultNetwork_noActiveNetwork()
252 InOrder inOrder = Mockito.inOrder(ntpTrustedTime); in testForceRefreshDefaultNetwork_nullConfig() local
253 inOrder.verify(ntpTrustedTime, times(1)).getDefaultNetwork(); in testForceRefreshDefaultNetwork_nullConfig()
254 inOrder.verify(ntpTrustedTime, times(1)).isNetworkConnected(network); in testForceRefreshDefaultNetwork_nullConfig()
[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/base/tests/utils/testutils/tests/src/android/os/test/
DTestLooperTest.java23 import static org.mockito.Mockito.inOrder;
80 InOrder inOrder = inOrder(mHandlerSpy); in testNoTimeMovement() local
89 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
91 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
93 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
95 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
98 inOrder.verify(mHandlerSpy, never()).handleMessage(any(Message.class)); in testNoTimeMovement()
111 InOrder inOrder = inOrder(runnableA, runnableB, runnableC); in testNoTimeMovementExecutor() local
119 inOrder.verify(runnableA).run(); in testNoTimeMovementExecutor()
120 inOrder.verify(runnableB).run(); in testNoTimeMovementExecutor()
[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.java77 InOrder inOrder = Mockito.inOrder(installer); in testSnapshotAppData() local
78 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
80 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
82 inOrder.verifyNoMoreInteractions(); in testSnapshotAppData()
94 inOrder = Mockito.inOrder(installer); in testSnapshotAppData()
95 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
98 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
100 inOrder.verifyNoMoreInteractions(); in testSnapshotAppData()
143 InOrder inOrder = Mockito.inOrder(installer); in testRestoreAppDataSnapshot_pendingBackupForUser() local
144 inOrder.verify(installer).restoreAppDataSnapshot( in testRestoreAppDataSnapshot_pendingBackupForUser()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/
DAlarmQueueTest.java22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.inOrder;
128 InOrder inOrder = inOrder(mAlarmManager);
131 inOrder.verify(mAlarmManager, timeout(1000).times(1))
134 inOrder.verify(mAlarmManager, never())
137 inOrder.verify(mAlarmManager, never())
146 InOrder inOrder = inOrder(mAlarmManager);
149 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact(
152 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact(
155 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact(
164 InOrder inOrder = inOrder(mAlarmManager);
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DTimeControllerTest.java20 import static com.android.dx.mockito.inline.extended.ExtendedMockito.inOrder;
180 InOrder inOrder = inOrder(mAlarmManager); in runTestMaybeStartTrackingJobLocked_DelayInOrder() local
183 inOrder.verify(mAlarmManager, times(1)) in runTestMaybeStartTrackingJobLocked_DelayInOrder()
187 inOrder.verify(mAlarmManager, never()) in runTestMaybeStartTrackingJobLocked_DelayInOrder()
190 inOrder.verify(mAlarmManager, never()) in runTestMaybeStartTrackingJobLocked_DelayInOrder()
212 InOrder inOrder = inOrder(mAlarmManager); in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady() local
215 inOrder.verify(mAlarmManager, times(1)) in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
219 inOrder.verify(mAlarmManager, never()) in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
222 inOrder.verify(mAlarmManager, never()) in testMaybeStartTrackingJobLocked_DelayInOrder_SomeNotReady()
243 InOrder inOrder = inOrder(mAlarmManager); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder() local
[all …]
DPrefetchControllerTest.java24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.inOrder;
280 InOrder inOrder = inOrder(mAlarmManager); in testConstantsUpdating_ThresholdChangesAlarms() local
282 inOrder.verify(mAlarmManager, timeout(DEFAULT_WAIT_MS).times(1)) in testConstantsUpdating_ThresholdChangesAlarms()
288 inOrder.verify(mAlarmManager, timeout(DEFAULT_WAIT_MS).times(1)) in testConstantsUpdating_ThresholdChangesAlarms()
335 InOrder inOrder = inOrder(mJobSchedulerService); in testConstraintSatisfiedWhenTop() local
343 inOrder.verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop()
351 inOrder.verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop()
359 inOrder.verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop()
405 InOrder inOrder = inOrder(mUsageStatsManagerInternal); in testEstimatedLaunchTimeChangedToLate() local
409 inOrder.verify(mUsageStatsManagerInternal, timeout(DEFAULT_WAIT_MS)) in testEstimatedLaunchTimeChangedToLate()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobNotificationCoordinatorTest.java22 import static com.android.dx.mockito.inline.extended.ExtendedMockito.inOrder;
192 InOrder inOrder = inOrder(mNotificationManagerInternal); in testSingleJob_EnqueueDifferentNotificationId_DetachOnStop() local
196 inOrder.verify(mNotificationManagerInternal) in testSingleJob_EnqueueDifferentNotificationId_DetachOnStop()
202 inOrder.verify(mNotificationManagerInternal, never()) in testSingleJob_EnqueueDifferentNotificationId_DetachOnStop()
205 inOrder.verify(mNotificationManagerInternal) in testSingleJob_EnqueueDifferentNotificationId_DetachOnStop()
221 InOrder inOrder = inOrder(mNotificationManagerInternal); in testSingleJob_EnqueueDifferentNotificationId_RemoveOnStop() local
225 inOrder.verify(mNotificationManagerInternal) in testSingleJob_EnqueueDifferentNotificationId_RemoveOnStop()
231 inOrder.verify(mNotificationManagerInternal) in testSingleJob_EnqueueDifferentNotificationId_RemoveOnStop()
234 inOrder.verify(mNotificationManagerInternal) in testSingleJob_EnqueueDifferentNotificationId_RemoveOnStop()
249 InOrder inOrder = inOrder(mNotificationManagerInternal); in testSingleJob_EnqueueSameNotificationId() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DConstraintChangesTest.kt26 import org.mockito.Mockito.inOrder
51 val inOrder = inOrder(mockQQS1, mockQS1, mockLS1, mockQQS2, mockQS2, mockLS2) in testSumWithoutNulls() constant
53 inOrder.verify(mockQQS1).invoke(constraintSet) in testSumWithoutNulls()
54 inOrder.verify(mockQQS2).invoke(constraintSet) in testSumWithoutNulls()
55 inOrder.verify(mockQS1).invoke(constraintSet) in testSumWithoutNulls()
56 inOrder.verify(mockQS2).invoke(constraintSet) in testSumWithoutNulls()
57 inOrder.verify(mockLS1).invoke(constraintSet) in testSumWithoutNulls()
58 inOrder.verify(mockLS2).invoke(constraintSet) in testSumWithoutNulls()
DConstraintChangeTest.kt26 import org.mockito.Mockito.inOrder
43 val inOrder = inOrder(mock1, mock2) in testSumNonNull() constant
44 inOrder.verify(mock1).invoke(constraintSet) in testSumNonNull()
45 inOrder.verify(mock2).invoke(constraintSet) in testSumNonNull()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/
DAlertDialogWithDelegateTest.kt41 val inOrder = Mockito.inOrder(delegate) in delegateIsCalled_inCorrectOrder() constant
49 inOrder.verify(delegate).beforeCreate(dialog, /* savedInstanceState= */ null) in delegateIsCalled_inCorrectOrder()
50 inOrder.verify(delegate).onCreate(dialog, /* savedInstanceState= */ null) in delegateIsCalled_inCorrectOrder()
51 inOrder.verify(delegate).onStart(dialog) in delegateIsCalled_inCorrectOrder()
52 inOrder.verify(delegate).onWindowFocusChanged(dialog, /* hasFocus= */ true) in delegateIsCalled_inCorrectOrder()
53 inOrder.verify(delegate).onConfigurationChanged(dialog, configuration) in delegateIsCalled_inCorrectOrder()
54 inOrder.verify(delegate).onStop(dialog) in delegateIsCalled_inCorrectOrder()
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/
DSoundTriggerDuplicateModelHandlerTest.java99 InOrder inOrder = Mockito.inOrder(mUnderlying); in loadSoundModel_doesNotThrowResourceContention_whenDifferentUuid() local
102 inOrder.verify(mUnderlying).loadSoundModel(eq(soundModel), eq(mModelCallback)); in loadSoundModel_doesNotThrowResourceContention_whenDifferentUuid()
104 inOrder.verify(mUnderlying).loadSoundModel(eq(soundModelDifferentUuid), eq(mModelCallback)); in loadSoundModel_doesNotThrowResourceContention_whenDifferentUuid()
176 InOrder inOrder = Mockito.inOrder(mUnderlying); in loadPhraseSoundModel_doesNotThrowResourceContention_whenDifferentUuid() local
179 inOrder.verify(mUnderlying).loadPhraseSoundModel(eq(soundModel), eq(mModelCallback)); in loadPhraseSoundModel_doesNotThrowResourceContention_whenDifferentUuid()
181 inOrder.verify(mUnderlying).loadPhraseSoundModel(eq(soundModelDifferentUuid), in loadPhraseSoundModel_doesNotThrowResourceContention_whenDifferentUuid()
234 InOrder inOrder = Mockito.inOrder(mUnderlying); in testDelegation() local
237 inOrder.verify(mUnderlying).getProperties(); in testDelegation()
240 inOrder.verify(mUnderlying).registerCallback(eq(mockGlobalCallback)); in testDelegation()
246 inOrder.verify(mUnderlying) in testDelegation()
[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/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DMagnificationGestureDetectorTest.java101 InOrder inOrder = Mockito.inOrder(mListener); in performSingleTap_invokeCallbacksInOrder() local
102 inOrder.verify(mListener).onStart(ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTap_invokeCallbacksInOrder()
103 inOrder.verify(mListener).onSingleTap(mSpyView); in performSingleTap_invokeCallbacksInOrder()
104 inOrder.verify(mListener).onFinish(ACTION_DOWN_X, ACTION_DOWN_Y); in performSingleTap_invokeCallbacksInOrder()
149 InOrder inOrder = Mockito.inOrder(mListener); in performLongPress_invokeCallbacksInOrder() local
150 inOrder.verify(mListener).onStart(ACTION_DOWN_X, ACTION_DOWN_Y); in performLongPress_invokeCallbacksInOrder()
151 inOrder.verify(mListener).onFinish(ACTION_DOWN_X, ACTION_DOWN_Y); in performLongPress_invokeCallbacksInOrder()
170 InOrder inOrder = Mockito.inOrder(mListener); in performDrag_invokeCallbacksInOrder() local
171 inOrder.verify(mListener).onStart(ACTION_DOWN_X, ACTION_DOWN_Y); in performDrag_invokeCallbacksInOrder()
172 inOrder.verify(mListener).onDrag(mSpyView, dragOffset, 0); in performDrag_invokeCallbacksInOrder()
[all …]
/frameworks/base/core/tests/utiltests/src/android/util/
DSystemConfigFileCommitEventLoggerTest.java62 var inOrder = Mockito.inOrder(logger); in testMultipleWrong() local
63 inOrder.verify(logger).writeLogRecord(longThat( in testMultipleWrong()
65 inOrder.verify(logger).writeLogRecord(longThat( in testMultipleWrong()
81 var inOrder = Mockito.inOrder(logger); in testMultipleRight() local
82 inOrder.verify(logger).writeLogRecord(longThat( in testMultipleRight()
84 inOrder.verify(logger).writeLogRecord(longThat( in testMultipleRight()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/listbuilder/
DShadeListBuilderHelperTest.kt38 .inOrder() in testGetContiguousSubLists()
44 .inOrder() in testGetContiguousSubLists()
51 .inOrder() in testGetContiguousSubLists()
57 .inOrder() in testGetContiguousSubLists()
66 .inOrder() in testGetContiguousSubLists()
74 .inOrder() in testGetContiguousSubLists()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/idle/
DDeviceIdlenessTrackerTest.java23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.inOrder;
180 InOrder inOrder = inOrder(mAlarmManager); in testAlarmSkippedIfAlreadyIdle() local
181 inOrder.verify(mAlarmManager) in testAlarmSkippedIfAlreadyIdle()
198 inOrder.verify(mAlarmManager, never()) in testAlarmSkippedIfAlreadyIdle()
215 InOrder inOrder = inOrder(mAlarmManager); in testAlarmSkippedIfNoThresholdChange() local
216 inOrder.verify(mAlarmManager) in testAlarmSkippedIfNoThresholdChange()
225 inOrder.verify(mAlarmManager, never()) in testAlarmSkippedIfNoThresholdChange()
231 inOrder.verify(mAlarmManager, never()) in testAlarmSkippedIfNoThresholdChange()
249 InOrder inOrder = inOrder(mAlarmManager); in testThresholdChangeWithStablePowerChange() local
250 inOrder.verify(mAlarmManager) in testThresholdChangeWithStablePowerChange()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DFoldStateListenerTest.kt91 val inOrder = Mockito.inOrder(listener) in onStateChanged_stateHalfFoldedThenFolded_notifiesTwice() constant
92 inOrder.verify(listener).onFoldStateChanged(NOT_FOLDED, WILL_NOT_SLEEP) in onStateChanged_stateHalfFoldedThenFolded_notifiesTwice()
93 inOrder.verify(listener).onFoldStateChanged(FOLDED, WILL_GO_TO_SLEEP) in onStateChanged_stateHalfFoldedThenFolded_notifiesTwice()
101 val inOrder = Mockito.inOrder(listener) in onStateChanged_stateFoldedThenHalfFolded_notifiesTwice() constant
102 inOrder.verify(listener).onFoldStateChanged(FOLDED, WILL_GO_TO_SLEEP) in onStateChanged_stateFoldedThenHalfFolded_notifiesTwice()
103 inOrder.verify(listener).onFoldStateChanged(NOT_FOLDED, WILL_NOT_SLEEP) in onStateChanged_stateFoldedThenHalfFolded_notifiesTwice()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java22 import static org.mockito.Mockito.inOrder;
188 InOrder inOrder = inOrder(handler); in testDelayedDispatchNoTimeMove() local
198 inOrder.verify(handler).dispatchMessage(messageA); in testDelayedDispatchNoTimeMove()
199 inOrder.verify(handler).dispatchMessage(messageB); in testDelayedDispatchNoTimeMove()
205 InOrder inOrder = inOrder(handler); in testDelayedMessageDoesntSend() local
217 inOrder.verify(handler).dispatchMessage(messageA); in testDelayedMessageDoesntSend()
218 inOrder.verify(handler).dispatchMessage(messageB); in testDelayedMessageDoesntSend()
225 InOrder inOrder = inOrder(handler); in testMessageSendsAfterDelay() local
238 inOrder.verify(handler).dispatchMessage(messageA); in testMessageSendsAfterDelay()
239 inOrder.verify(handler).dispatchMessage(messageB); in testMessageSendsAfterDelay()
[all …]
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/
DExtendedMockitoRuleTest.java26 import static org.mockito.Mockito.inOrder;
417 InOrder inOrder = inOrder(mStaticMockFixture1, mStaticMockFixture2); in testAddStaticMockFixtures_once() local
423 inOrder.verify(mStaticMockFixture1).setUpMockedClasses(any()); in testAddStaticMockFixtures_once()
424 inOrder.verify(mStaticMockFixture2).setUpMockedClasses(any()); in testAddStaticMockFixtures_once()
426 inOrder.verify(mStaticMockFixture1).setUpMockBehaviors(); in testAddStaticMockFixtures_once()
427 inOrder.verify(mStaticMockFixture2).setUpMockBehaviors(); in testAddStaticMockFixtures_once()
429 inOrder.verify(mStaticMockFixture2).tearDown(); in testAddStaticMockFixtures_once()
430 inOrder.verify(mStaticMockFixture1).tearDown(); in testAddStaticMockFixtures_once()
435 InOrder inOrder = inOrder(mStaticMockFixture1, mStaticMockFixture2, mStaticMockFixture3, in testAddStaticMockFixtures_twice() local
443 inOrder.verify(mStaticMockFixture1).setUpMockedClasses(any()); in testAddStaticMockFixtures_twice()
[all …]
/frameworks/base/core/tests/vibrator/src/android/os/
DVibratorTest.java29 import static org.mockito.Mockito.inOrder;
150 InOrder inOrder = inOrder(mockListener); in onVibratorStateChanged_singleVibrator_forwardsAllCallbacks() local
151 inOrder.verify(mockListener).onVibratorStateChanged(eq(false)); in onVibratorStateChanged_singleVibrator_forwardsAllCallbacks()
152 inOrder.verify(mockListener).onVibratorStateChanged(eq(true)); in onVibratorStateChanged_singleVibrator_forwardsAllCallbacks()
153 inOrder.verify(mockListener).onVibratorStateChanged(eq(false)); in onVibratorStateChanged_singleVibrator_forwardsAllCallbacks()
154 inOrder.verifyNoMoreInteractions(); in onVibratorStateChanged_singleVibrator_forwardsAllCallbacks()
206 InOrder inOrder = inOrder(mockListener); in onVibratorStateChanged_multipleVibrators_stateChangeIsDeduped() local
207 inOrder.verify(mockListener).onVibratorStateChanged(eq(false)); in onVibratorStateChanged_multipleVibrators_stateChangeIsDeduped()
208 inOrder.verify(mockListener).onVibratorStateChanged(eq(true)); in onVibratorStateChanged_multipleVibrators_stateChangeIsDeduped()
209 inOrder.verify(mockListener).onVibratorStateChanged(eq(false)); in onVibratorStateChanged_multipleVibrators_stateChangeIsDeduped()
[all …]
/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/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java40 import static org.mockito.Mockito.inOrder;
175 InOrder inOrder = inOrder(mQsLogger); in testHandleClick_log() local
176 inOrder.verify(mQsLogger).logTileClick(eq(SPEC), anyInt(), anyInt(), eq(0)); in testHandleClick_log()
177 inOrder.verify(mQsLogger).logTileClick(eq(SPEC), anyInt(), anyInt(), eq(1)); in testHandleClick_log()
178 inOrder.verify(mQsLogger).logHandleClick(SPEC, 0); in testHandleClick_log()
179 inOrder.verify(mQsLogger).logHandleClick(SPEC, 1); in testHandleClick_log()
180 inOrder.verify(mQsLogger).logTileClick(eq(SPEC), anyInt(), anyInt(), eq(2)); in testHandleClick_log()
181 inOrder.verify(mQsLogger).logHandleClick(SPEC, 2); in testHandleClick_log()
245 InOrder inOrder = inOrder(mQsLogger); in testHandleSecondaryClick_log() local
246 inOrder.verify(mQsLogger).logTileSecondaryClick(eq(SPEC), anyInt(), anyInt(), eq(0)); in testHandleSecondaryClick_log()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DPersistAtomsStorageTest.java62 import static org.mockito.Mockito.inOrder;
1929 InOrder inOrder = inOrder(mTestFileOutputStream); in getVoiceCallRatUsages_withSavedAtoms() local
1932 getAtomsWritten(inOrder).voiceCallRatUsagePullTimestampMillis); in getVoiceCallRatUsages_withSavedAtoms()
1935 getAtomsWritten(inOrder).voiceCallRatUsagePullTimestampMillis); in getVoiceCallRatUsages_withSavedAtoms()
1938 getAtomsWritten(inOrder).voiceCallSessionPullTimestampMillis); in getVoiceCallRatUsages_withSavedAtoms()
1939 inOrder.verifyNoMoreInteractions(); in getVoiceCallRatUsages_withSavedAtoms()
1978 InOrder inOrder = inOrder(mTestFileOutputStream); in getVoiceCallSessions_withSavedAtoms() local
1981 getAtomsWritten(inOrder).voiceCallSessionPullTimestampMillis); in getVoiceCallSessions_withSavedAtoms()
1984 getAtomsWritten(inOrder).voiceCallSessionPullTimestampMillis); in getVoiceCallSessions_withSavedAtoms()
1987 getAtomsWritten(inOrder).voiceCallRatUsagePullTimestampMillis); in getVoiceCallSessions_withSavedAtoms()
[all …]

123456789