Home
last modified time | relevance | path

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

123

/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.java78 void addMinuteCallback(Runnable runnable, long offset) { in addMinuteCallback() argument
79 addPeriodicCallback(runnable, Period.MINUTE, offset); in addMinuteCallback()
86 void addQuarterHourCallback(Runnable runnable, long offset) { in addQuarterHourCallback() argument
87 addPeriodicCallback(runnable, Period.QUARTER_HOUR, offset); in addQuarterHourCallback()
94 void addHourCallback(Runnable runnable, long offset) { in addHourCallback() argument
95 addPeriodicCallback(runnable, Period.HOUR, offset); in addHourCallback()
102 void addMidnightCallback(Runnable runnable, long offset) { in addMidnightCallback() argument
103 addPeriodicCallback(runnable, Period.MIDNIGHT, offset); in addMidnightCallback()
109 private void addPeriodicCallback(Runnable runnable, Period period, long offset) { in addPeriodicCallback() argument
110 final PeriodicRunnable periodicRunnable = new PeriodicRunnable(runnable, period, offset); in addPeriodicCallback()
[all …]
DUiDataModel.java334 public void addMinuteCallback(Runnable runnable, long offset) { in addMinuteCallback() argument
336 mPeriodicCallbackModel.addMinuteCallback(runnable, offset); in addMinuteCallback()
343 public void addQuarterHourCallback(Runnable runnable, long offset) { in addQuarterHourCallback() argument
345 mPeriodicCallbackModel.addQuarterHourCallback(runnable, offset); in addQuarterHourCallback()
352 public void addHourCallback(Runnable runnable, long offset) { in addHourCallback() argument
354 mPeriodicCallbackModel.addHourCallback(runnable, offset); in addHourCallback()
361 public void addMidnightCallback(Runnable runnable, long offset) { in addMidnightCallback() argument
363 mPeriodicCallbackModel.addMidnightCallback(runnable, offset); in addMidnightCallback()
369 public void removePeriodicCallback(Runnable runnable) { in removePeriodicCallback() argument
371 mPeriodicCallbackModel.removePeriodicCallback(runnable); in removePeriodicCallback()
/packages/apps/Launcher2/src/com/android/launcher2/
DDeferredHandler.java78 public void post(Runnable runnable) { in post() argument
79 post(runnable, 0); in post()
81 public void post(Runnable runnable, int type) { in post() argument
83 mQueue.add(new Pair<Runnable, Integer>(runnable, type)); in post()
91 public void postIdle(final Runnable runnable) { in postIdle() argument
92 postIdle(runnable, 0); in postIdle()
94 public void postIdle(final Runnable runnable, int type) { in postIdle() argument
95 post(new IdleRunnable(runnable), type); in postIdle()
98 public void cancelRunnable(Runnable runnable) { in cancelRunnable() argument
100 while (mQueue.remove(runnable)) { } in cancelRunnable()
/packages/apps/Dialer/java/com/android/dialer/util/
DViewUtil.java90 @NonNull final View view, final boolean drawNextFrame, final Runnable runnable) { in doOnPreDraw() argument
97 runnable.run(); in doOnPreDraw()
104 @NonNull final View view, final boolean drawNextFrame, final ViewRunnable runnable) { in doOnPreDraw() argument
111 runnable.run(view); in doOnPreDraw()
117 public static void doOnGlobalLayout(@NonNull final View view, final ViewRunnable runnable) { in doOnGlobalLayout() argument
124 runnable.run(view); in doOnGlobalLayout()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DEmailAsyncTask.java234 public static EmailAsyncTask<Void, Void, Void> runAsyncParallel(Runnable runnable) { in runAsyncParallel() argument
235 return runAsyncInternal(PARALLEL_EXECUTOR, runnable); in runAsyncParallel()
241 public static EmailAsyncTask<Void, Void, Void> runAsyncSerial(Runnable runnable) { in runAsyncSerial() argument
242 return runAsyncInternal(SERIAL_EXECUTOR, runnable); in runAsyncSerial()
246 final Runnable runnable) { in runAsyncInternal() argument
250 runnable.run(); in runAsyncInternal()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestScheduledExecutorService.java146 future.runnable.run(); in runAll()
151 scheduled.get(taskIndex).runnable.run(); in run()
184 final Runnable runnable; field in TestScheduledExecutorService.TestFuture
188 public TestFuture(Runnable runnable, long delay, TimeUnit unit) { in TestFuture() argument
189 this.runnable = runnable; in TestFuture()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DExecutorUtils.java54 public Thread newThread(final Runnable runnable) { in newThread() argument
55 Thread thread = new Thread(runnable, TAG); in newThread()
59 Log.w(mName + "-" + runnable.getClass().getSimpleName(), ex); in newThread()
144 for (Runnable runnable : mRunnables) { in run()
148 runnable.run(); in run()
/packages/apps/Messaging/src/com/android/messaging/util/
DSafeAsyncTask.java144 public static void executeOnThreadPool(final Runnable runnable) { in executeOnThreadPool() argument
145 executeOnThreadPool(runnable, false); in executeOnThreadPool()
158 public static void executeOnThreadPool(final Runnable runnable, final boolean withWakeLock) { in executeOnThreadPool() argument
166 runnable.run(); in executeOnThreadPool()
173 THREAD_POOL_EXECUTOR.execute(runnable); in executeOnThreadPool()
DUiUtils.java116 final String message, @Nullable final Runnable runnable, final int runnableLabel, in showSnackBar() argument
122 action = SnackBar.Action.createUndoAction(runnable); in showSnackBar()
125 action = SnackBar.Action.createRetryAction(runnable); in showSnackBar()
156 public static void doOnceAfterLayoutChange(final View view, final Runnable runnable) { in doOnceAfterLayoutChange() argument
164 ThreadUtil.getMainThreadHandler().post(runnable); in doOnceAfterLayoutChange()
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DThreadUtil.java27 public static void postOnUiThread(Runnable runnable) { in postOnUiThread() argument
28 getUiThreadHandler().post(runnable); in postOnUiThread()
32 public static void postDelayedOnUiThread(Runnable runnable, long delayMillis) { in postDelayedOnUiThread() argument
33 getUiThreadHandler().postDelayed(runnable, delayMillis); in postDelayedOnUiThread()
DDefaultDialerExecutorFactory.java103 public Thread newThread(Runnable runnable) {
105 Thread thread = new Thread(runnable, "UiTaskBuilder-Serial");
160 public Thread newThread(Runnable runnable) {
162 Thread thread = new Thread(runnable, "NonUiTaskBuilder-Serial");
173 public Thread newThread(Runnable runnable) {
175 Thread thread = new Thread(runnable, "NonUiTaskBuilder-Parallel");
/packages/apps/Contacts/src/com/android/contacts/util/
DSchedulingUtils.java28 public static void doAfterLayout(final View view, final Runnable runnable) { in doAfterLayout() argument
34 runnable.run(); in doAfterLayout()
42 final Runnable runnable) { in doOnPreDraw() argument
47 runnable.run(); in doOnPreDraw()
/packages/apps/Car/Dialer/src/com/android/car/dialer/
DBitmapWorkerTask.java38 String number, BitmapRunnable runnable) { in BitmapWorkerTask() argument
42 mRunnable = runnable; in BitmapWorkerTask()
74 String number, BitmapRunnable runnable) { in loadBitmap() argument
77 new BitmapWorkerTask(contentResolver, imageView, number, runnable); in loadBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLooperExecutor.java37 public void execute(Runnable runnable) { in execute() argument
39 runnable.run(); in execute()
41 mHandler.post(runnable); in execute()
/packages/apps/TV/src/com/android/tv/util/
DMainThreadExecutor.java42 public void execute(Runnable runnable) { in execute() argument
44 runnable.run(); in execute()
46 mHandler.post(runnable); in execute()
DRecurringRunner.java49 public RecurringRunner(Context context, long intervalMs, Runnable runnable, in RecurringRunner() argument
52 mRunnable = runnable; in RecurringRunner()
55 mName = runnable.getClass().getCanonicalName(); in RecurringRunner()
DNamedThreadFactory.java39 public Thread newThread(@NonNull final Runnable runnable) { in newThread() argument
40 final Thread thread = mDefaultThreadFactory.newThread(runnable); in newThread()
/packages/apps/TV/src/com/android/tv/ui/
DDialogUtils.java42 Runnable runnable = runnables[which]; in showListDialog()
43 if (runnable != null) { in showListDialog()
44 runnable.run(); in showListDialog()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonView.java431 @Nullable Runnable runnable) { in setImageAlpha() argument
468 if (runnable != null) { in setImageAlpha()
469 animator.addListener(getEndListener(runnable)); in setImageAlpha()
475 private Animator.AnimatorListener getEndListener(final Runnable runnable) { in getEndListener() argument
487 runnable.run(); in getEndListener()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DDataModel.java227 public void run(Runnable runnable) { in run() argument
229 run(runnable, 0 /* waitMillis */); in run()
256 public void run(Runnable runnable, long waitMillis) throws InterruptedException { in run() argument
258 runnable.run(); in run()
262 final ExecutedRunnable er = new ExecutedRunnable(runnable); in run()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripLayout.java152 public void scheduleDrawable(Drawable drawable, Runnable runnable, long l) { in init()
153 mHandler.postAtTime(runnable, drawable, l); in init()
157 public void unscheduleDrawable(Drawable drawable, Runnable runnable) { in init()
158 mHandler.removeCallbacks(runnable, drawable); in init()
/packages/services/Car/car-lib/src/android/car/cluster/renderer/
DThreadSafeNavigationRenderer.java135 private static <E> E runAndWaitResult(Handler handler, final RunnableWithResult<E> runnable) {
141 runnable.run();
153 return runnable.getResult();
/packages/apps/Camera2/src/com/android/camera/async/
DAndroidPriorityThread.java18 public AndroidPriorityThread(int androidThreadPriority, Runnable runnable) { in AndroidPriorityThread() argument
19 super(runnable); in AndroidPriorityThread()
DHandlerExecutor.java37 public void execute(Runnable runnable) { in execute() argument
38 mHandler.post(runnable); in execute()
DMainThread.java68 public void execute(@Nonnull Runnable runnable) { in createFakeForTesting()
72 runnable.run(); in createFakeForTesting()

123