Home
last modified time | relevance | path

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

1234

/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.kt62 fun addMinuteCallback(runnable: Runnable, offset: Long) { in addMinuteCallback()
63 addPeriodicCallback(runnable, Period.MINUTE, offset) in addMinuteCallback()
69 fun addQuarterHourCallback(runnable: Runnable) { in addQuarterHourCallback()
72 addPeriodicCallback(runnable, Period.QUARTER_HOUR, 100L) in addQuarterHourCallback()
78 fun addHourCallback(runnable: Runnable) { in addHourCallback()
81 addPeriodicCallback(runnable, Period.HOUR, 100L) in addHourCallback()
87 fun addMidnightCallback(runnable: Runnable) { in addMidnightCallback()
90 addPeriodicCallback(runnable, Period.MIDNIGHT, 100L) in addMidnightCallback()
96 private fun addPeriodicCallback(runnable: Runnable, period: Period, offset: Long) { in addPeriodicCallback()
97 val periodicRunnable = PeriodicRunnable(runnable, period, offset) in addPeriodicCallback()
[all …]
DPeriodicCallbackModel.java78 void addMinuteCallback(Runnable runnable, long offset) { in addMinuteCallback() argument
79 addPeriodicCallback(runnable, Period.MINUTE, offset); in addMinuteCallback()
85 void addQuarterHourCallback(Runnable runnable) { in addQuarterHourCallback() argument
88 addPeriodicCallback(runnable, Period.QUARTER_HOUR, 100L); in addQuarterHourCallback()
94 void addHourCallback(Runnable runnable) { in addHourCallback() argument
97 addPeriodicCallback(runnable, Period.HOUR, 100L); in addHourCallback()
103 void addMidnightCallback(Runnable runnable) { in addMidnightCallback() argument
106 addPeriodicCallback(runnable, Period.MIDNIGHT, 100L); in addMidnightCallback()
112 private void addPeriodicCallback(Runnable runnable, Period period, long offset) { in addPeriodicCallback() argument
113 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()
342 public void addQuarterHourCallback(Runnable runnable) { in addQuarterHourCallback() argument
344 mPeriodicCallbackModel.addQuarterHourCallback(runnable); in addQuarterHourCallback()
350 public void addHourCallback(Runnable runnable) { in addHourCallback() argument
352 mPeriodicCallbackModel.addHourCallback(runnable); in addHourCallback()
358 public void addMidnightCallback(Runnable runnable) { in addMidnightCallback() argument
360 mPeriodicCallbackModel.addMidnightCallback(runnable); in addMidnightCallback()
366 public void removePeriodicCallback(Runnable runnable) { in removePeriodicCallback() argument
368 mPeriodicCallbackModel.removePeriodicCallback(runnable); in removePeriodicCallback()
DUiDataModel.kt318 fun addMinuteCallback(runnable: Runnable, offset: Long) { in addMinuteCallback()
320 mPeriodicCallbackModel.addMinuteCallback(runnable, offset) in addMinuteCallback()
326 fun addQuarterHourCallback(runnable: Runnable) { in addQuarterHourCallback()
328 mPeriodicCallbackModel.addQuarterHourCallback(runnable) in addQuarterHourCallback()
334 fun addHourCallback(runnable: Runnable) { in addHourCallback()
336 mPeriodicCallbackModel.addHourCallback(runnable) in addHourCallback()
342 fun addMidnightCallback(runnable: Runnable) { in addMidnightCallback()
344 mPeriodicCallbackModel.addMidnightCallback(runnable) in addMidnightCallback()
350 fun removePeriodicCallback(runnable: Runnable) { in removePeriodicCallback()
352 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/apps/Launcher3/src/com/android/launcher3/util/
DLooperExecutor.java43 public void execute(Runnable runnable) { in execute() argument
45 runnable.run(); in execute()
47 mHandler.post(runnable); in execute()
54 public void post(Runnable runnable) { in post() argument
55 mHandler.post(runnable); in post()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerSetupViewTest.java126 Runnable runnable = () -> { in validateDefaultState_NoTimersExist() local
129 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in validateDefaultState_NoTimersExist()
149 Runnable runnable = () -> { in type0InDefaultState_NoTimersExist() local
152 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in type0InDefaultState_NoTimersExist()
204 Runnable runnable = () -> { in fillDisplayThenDeleteAll_NoTimersExist() local
207 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in fillDisplayThenDeleteAll_NoTimersExist()
232 Runnable runnable = () -> { in fillDisplayWith9s_NoTimersExist() local
235 InstrumentationRegistry.getInstrumentation().runOnMainSync(runnable); in fillDisplayWith9s_NoTimersExist()
/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/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/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()
293 public void setOnCancelRunnable(Runnable runnable) { in setOnCancelRunnable() argument
294 mOnCancelRunnable = runnable; in setOnCancelRunnable()

1234