/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
D | MockExecutorHandlerTest.kt | 37 val runnable = RunnableImpl() in testNoDelay() constant 39 assertEquals(0, runnable.mRunCount) in testNoDelay() 42 handler.post(runnable) in testNoDelay() 43 assertEquals(0, runnable.mRunCount) in testNoDelay() 46 handler.post(runnable) in testNoDelay() 47 assertEquals(0, runnable.mRunCount) in testNoDelay() 53 assertEquals(1, runnable.mRunCount) in testNoDelay() 58 assertEquals(2, runnable.mRunCount) in testNoDelay() 66 handler.post(runnable) in testNoDelay() 67 handler.post(runnable) in testNoDelay() [all …]
|
D | FakeExecutorTest.java | 54 RunnableImpl runnable = new RunnableImpl(); in testNoDelay() local 57 assertEquals(0, runnable.mRunCount); in testNoDelay() 60 fakeExecutor.execute(runnable); in testNoDelay() 61 assertEquals(0, runnable.mRunCount); in testNoDelay() 64 fakeExecutor.execute(runnable); in testNoDelay() 65 assertEquals(0, runnable.mRunCount); in testNoDelay() 71 assertEquals(1, runnable.mRunCount); in testNoDelay() 76 assertEquals(2, runnable.mRunCount); in testNoDelay() 84 fakeExecutor.execute(runnable); in testNoDelay() 85 fakeExecutor.execute(runnable); in testNoDelay() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | ShellExecutor.java | 36 void execute(Runnable runnable); in execute() argument 45 default void executeBlocking(Runnable runnable, int waitTimeout, TimeUnit waitTimeUnit) in executeBlocking() argument 49 runnable.run(); in executeBlocking() 61 default void executeBlocking(Runnable runnable) throws InterruptedException { in executeBlocking() argument 62 executeBlocking(runnable, 2, TimeUnit.SECONDS); in executeBlocking() 69 default <T> T executeBlockingForResult(Supplier<T> runnable, Class clazz) { in executeBlockingForResult() argument 73 result[0] = runnable.get(); in executeBlockingForResult() 88 void executeDelayed(Runnable runnable, long delayMillis); in executeDelayed() argument 93 void removeCallbacks(Runnable runnable); in removeCallbacks() argument 98 boolean hasCallback(Runnable runnable); in hasCallback() argument
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
D | MockExecutorHandler.kt | 50 val runnable = invocation.getArgument<Runnable>(0) in <lambda>() constant 56 cancellations.get(runnable)?.removeIf { it.token == token } in <lambda>() 57 cancellations.remove(runnable, emptyList()) in <lambda>() 58 runnable.run() in <lambda>() 63 .getOrPut(runnable) { CopyOnWriteArrayList() } in <lambda>() 70 val runnable = invocation.getArgument<Runnable>(0) in <lambda>() constant 76 cancellations.get(runnable)?.removeIf { it.token == token } in <lambda>() 77 cancellations.remove(runnable, emptyList()) in <lambda>() 78 runnable.run() in <lambda>() 83 .getOrPut(runnable) { CopyOnWriteArrayList() } in <lambda>() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | ExponentialBackoff.java | 40 public boolean postDelayed(Runnable runnable, long delayMillis) { 41 return mHandler.postDelayed(runnable, delayMillis); 45 public void removeCallbacks(Runnable runnable) { 46 mHandler.removeCallbacks(runnable); 54 boolean postDelayed(Runnable runnable, long delayMillis); in postDelayed() argument 55 void removeCallbacks(Runnable runnable); in removeCallbacks() argument 63 @NonNull Runnable runnable) { in ExponentialBackoff() argument 64 this(initialDelayMs, maximumDelayMs, multiplier, new Handler(looper), runnable); in ExponentialBackoff() 72 @NonNull Runnable runnable) { in ExponentialBackoff() argument 78 mRunnable = runnable; in ExponentialBackoff()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/ |
D | SyncExecutor.java | 27 public void execute(Runnable runnable) { in execute() argument 28 runnable.run(); in execute() 32 public void executeDelayed(Runnable runnable, long delayMillis) { in executeDelayed() argument 33 runnable.run(); in executeDelayed() 37 public void removeCallbacks(Runnable runnable) { in removeCallbacks() argument 41 public boolean hasCallback(Runnable runnable) { in hasCallback() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/mediator/ |
D | ScreenOnCoordinatorTest.kt | 50 private lateinit var runnable: Runnable variable in com.android.keyguard.mediator.ScreenOnCoordinatorTest 86 screenOnCoordinator.onScreenTurningOn(runnable) in testUnfoldTransitionEnabledDrawnTasksReady_onScreenTurningOn_callsDrawnCallback() 93 verify(runnable).run() in testUnfoldTransitionEnabledDrawnTasksReady_onScreenTurningOn_callsDrawnCallback() 98 screenOnCoordinator.onScreenTurningOn(runnable) in testTasksReady_onScreenTurningOnAndTurnedOnEventsCalledTogether_callsDrawnCallback() 106 verify(runnable).run() in testTasksReady_onScreenTurningOnAndTurnedOnEventsCalledTogether_callsDrawnCallback() 111 screenOnCoordinator.onScreenTurningOn(runnable) in testTasksReady_onScreenTurnedOnAndTurnedOffBeforeCompletion_doesNotCallDrawnCallback() 121 verify(runnable, never()).run() in testTasksReady_onScreenTurnedOnAndTurnedOffBeforeCompletion_doesNotCallDrawnCallback() 132 screenOnCoordinator.onScreenTurningOn(runnable) in testUnfoldTransitionDisabledDrawnTasksReady_onScreenTurningOn_callsDrawnCallback() 136 verify(runnable).run() in testUnfoldTransitionDisabledDrawnTasksReady_onScreenTurningOn_callsDrawnCallback() 146 screenOnCoordinator.onScreenTurningOn(runnable) in testUnfoldTransitionDisabledDrawnTasksReady_onScreenTurningOn_usesMainHandler() [all …]
|
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/ |
D | TestThreadingDomain.java | 43 @NonNull public final Runnable runnable; field in TestThreadingDomain.QueuedRunnable 47 QueuedRunnable(@NonNull Runnable runnable, @Nullable Object token, in QueuedRunnable() argument 49 this.runnable = Objects.requireNonNull(runnable); in QueuedRunnable() 57 + "runnable=" + runnable in toString() 100 mQueue.removeIf(runnable -> runnable.token != null && runnable.token == token); in removeQueuedRunnables() 143 queued.runnable.run(); in executeNext()
|
/frameworks/base/services/core/java/com/android/server/incident/ |
D | RequestQueue.java | 66 public final Runnable runnable; field in RequestQueue.Rec 71 Rec(IBinder key, boolean value, Runnable runnable) { in Rec() argument 74 this.runnable = runnable; in Rec() 94 copy.get(i).runnable.run(); 130 public void enqueue(IBinder key, boolean value, Runnable runnable) { in enqueue() argument 146 mPending.add(new Rec(key, value, runnable)); in enqueue()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | RunQueue.java | 51 final Runnable runnable = new Runnable() { in onCreate() local 56 view.post(runnable); in onCreate() 57 view.post(runnable); in onCreate() 58 view.post(runnable); in onCreate() 59 view.post(runnable); in onCreate() 60 view.removeCallbacks(runnable); in onCreate()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | OneShotPreDrawListener.java | 41 @NonNull Runnable runnable) { in OneShotPreDrawListener() argument 44 mRunnable = runnable; in OneShotPreDrawListener() 57 public static OneShotPreDrawListener add(@NonNull View view, @NonNull Runnable runnable) { in add() argument 58 return add(view, true, runnable); in add() 71 @NonNull Runnable runnable) { in add() argument 72 OneShotPreDrawListener listener = new OneShotPreDrawListener(view, returnValue, runnable); in add()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | HandlerInjector.java | 33 public void postDelayed(Runnable runnable, long delayMillis) { in postDelayed() argument 34 mHandler.postDelayed(runnable, delayMillis); in postDelayed() 38 public void removeCallbacks(Runnable runnable) { in removeCallbacks() argument 39 mHandler.removeCallbacks(runnable); in removeCallbacks()
|
D | ThreadUtils.java | 74 public static ListenableFuture postOnBackgroundThread(@NonNull Runnable runnable) { in postOnBackgroundThread() argument 75 return getBackgroundExecutor().submit(runnable); in postOnBackgroundThread() 98 public static void postOnMainThread(@NonNull Runnable runnable) { in postOnMainThread() argument 99 getUiThreadHandler().post(runnable); in postOnMainThread()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/lifecycle/ |
D | InstantTaskExecutorRule.kt | 38 override fun executeOnDiskIO(runnable: Runnable) { in starting() 39 runnable.run() in starting() 42 override fun postToMainThread(runnable: Runnable) { in starting() 43 runnable.run() in starting()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | AvalancheController.kt | 89 fun update(entry: HeadsUpEntry?, runnable: Runnable, label: String) { in update() 91 runnable.run() in update() 101 debugRunnableLabelMap[runnable] = label in update() 105 runnable.run() in update() 108 nextMap[entry]?.add(runnable) in update() 111 showNow(entry, arrayListOf(runnable)) in update() 117 addToNext(entry, runnable) in update() 136 fun addToNext(entry: HeadsUpEntry, runnable: Runnable) { in addToNext() 137 nextMap[entry] = arrayListOf(runnable) in addToNext() 145 fun delete(entry: HeadsUpEntry?, runnable: Runnable, label: String) { in delete() [all …]
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/test/widgets/ |
D | HookWidget.java | 37 public static void setOnPreDrawHook(Runnable runnable) { in setOnPreDrawHook() argument 38 sOnPreDrawHook = runnable; in setOnPreDrawHook() 41 public static void setOnPreMeasure(Runnable runnable) { in setOnPreMeasure() argument 42 sOnPreMeasure = runnable; in setOnPreMeasure() 45 public static void setOnPreLayout(Runnable runnable) { in setOnPreLayout() argument 46 sOnPreLayout = runnable; in setOnPreLayout()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | ExecutorImpl.java | 64 token.runnable.run(); in onHandleMessage() 72 public final Runnable runnable; field in ExecutorImpl.ExecutionToken 74 private ExecutionToken(Runnable runnable) { in ExecutionToken() argument 75 this.runnable = runnable; in ExecutionToken()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/view/ |
D | NotificationScrollView.kt | 79 fun addStackHeightChangedListener(runnable: Runnable) 82 fun removeStackHeightChangedListener(runnable: Runnable) 88 fun addHeadsUpHeightChangedListener(runnable: Runnable) 91 fun removeHeadsUpHeightChangedListener(runnable: Runnable)
|
/frameworks/base/packages/SettingsLib/AvatarPicker/src/ |
D | ThreadUtils.java | 76 public static ListenableFuture postOnBackgroundThread(@NonNull Runnable runnable) { in postOnBackgroundThread() argument 77 return getBackgroundExecutor().submit(runnable); in postOnBackgroundThread() 100 public static void postOnMainThread(@NonNull Runnable runnable) { in postOnMainThread() argument 101 getUiThreadHandler().post(runnable); in postOnMainThread()
|
/frameworks/base/packages/SystemUI/tests/utils/src/android/animation/ |
D | AnimatorTestRule.java | 139 private RunnableWithException wrapWithRunBlocking(RunnableWithException runnable) { 140 RunnableWithException wrapped = TestableLooper.wrapWithRunBlocking(mTest, runnable); 144 return () -> runOnMainThrowing(runnable); 147 private static void runOnMainThrowing(RunnableWithException runnable) throws Exception { 149 runnable.run(); 154 runnable.run(); 359 public void postCommitCallback(Runnable runnable) { 360 mCommitCallbacks.add(runnable);
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
D | ThreadingDomain.java | 77 abstract void post(@NonNull Runnable runnable); in post() argument 87 final void postAndWait(@NonNull Runnable runnable, @DurationMillisLong long durationMillis) { in postAndWait() argument 90 runnable.run(); in postAndWait() 113 abstract void postDelayed(@NonNull Runnable runnable, @DurationMillisLong long delayMillis); in postDelayed() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ActivityStarterImpl.kt | 354 runnable: Runnable?, in executeRunnableDismissingKeyguard() 361 runnable = runnable, in executeRunnableDismissingKeyguard() 369 override fun postQSRunnableDismissingKeyguard(runnable: Runnable?) { in postQSRunnableDismissingKeyguard() 373 runnable = { runnable?.let { postOnUiThread(runnable = it) } }, in postQSRunnableDismissingKeyguard() 382 private fun postOnUiThread(delay: Int = 0, runnable: Runnable) { in postOnUiThread() 383 mainExecutor.executeDelayed(runnable, delay.toLong()) in postOnUiThread()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/ |
D | TestUiOffloadThread.java | 36 public Future<?> execute(Runnable runnable) { in execute() argument 40 runnable.run(); in execute() 50 runnable.run(); in execute()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/toast/ |
D | ToastUI.java | 175 private void hideCurrentToast(Runnable runnable) { in hideCurrentToast() argument 179 runnable, animator); in hideCurrentToast() 184 if (runnable != null) { in hideCurrentToast() 185 runnable.run(); in hideCurrentToast() 223 @Nullable Runnable runnable, in ToastOutAnimatorListener() argument 227 mShowNextToastRunnable = runnable; in ToastOutAnimatorListener() 231 void setShowNextToastRunnable(Runnable runnable) { in setShowNextToastRunnable() argument 232 mShowNextToastRunnable = runnable; in setShowNextToastRunnable()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | MockScheduledExecutorService.java | 150 public Future<?> submit(Runnable runnable) { in submit() argument 151 mExecutes.add(runnable); in submit() 152 MockScheduledFuture<?> future = new MockScheduledFuture<>(runnable, 0, in submit() 195 MockScheduledFuture(Runnable runnable, long delay, TimeUnit timeUnit) { in MockScheduledFuture() argument 196 this(runnable, null, delay); in MockScheduledFuture() 203 private MockScheduledFuture(Runnable runnable, Callable<V> callable, long delay) { in MockScheduledFuture() argument 205 mRunnable = runnable; in MockScheduledFuture()
|