Home
last modified time | relevance | path

Searched refs:runnable (Results 1 – 25 of 120) sorted by relevance

12345

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DFakeExecutorTest.java53 RunnableImpl runnable = new RunnableImpl(); in testNoDelay() local
56 assertEquals(0, runnable.mRunCount); in testNoDelay()
59 fakeExecutor.execute(runnable); in testNoDelay()
60 assertEquals(0, runnable.mRunCount); in testNoDelay()
63 fakeExecutor.execute(runnable); in testNoDelay()
64 assertEquals(0, runnable.mRunCount); in testNoDelay()
70 assertEquals(1, runnable.mRunCount); in testNoDelay()
75 assertEquals(2, runnable.mRunCount); in testNoDelay()
83 fakeExecutor.execute(runnable); in testNoDelay()
84 fakeExecutor.execute(runnable); in testNoDelay()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DExponentialBackoff.java40 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/lowpan/java/android/net/lowpan/
DLowpanScanner.java189 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/services/core/java/com/android/server/incident/
DRequestQueue.java66 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/
DRunQueue.java51 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/
DOneShotPreDrawListener.java39 private OneShotPreDrawListener(View view, boolean returnValue, Runnable runnable) { in OneShotPreDrawListener() argument
42 mRunnable = runnable; in OneShotPreDrawListener()
55 public static OneShotPreDrawListener add(View view, Runnable runnable) { in add() argument
56 return add(view, true, runnable); in add()
68 public static OneShotPreDrawListener add(View view, boolean returnValue, Runnable runnable) { in add() argument
69 OneShotPreDrawListener listener = new OneShotPreDrawListener(view, returnValue, runnable); in add()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/test/widgets/
DHookWidget.java37 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/
DExecutorImpl.java64 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/shared/src/com/android/systemui/shared/system/
DBackgroundExecutor.java50 public Future<?> submit(Runnable runnable) { in submit() argument
51 return mExecutorService.submit(runnable); in submit()
58 public <T> Future<T> submit(Runnable runnable, T result) { in submit() argument
59 return mExecutorService.submit(runnable, result); in submit()
DChoreographerCompat.java30 public static void postInputFrame(Choreographer choreographer, Runnable runnable) { in postInputFrame() argument
31 choreographer.postCallback(CALLBACK_INPUT, runnable, null); in postInputFrame()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DThreadUtils.java67 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDejankUtils.java127 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()
DUiOffloadThread.java39 public Future<?> execute(Runnable runnable) { in execute() argument
40 return mExecutorService.submit(runnable); in execute()
DInitController.java44 public void addPostInitTask(Runnable runnable) { in addPostInitTask() argument
48 mTasks.add(runnable); in addPostInitTask()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DMockScheduledExecutorService.java150 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/opt/net/wifi/service/java/com/android/server/wifi/
DWifiThreadRunner.java93 public boolean run(@NonNull Runnable runnable) { in run() argument
95 runWithScissors(mHandler, runnable, RUN_WITH_SCISSORS_TIMEOUT_MILLIS); in run()
110 public boolean post(@NonNull Runnable runnable) { in post() argument
111 return mHandler.post(runnable); in post()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiThreadRunnerTest.java75 Runnable runnable = (Runnable) args[0]; in callSuccess_returnExpectedValue()
76 runnable.run(); in callSuccess_returnExpectedValue()
100 Runnable runnable = (Runnable) args[0]; in runSuccess()
101 runnable.run(); in runSuccess()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DInjectMethodsAdapter.java30 public InjectMethodsAdapter(ClassVisitor cv, InjectMethodRunnable runnable) { in InjectMethodsAdapter() argument
32 mRunnable = runnable; in InjectMethodsAdapter()
/frameworks/opt/bitmap/src/com/android/bitmap/
DNamedThreadFactory.java34 public Thread newThread(final Runnable runnable) { in newThread() argument
35 final Thread thread = mDefaultThreadFactory.newThread(runnable); in newThread()
/frameworks/base/services/core/java/com/android/server/
DSystemServerInitThreadPool.java76 public static @NonNull Future<?> submit(@NonNull Runnable runnable, in submit() argument
87 return instance.submitTask(runnable, description); in submit()
90 private @NonNull Future<?> submitTask(@NonNull Runnable runnable, in submitTask() argument
103 runnable.run(); in submitTask()
/frameworks/base/core/java/com/android/internal/graphics/
DSfVsyncFrameCallbackProvider.java45 public void postCommitCallback(Runnable runnable) { in postCommitCallback() argument
46 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null); in postCommitCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockFake.java39 public Runnable wrap(Runnable runnable) { in wrap() argument
43 runnable.run(); in wrap()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/impl/
DResourceHelperTest.java24 private static void assertNumberFormatException(Runnable runnable) { in assertNumberFormatException() argument
26 runnable.run(); in assertNumberFormatException()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBackDropView.java61 public void setOnVisibilityChangedRunnable(Runnable runnable) { in setOnVisibilityChangedRunnable() argument
62 mOnVisibilityChangedRunnable = runnable; in setOnVisibilityChangedRunnable()
/frameworks/base/core/java/com/android/internal/infra/
DThrottledRunnable.java50 @NonNull Runnable runnable) { in ThrottledRunnable() argument
53 mRunnable = runnable; in ThrottledRunnable()

12345