Home
last modified time | relevance | path

Searched refs:runnableCaptor (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/
DDreamOverlayContainerViewControllerTest.java218 ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class); in testBurnInProtectionOffsetsStartAtZero() local
221 runnableCaptor.capture(), eq(BURN_IN_PROTECTION_UPDATE_INTERVAL)); in testBurnInProtectionOffsetsStartAtZero()
222 runnableCaptor.getValue().run(); in testBurnInProtectionOffsetsStartAtZero()
229 ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class); in testBurnInProtectionReschedulesUpdate() local
232 runnableCaptor.capture(), eq(BURN_IN_PROTECTION_UPDATE_INTERVAL)); in testBurnInProtectionReschedulesUpdate()
233 runnableCaptor.getValue().run(); in testBurnInProtectionReschedulesUpdate()
234 verify(mHandler).postDelayed(runnableCaptor.getValue(), BURN_IN_PROTECTION_UPDATE_INTERVAL); in testBurnInProtectionReschedulesUpdate()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayPowerStateTest.kt65 val runnableCaptor = argumentCaptor<Runnable>() in destroys ColorFade on stop() constant
67 verify(mockExecutor).execute(runnableCaptor.capture()) in destroys ColorFade on stop()
68 runnableCaptor.firstValue.run() in destroys ColorFade on stop()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/charging/
DWiredChargingRippleControllerTest.kt97 val runnableCaptor = in testTriggerRipple_UnlockedState() constant
100 verify(rippleView).startRipple(runnableCaptor.capture()) in testTriggerRipple_UnlockedState()
103 runnableCaptor.value.run() in testTriggerRipple_UnlockedState()
199 val runnableCaptor = in testRipple_layoutsCorrectly() constant
202 verify(rippleView).startRipple(runnableCaptor.capture()) in testRipple_layoutsCorrectly()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
DSettingsJankMonitorTest.java118 ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class); in verifyToggleJankMonitored() local
119 verify(mScheduledExecutorService).schedule(runnableCaptor.capture(), in verifyToggleJankMonitored()
121 runnableCaptor.getValue().run(); in verifyToggleJankMonitored()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DImsStateCallbackTest.java173 ArgumentCaptor<Runnable> runnableCaptor = in testImsStateCallbacks() local
181 verify(mBinderCache).listenOnBinder(any(), runnableCaptor.capture()); in testImsStateCallbacks()
196 Runnable runnable = runnableCaptor.getValue(); in testImsStateCallbacks()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DStackStateAnimatorTest.kt62 private val runnableCaptor: ArgumentCaptor<Runnable> = argumentCaptor() constant in com.android.systemui.statusbar.notification.stack.StackStateAnimatorTest
136 /* onFinishedRunnable= */ runnableCaptor.capture(), in startAnimationForEvents_startsHeadsUpDisappearAnim()
142 runnableCaptor.value.run() // execute the end runnable in startAnimationForEvents_startsHeadsUpDisappearAnim()
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionTestBase.java319 ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class); in verifyWakeupMessageSetUpAndGetCallback() local
320 verify(mDeps).newWakeupMessage(eq(mVcnContext), any(), eq(tag), runnableCaptor.capture()); in verifyWakeupMessageSetUpAndGetCallback()
326 return runnableCaptor.getValue(); in verifyWakeupMessageSetUpAndGetCallback()
DVcnGatewayConnectionConnectedStateTest.java647 final ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class); in testSubsequentFailedValidationTriggersSafeMode() local
653 runnableCaptor.capture()); in testSubsequentFailedValidationTriggersSafeMode()
654 runnableCaptor.getValue().run(); in testSubsequentFailedValidationTriggersSafeMode()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DMagnificationModeSwitchTest.java621 final ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class); in assertShowFadingAnimation() local
623 verify(mSpyImageView).postOnAnimation(runnableCaptor.capture()); in assertShowFadingAnimation()
625 verify(mSpyImageView).postOnAnimationDelayed(runnableCaptor.capture(), anyLong()); in assertShowFadingAnimation()
629 runnableCaptor.getValue().run(); in assertShowFadingAnimation()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenersTest.java887 ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class); in testListenerPost_UpdateLifetimeExtended() local
888 verify(mNm.mHandler, times(1)).post(runnableCaptor.capture()); in testListenerPost_UpdateLifetimeExtended()
889 runnableCaptor.getValue().run(); in testListenerPost_UpdateLifetimeExtended()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java1256 final ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class);
1258 doReturn(true).when(mService.mHandler).post(runnableCaptor.capture());
1262 runnableCaptor.getValue().run();
1271 final ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class);
1273 doReturn(true).when(mService.mHandler).post(runnableCaptor.capture());
1275 runnableCaptor.getValue().run();
3172 final ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class);
3173 doReturn(true).when(mService.mHandler).post(runnableCaptor.capture());
3176 runnableCaptor.getValue().run();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifCollectionTest.java1523 ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class); in getInternalNotifUpdateRunnable() local
1524 verify(mMainHandler).post(runnableCaptor.capture()); in getInternalNotifUpdateRunnable()
1525 return runnableCaptor.getValue(); in getInternalNotifUpdateRunnable()