Home
last modified time | relevance | path

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

12

/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/DeskClock/src/com/android/deskclock/
DUtils.java444 public static void setMidnightUpdater(Handler handler, Runnable runnable) { in setMidnightUpdater() argument
446 if (handler == null || runnable == null || timezone == null) { in setMidnightUpdater()
453 handler.removeCallbacks(runnable); in setMidnightUpdater()
454 handler.postDelayed(runnable, runInMillis); in setMidnightUpdater()
458 public static void cancelMidnightUpdater(Handler handler, Runnable runnable) { in cancelMidnightUpdater() argument
459 if (handler == null || runnable == null) { in cancelMidnightUpdater()
462 handler.removeCallbacks(runnable); in cancelMidnightUpdater()
467 public static void setQuarterHourUpdater(Handler handler, Runnable runnable) { in setQuarterHourUpdater() argument
469 if (handler == null || runnable == null || timezone == null) { in setQuarterHourUpdater()
477 handler.removeCallbacks(runnable); in setQuarterHourUpdater()
[all …]
/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/Browser/src/com/android/browser/
DGoogleAccountLogin.java77 Runnable runnable) { in GoogleAccountLogin() argument
81 mRunnable = runnable; in GoogleAccountLogin()
221 Runnable runnable) { in startLoginIfNeeded() argument
224 runnable.run(); in startLoginIfNeeded()
231 runnable.run(); in startLoginIfNeeded()
236 new GoogleAccountLogin(activity, accounts[0], runnable); in startLoginIfNeeded()
DBackgroundHandler.java35 public static void execute(Runnable runnable) { in execute() argument
36 mThreadPool.execute(runnable); in execute()
/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()
DPhoneUtils.java989 public static void forEachActiveSubscription(final SubscriptionRunnable runnable) { in forEachActiveSubscription() argument
994 runnable.runForSubscription(subscriptionInfo.getSubscriptionId()); in forEachActiveSubscription()
997 runnable.runForSubscription(ParticipantData.DEFAULT_SELF_SUB_ID); in forEachActiveSubscription()
/packages/apps/ContactsCommon/src/com/android/contacts/common/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/Contacts/src/com/android/contacts/util/
DSchedulingUtils.java29 public static void doAfterLayout(final View view, final Runnable runnable) { in doAfterLayout() argument
35 runnable.run(); in doAfterLayout()
43 final Runnable runnable) { in doOnPreDraw() argument
48 runnable.run(); in doOnPreDraw()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeferredHandler.java77 public void post(Runnable runnable) { in post() argument
79 mQueue.add(runnable); in post()
87 public void postIdle(final Runnable runnable) { in postIdle() argument
88 post(new IdleRunnable(runnable)); in postIdle()
DMainThreadExecutor.java36 public void execute(Runnable runnable) { in execute() argument
38 runnable.run(); in execute()
40 mHandler.post(runnable); in execute()
/packages/apps/Camera/tests/src/com/android/camera/activity/
DCameraTestCase.java73 Runnable runnable = new Runnable() { in call() local
85 getActivity().findViewById(R.id.gl_root_view).postDelayed(runnable, 50); in call()
93 Runnable runnable = new Runnable() { in call() local
102 getActivity().findViewById(R.id.gl_root_view).postDelayed(runnable, 50); in call()
/packages/apps/Camera2/tests_camera/src/com/android/camera/activity/
DCameraTestCase.java73 Runnable runnable = new Runnable() { in call() local
85 getActivity().findViewById(R.id.gl_root_view).postDelayed(runnable, 50); in call()
93 Runnable runnable = new Runnable() { in call() local
102 getActivity().findViewById(R.id.gl_root_view).postDelayed(runnable, 50); in call()
/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/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()
DResettingDelayedExecutor.java62 public void execute(Runnable runnable) { in execute() argument
68 mLatestRunRequest = mExecutor.schedule(runnable, mDelay, mDelayUnit); in execute()
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingObserver.java38 private Listener(Runnable runnable, Executor executor) { in Listener() argument
39 mRunnable = runnable; in Listener()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DCountingTimerView.java564 public void registerVirtualButtonAction(final Runnable runnable) { in registerVirtualButtonAction() argument
588 runnable.run(); in registerVirtualButtonAction()
600 runnable.run(); in registerVirtualButtonAction()
/packages/apps/Email/tests/src/com/android/email/
DTestUtils.java64 public static void expectThrowable(Runnable runnable, in expectThrowable() argument
67 runnable.run(); in expectThrowable()
/packages/apps/Dialer/tests/src/com/android/dialer/util/
DFakeAsyncTaskExecutor.java80 public SubmittedTaskImpl(Object identifier, Runnable runnable, in SubmittedTaskImpl() argument
83 mRunnable = runnable; in SubmittedTaskImpl()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsService.java381 private void retainService(final MmsRequest request, final Runnable runnable) { in retainService() argument
384 executor.execute(runnable); in retainService()

12