Searched refs:runnable (Results 1 - 25 of 34) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/async/
H A DAndroidPriorityThread.java16 * @param runnable the runnable to run at this thread priority.
18 public AndroidPriorityThread(int androidThreadPriority, Runnable runnable) { argument
19 super(runnable);
H A DHandlerExecutor.java37 public void execute(Runnable runnable) { argument
38 mHandler.post(runnable);
H A DMainThread.java68 public void execute(@Nonnull Runnable runnable) {
72 runnable.run();
H A DResettingDelayedExecutor.java62 public void execute(Runnable runnable) { argument
68 mLatestRunRequest = mExecutor.schedule(runnable, mDelay, mDelayUnit);
/packages/apps/Contacts/src/com/android/contacts/util/
H A DSchedulingUtils.java29 public static void doAfterLayout(final View view, final Runnable runnable) { argument
35 runnable.run();
43 final Runnable runnable) {
48 runnable.run();
42 doOnPreDraw(final View view, final boolean drawNextFrame, final Runnable runnable) argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DSchedulingUtils.java28 public static void doAfterLayout(final View view, final Runnable runnable) { argument
34 runnable.run();
42 final Runnable runnable) {
47 runnable.run();
41 doOnPreDraw(final View view, final boolean drawNextFrame, final Runnable runnable) argument
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDeferredHandler.java77 /** Schedule runnable to run after everything that's on the queue right now. */
78 public void post(Runnable runnable) { argument
79 post(runnable, 0);
81 public void post(Runnable runnable, int type) { argument
83 mQueue.add(new Pair<Runnable, Integer>(runnable, type));
90 /** Schedule runnable to run when the queue goes idle. */
91 public void postIdle(final Runnable runnable) { argument
92 postIdle(runnable, 0);
94 public void postIdle(final Runnable runnable, int type) { argument
95 post(new IdleRunnable(runnable), typ
98 cancelRunnable(Runnable runnable) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DMainThreadExecutor.java36 public void execute(Runnable runnable) { argument
38 runnable.run();
40 mHandler.post(runnable);
H A DDeferredHandler.java76 /** Schedule runnable to run after everything that's on the queue right now. */
77 public void post(Runnable runnable) { argument
79 mQueue.add(runnable);
86 /** Schedule runnable to run when the queue goes idle. */
87 public void postIdle(final Runnable runnable) { argument
88 post(new IdleRunnable(runnable));
/packages/apps/Browser/src/com/android/browser/
H A DBackgroundHandler.java35 public static void execute(Runnable runnable) { argument
36 mThreadPool.execute(runnable);
H A DGoogleAccountLogin.java77 Runnable runnable) {
81 mRunnable = runnable;
221 Runnable runnable) {
224 runnable.run();
231 runnable.run();
236 new GoogleAccountLogin(activity, accounts[0], runnable);
76 GoogleAccountLogin(Activity activity, Account account, Runnable runnable) argument
220 startLoginIfNeeded(Activity activity, Runnable runnable) argument
/packages/apps/Messaging/src/com/android/messaging/util/
H A DSafeAsyncTask.java141 * @param runnable The Runnable to execute asynchronously
144 public static void executeOnThreadPool(final Runnable runnable) { argument
145 executeOnThreadPool(runnable, false);
154 * @param runnable The Runnable to execute asynchronously
155 * @param withWakeLock when set, a wake lock will be held for the duration of the runnable
158 public static void executeOnThreadPool(final Runnable runnable, final boolean withWakeLock) { argument
166 runnable.run();
173 THREAD_POOL_EXECUTOR.execute(runnable);
H A DUiUtils.java116 final String message, @Nullable final Runnable runnable, final int runnableLabel,
122 action = SnackBar.Action.createUndoAction(runnable);
125 action = SnackBar.Action.createRetryAction(runnable);
154 * Run the given runnable once after the next layout pass of the view.
156 public static void doOnceAfterLayoutChange(final View view, final Runnable runnable) { argument
162 // Call the runnable outside the layout pass because very few actions are allowed in
164 ThreadUtil.getMainThreadHandler().post(runnable);
202 * @param onFinishRunnable an optional runnable called at the end of the animation
115 showSnackBar(final Context context, @NonNull final View parentView, final String message, @Nullable final Runnable runnable, final int runnableLabel, @Nullable final List<SnackBarInteraction> interactions) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DExecutorUtils.java54 public Thread newThread(final Runnable runnable) { argument
55 Thread thread = new Thread(runnable, TAG);
59 Log.w(mName + "-" + runnable.getClass().getSimpleName(), ex);
76 // Public methods used to schedule a runnable for execution.
144 for (Runnable runnable : mRunnables) {
148 runnable.run();
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DEmailAsyncTask.java234 public static EmailAsyncTask<Void, Void, Void> runAsyncParallel(Runnable runnable) { argument
235 return runAsyncInternal(PARALLEL_EXECUTOR, runnable);
241 public static EmailAsyncTask<Void, Void, Void> runAsyncSerial(Runnable runnable) { argument
242 return runAsyncInternal(SERIAL_EXECUTOR, runnable);
246 final Runnable runnable) {
250 runnable.run();
245 runAsyncInternal(Executor executor, final Runnable runnable) argument
/packages/apps/Camera2/src/com/android/camera/settings/
H A DSettingObserver.java38 private Listener(Runnable runnable, Executor executor) { argument
39 mRunnable = runnable;
/packages/apps/Email/tests/src/com/android/email/
H A DTestUtils.java61 * Run {@code runnable} and fails if it doesn't throw a {@code expectedThrowable} or a subclass
64 public static void expectThrowable(Runnable runnable, argument
67 runnable.run();
/packages/apps/Camera/tests/src/com/android/camera/activity/
H A DCameraTestCase.java73 Runnable runnable = new Runnable() {
85 getActivity().findViewById(R.id.gl_root_view).postDelayed(runnable, 50);
93 Runnable runnable = new Runnable() {
102 getActivity().findViewById(R.id.gl_root_view).postDelayed(runnable, 50);
/packages/apps/Camera2/tests_camera/src/com/android/camera/activity/
H A DCameraTestCase.java73 Runnable runnable = new Runnable() {
85 getActivity().findViewById(R.id.gl_root_view).postDelayed(runnable, 50);
93 Runnable runnable = new Runnable() {
102 getActivity().findViewById(R.id.gl_root_view).postDelayed(runnable, 50);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DUtils.java444 public static void setMidnightUpdater(Handler handler, Runnable runnable) { argument
446 if (handler == null || runnable == null || timezone == null) {
453 handler.removeCallbacks(runnable);
454 handler.postDelayed(runnable, runInMillis);
458 public static void cancelMidnightUpdater(Handler handler, Runnable runnable) { argument
459 if (handler == null || runnable == null) {
462 handler.removeCallbacks(runnable);
467 public static void setQuarterHourUpdater(Handler handler, Runnable runnable) { argument
469 if (handler == null || runnable == null || timezone == null) {
477 handler.removeCallbacks(runnable);
482 cancelQuarterHourUpdater(Handler handler, Runnable runnable) argument
[all...]
/packages/apps/Dialer/tests/src/com/android/dialer/util/
H A DFakeAsyncTaskExecutor.java80 public SubmittedTaskImpl(Object identifier, Runnable runnable, argument
83 mRunnable = runnable;
/packages/apps/Camera2/src/com/android/camera/widget/
H A DFilmstripLayout.java152 public void scheduleDrawable(Drawable drawable, Runnable runnable, long l) {
153 mHandler.postAtTime(runnable, drawable, l);
157 public void unscheduleDrawable(Drawable drawable, Runnable runnable) {
158 mHandler.removeCallbacks(runnable, drawable);
/packages/apps/Messaging/src/android/support/v7/mms/
H A DMmsService.java379 * @param runnable The runnable to run the request in thread pool
381 private void retainService(final MmsRequest request, final Runnable runnable) { argument
384 executor.execute(runnable);
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DMediaResourceManager.java109 public Thread newThread(final Runnable runnable) {
110 final Thread encodingThread = new Thread(runnable);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DSnackBar.java79 public static Action createCustomAction(final Runnable runnable, final String actionLabel) { argument
80 return new Action(runnable, actionLabel);

Completed in 1554 milliseconds

12