Home
last modified time | relevance | path

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

1234

/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 …]
DLowpanManager.java261 Runnable runnable = in registerCallback()
270 mHandler.post(runnable); in registerCallback()
275 Runnable runnable = in registerCallback()
284 mHandler.post(runnable); in registerCallback()
/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/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.java66 public static Future postOnBackgroundThread(Runnable runnable) { in postOnBackgroundThread() argument
70 return sSingleThreadExecutor.submit(runnable); in postOnBackgroundThread()
76 public static void postOnMainThread(Runnable runnable) { in postOnMainThread() argument
77 getUiThreadHandler().post(runnable); in postOnMainThread()
/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/
DTransitionRunner.java358 TransitionBuilder runBeforeAll(Runnable runnable) { in runBeforeAll() argument
359 mBeforeAlls.add(runnable); in runBeforeAll()
363 TransitionBuilder runBefore(Runnable runnable) { in runBefore() argument
364 mBefores.add(runnable); in runBefore()
368 TransitionBuilder run(Runnable runnable) { in run() argument
369 mTransitions.add(runnable); in run()
373 TransitionBuilder runAfter(Runnable runnable) { in runAfter() argument
374 mAfters.add(runnable); in runAfter()
378 TransitionBuilder runAfterAll(Runnable runnable) { in runAfterAll() argument
379 mAfterAlls.add(runnable); in runAfterAll()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DUiOffloadThread.java39 public Future<?> submit(Runnable runnable) { in submit() argument
40 return mExecutorService.submit(runnable); in submit()
DInitController.java44 public void addPostInitTask(Runnable runnable) { in addPostInitTask() argument
48 mTasks.add(runnable); in addPostInitTask()
/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/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockFake.java37 public Runnable wrap(Runnable runnable) { in wrap() argument
41 runnable.run(); in wrap()
/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/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/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/services/core/java/com/android/server/timezone/
DRulesManagerServiceHelperImpl.java53 public void execute(Runnable runnable) { in execute() argument
54 AsyncTask.execute(runnable); in execute()
/frameworks/av/services/oboeservice/
DAAudioThread.cpp68 aaudio_result_t AAudioThread::start(Runnable *runnable) { in start() argument
75 mRunnable = runnable; in start()
/frameworks/base/core/java/android/app/job/
DJobSnapshot.java36 public JobSnapshot(JobInfo info, int satisfiedMask, boolean runnable) { in JobSnapshot() argument
39 mIsRunnable = runnable; in JobSnapshot()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DWakeupMessageTest.java177 final Runnable runnable = mock(Runnable.class); in scheduleRunnable() local
178 WakeupMessage dut = new WakeupMessage(mContext, mHandler, TEST_CMD_NAME, runnable); in scheduleRunnable()
183 verify(runnable, times(1)).run(); in scheduleRunnable()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerInternalTest.java145 CustomThread(Object lock, Runnable runnable) { in CustomThread() argument
146 super(runnable); in CustomThread()
148 mRunnable = runnable; in CustomThread()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java114 public Runnable wrap(Runnable runnable) {
115 return wrapImpl(this, runnable);

1234