/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
D | FakeExecutorTest.java | 55 RunnableImpl runnable = new RunnableImpl(); in testNoDelay() local 58 assertEquals(0, runnable.mRunCount); in testNoDelay() 61 fakeExecutor.execute(runnable); in testNoDelay() 62 assertEquals(0, runnable.mRunCount); in testNoDelay() 65 fakeExecutor.execute(runnable); in testNoDelay() 66 assertEquals(0, runnable.mRunCount); in testNoDelay() 72 assertEquals(1, runnable.mRunCount); in testNoDelay() 77 assertEquals(2, runnable.mRunCount); in testNoDelay() 85 fakeExecutor.execute(runnable); in testNoDelay() 86 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/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/services/core/java/com/android/server/soundtrigger_middleware/ |
D | UptimeTimer.java | 55 Task createTask(@NonNull Runnable runnable, long uptimeMs) { in createTask() argument 56 TaskImpl task = new TaskImpl(runnable); in createTask() 73 TaskImpl(@NonNull Runnable runnable) { in TaskImpl() argument 74 mRunnable.set(runnable); in TaskImpl() 84 Runnable runnable = mRunnable.get(); in run() local 85 if (runnable != null) { in run() 86 runnable.run(); in run()
|
/frameworks/base/lowpan/java/android/net/lowpan/ |
D | LowpanScanner.java | 189 Runnable runnable = () -> callback.onNetScanBeacon(beaconInfo); in startNetScan() 192 handler.post(runnable); in startNetScan() 194 runnable.run(); in startNetScan() 211 Runnable runnable = () -> callback.onScanFinished(); in startNetScan() 214 handler.post(runnable); in startNetScan() 216 runnable.run(); in startNetScan() 266 Runnable runnable = in startEnergyScan() 278 handler.post(runnable); in startEnergyScan() 280 runnable.run(); in startEnergyScan() 292 Runnable runnable = () -> callback.onScanFinished(); in startEnergyScan() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/mediator/ |
D | ScreenOnCoordinatorTest.kt | 45 private lateinit var runnable: Runnable variable in com.android.keyguard.mediator.ScreenOnCoordinatorTest 76 screenOnCoordinator.onScreenTurningOn(runnable) in testUnfoldTransitionEnabledDrawnTasksReady_onScreenTurningOn_callsDrawnCallback() 83 verify(runnable).run() in testUnfoldTransitionEnabledDrawnTasksReady_onScreenTurningOn_callsDrawnCallback() 88 screenOnCoordinator.onScreenTurningOn(runnable) in testTasksReady_onScreenTurningOnAndTurnedOnEventsCalledTogether_callsDrawnCallback() 96 verify(runnable).run() in testTasksReady_onScreenTurningOnAndTurnedOnEventsCalledTogether_callsDrawnCallback() 101 screenOnCoordinator.onScreenTurningOn(runnable) in testTasksReady_onScreenTurnedOnAndTurnedOffBeforeCompletion_doesNotCallDrawnCallback() 110 verify(runnable, never()).run() in testTasksReady_onScreenTurnedOnAndTurnedOffBeforeCompletion_doesNotCallDrawnCallback() 120 screenOnCoordinator.onScreenTurningOn(runnable) in testUnfoldTransitionDisabledDrawnTasksReady_onScreenTurningOn_callsDrawnCallback() 124 verify(runnable).run() in testUnfoldTransitionDisabledDrawnTasksReady_onScreenTurningOn_callsDrawnCallback()
|
/frameworks/base/services/tests/servicestests/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/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | ThreadUtils.java | 67 public static Future postOnBackgroundThread(Runnable runnable) { in postOnBackgroundThread() argument 68 return getThreadExecutor().submit(runnable); in postOnBackgroundThread() 83 public static void postOnMainThread(Runnable runnable) { in postOnMainThread() argument 84 getUiThreadHandler().post(runnable); in postOnMainThread() 90 public static void postOnMainThreadDelayed(Runnable runnable, long delayMillis) { in postOnMainThreadDelayed() argument 91 getUiThreadHandler().postDelayed(runnable, delayMillis); in postOnMainThreadDelayed()
|
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()
|
/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/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/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/toast/ |
D | ToastUI.java | 164 private void hideCurrentToast(Runnable runnable) { in hideCurrentToast() argument 168 runnable); in hideCurrentToast() 173 if (runnable != null) { in hideCurrentToast() 174 runnable.run(); in hideCurrentToast() 211 @Nullable Runnable runnable) { in ToastOutAnimatorListener() argument 214 mShowNextToastRunnable = runnable; in ToastOutAnimatorListener() 217 void setShowNextToastRunnable(Runnable runnable) { in setShowNextToastRunnable() argument 218 mShowNextToastRunnable = runnable; in setShowNextToastRunnable()
|
/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/ |
D | DejankUtils.java | 127 public static void detectBlockingIpcs(Runnable runnable) { in detectBlockingIpcs() argument 133 runnable.run(); in detectBlockingIpcs() 140 runnable.run(); in detectBlockingIpcs() 180 public static void whitelistIpcs(Runnable runnable) { in whitelistIpcs() argument 186 runnable.run(); in whitelistIpcs() 193 runnable.run(); in whitelistIpcs()
|
/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()
|
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/ |
D | LooperExecutor.java | 40 public void execute(Runnable runnable) { in execute() argument 42 runnable.run(); in execute() 44 mHandler.post(runnable); in execute()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | CommonUtils.java | 29 public static void runWithShellPermissionIdentity(Runnable runnable) { in runWithShellPermissionIdentity() argument 32 runnable.run(); in runWithShellPermissionIdentity()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | WorkSourceUidPreservingRunnable.java | 31 public WorkSourceUidPreservingRunnable(Runnable runnable) { in WorkSourceUidPreservingRunnable() argument 32 this.mRunnable = runnable; in WorkSourceUidPreservingRunnable()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | ListenerSetTest.kt | 101 for (runnable in runnableSet) { in remove_isReentrantSafe() method 102 runnable.run() in remove_isReentrantSafe() 129 for (runnable in runnableSet) { in addIfAbsent_isReentrantSafe() method 130 runnable.run() in addIfAbsent_isReentrantSafe()
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | InjectMethodsAdapter.java | 30 public InjectMethodsAdapter(ClassVisitor cv, InjectMethodRunnable runnable) { in InjectMethodsAdapter() argument 32 mRunnable = runnable; in InjectMethodsAdapter()
|