Home
last modified time | relevance | path

Searched refs:runnable (Results 1 – 25 of 68) 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/TV/src/com/android/tv/ui/hideable/
DAutoHideScheduler.java47 public AutoHideScheduler(Context context, Runnable runnable) { in AutoHideScheduler() argument
49 runnable, in AutoHideScheduler()
55 AutoHideScheduler(Runnable runnable, AccessibilityManager accessibilityManager, Looper looper) { in AutoHideScheduler() argument
57 mRunnable = runnable; in AutoHideScheduler()
92 protected void handleMessage(Message msg, @NonNull Runnable runnable) { in handleMessage() argument
96 runnable.run(); in handleMessage()
/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/Dialer/java/com/android/dialer/common/concurrent/
DDialerExecutorModule.java61 public Thread newThread(Runnable runnable) { in provideNonUiThreadPool()
63 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority"); in provideNonUiThreadPool()
78 public Thread newThread(Runnable runnable) {
80 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority-Serial");
101 public Thread newThread(Runnable runnable) {
103 Thread thread = new Thread(runnable, "DialerExecutors-HighPriority-Serial");
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()
/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/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/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowThreadUtils.java36 protected static void postOnBackgroundThread(Runnable runnable) { in postOnBackgroundThread() argument
37 runnable.run(); in postOnBackgroundThread()
41 protected static void postOnMainThread(Runnable runnable) { in postOnMainThread() argument
42 runnable.run(); in postOnMainThread()
/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/libs/car-arch-common/src/com/android/car/arch/common/testing/
DInstantTaskExecutorRule.java37 public void executeOnDiskIO(Runnable runnable) { in starting()
38 runnable.run(); in starting()
42 public void postToMainThread(Runnable runnable) { in starting()
43 runnable.run(); in starting()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java111 for (Runnable runnable : mUpdateRunnables.values()) { in initCancelAllButton()
112 mHandler.removeCallbacks(runnable); in initCancelAllButton()
341 Runnable runnable = new Runnable() { in initTestMessagesButton()
358 mUpdateRunnables.put(id, runnable); in initTestMessagesButton()
359 mHandler.post(runnable); in initTestMessagesButton()
381 Runnable runnable = new Runnable() { in initProgressButton()
403 mUpdateRunnables.put(id, runnable); in initProgressButton()
404 mHandler.post(runnable); in initProgressButton()
/packages/apps/TV/src/com/android/tv/util/
DMainThreadExecutor.java41 public void execute(Runnable runnable) { in execute() argument
43 runnable.run(); in execute()
45 mHandler.post(runnable); in execute()
DRecurringRunner.java48 Context context, long intervalMs, Runnable runnable, Runnable onStopRunnable) { in RecurringRunner() argument
50 mRunnable = runnable; in RecurringRunner()
53 mName = runnable.getClass().getCanonicalName(); in RecurringRunner()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLooperExecutor.java41 public void execute(Runnable runnable) { in execute() argument
43 runnable.run(); in execute()
45 mHandler.post(runnable); in execute()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DContentLock.java73 public synchronized void runWhenUnlocked(Runnable runnable) { in runWhenUnlocked() argument
78 runnable.run(); in runWhenUnlocked()
80 mCallback = runnable; in runWhenUnlocked()
/packages/apps/TV/src/com/android/tv/ui/
DDialogUtils.java41 Runnable runnable = runnables[which]; in showListDialog()
42 if (runnable != null) { in showListDialog()
43 runnable.run(); in showListDialog()
/packages/apps/Dialer/java/com/android/dialer/strictmode/
DStrictModeUtils.java75 public static void bypass(Runnable runnable) { in bypass() argument
80 runnable.run(); in bypass()
85 runnable.run(); in bypass()
/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/Launcher3/src/com/android/launcher3/anim/
DAnimatorPlaybackController.java192 public void setEndAction(Runnable runnable) { in setEndAction() argument
193 mEndAction = runnable; in setEndAction()
282 public void setOnCancelRunnable(Runnable runnable) { in setOnCancelRunnable() argument
283 mOnCancelRunnable = runnable; in setOnCancelRunnable()
/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()

123