HomeSort by relevance Sort by last modified time
    Searched refs:runnable (Results 1 - 25 of 950) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/proguard/src/proguard/gui/
SwingUtil.java 37 * Invokes the given Runnable in the AWT event dispatching thread,
40 * @see SwingUtilities#invokeAndWait(Runnable)
41 * @param runnable the Runnable to be executed.
43 public static void invokeAndWait(Runnable runnable)
50 runnable.run();
54 SwingUtilities.invokeAndWait(runnable);
65 * Invokes the given Runnable in the AWT event dispatching thread, not
68 * @see SwingUtilities#invokeLater(Runnable)
    [all...]
  /frameworks/support/lifecycle/livedata/src/test/java/androidx/lifecycle/util/
InstantTaskExecutor.java 23 public void executeOnDiskIO(Runnable runnable) {
24 runnable.run();
28 public void postToMainThread(Runnable runnable) {
29 runnable.run();
  /frameworks/support/app-toolkit/runtime/src/main/java/androidx/arch/core/executor/
TaskExecutor.java 35 * @param runnable The runnable to run in the disk IO thread pool.
37 public abstract void executeOnDiskIO(@NonNull Runnable runnable);
42 * @param runnable The runnable to run on the main thread.
44 public abstract void postToMainThread(@NonNull Runnable runnable);
49 * If the current thread is a main thread, immediately runs the given runnable.
51 * @param runnable The runnable to run on the main thread
    [all...]
  /frameworks/support/core/ktx/src/main/java/androidx/core/os/
Handler.kt 31 * @return the created Runnable
37 ): Runnable {
38 val runnable = Runnable { action() }
40 postDelayed(runnable, delayInMillis)
42 HandlerCompat.postDelayed(this, runnable, token, delayInMillis)
44 return runnable
58 * @return the created Runnable
64 ): Runnable {
65 val runnable = Runnable { action()
    [all...]
  /frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/taskexecutor/
TaskExecutor.java 30 * @param runnable {@link Runnable} to post to the main thread.
32 void postToMainThread(Runnable runnable);
35 * @param runnable {@link Runnable} to execute on a background thread pool.
37 void executeOnBackgroundThread(Runnable runnable);
  /packages/apps/Dialer/java/com/android/dialer/common/concurrent/
ThreadUtil.java 26 /** Posts a runnable to the UI thread. */
27 public static void postOnUiThread(Runnable runnable) {
28 getUiThreadHandler().post(runnable);
31 /** Posts a runnable to the UI thread, to be run after the specified amount of time elapses. */
32 public static void postDelayedOnUiThread(Runnable runnable, long delayMillis) {
33 getUiThreadHandler().postDelayed(runnable, delayMillis);
  /external/emma/core/java13/com/vladium/util/exit/
ExitHookManager.java 29 public abstract boolean addExitHook (Runnable runnable);
30 public abstract boolean removeExitHook (Runnable runnable);
61 public synchronized boolean addExitHook (final Runnable runnable)
63 if ((runnable != null) && ! m_exitThreadMap.containsKey (runnable))
65 final Thread exitThread = new Thread (runnable, IAppConstants.APP_NAME + " shutdown handler thread");
70 m_exitThreadMap.put (runnable, exitThread); // TODO: use identity her
    [all...]
  /frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/
EnqueueRunnableTest.java 50 EnqueueRunnable runnable = spy(new EnqueueRunnable(mWorkContinuation)); local
58 }).when(runnable).addToDatabase();
59 doNothing().when(runnable).scheduleWorkInBackground();
60 runnable.run();
61 verify(runnable, times(1)).scheduleWorkInBackground();
66 EnqueueRunnable runnable = spy(new EnqueueRunnable(mWorkContinuation)); local
72 }).when(runnable).addToDatabase();
73 doNothing().when(runnable).scheduleWorkInBackground();
74 runnable.run();
75 verify(runnable, times(0)).scheduleWorkInBackground()
    [all...]
ForceStopRunnableTest.java 78 ForceStopRunnable runnable = spy(mRunnable); local
79 when(runnable.shouldCancelPersistedJobs()).thenReturn(false);
80 when(runnable.isForceStopped()).thenReturn(true);
81 runnable.run();
87 ForceStopRunnable runnable = spy(mRunnable); local
88 when(runnable.shouldCancelPersistedJobs()).thenReturn(false);
89 when(runnable.isForceStopped()).thenReturn(false);
90 runnable.run();
96 ForceStopRunnable runnable = spy(mRunnable); local
97 doNothing().when(runnable).cancelAllInJobScheduler()
106 ForceStopRunnable runnable = spy(mRunnable); local
    [all...]
  /external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
Scheduler.java 22 * automatically run any {@link Runnable}s that are scheduled to run at or before the
73 * tasks will be run and the clock advanced to the time of the last runnable.
130 * Add a runnable to the queue.
132 * @param runnable Runnable to add.
134 public synchronized void post(Runnable runnable) {
135 postDelayed(runnable, 0, TimeUnit.MILLISECONDS);
139 * Add a runnable to the queue to be run after a delay.
141 * @param runnable Runnable to add
346 private final Runnable runnable; field in class:Scheduler.ScheduledRunnable
    [all...]
  /external/guava/guava/src/com/google/common/util/concurrent/
ExecutionList.java 31 * guarantees that every {@code Runnable} that is {@linkplain #add added} will
32 * be executed after {@link #execute()} is called. Any {@code Runnable} added
52 * The runnable, executor pairs to execute. This acts as a stack threaded through the
64 * Adds the {@code Runnable} and accompanying {@code Executor} to the list of
81 public void add(Runnable runnable, Executor executor) {
85 Preconditions.checkNotNull(runnable, "Runnable was null.");
93 runnables = new RunnableExecutorPair(runnable, executor, runnables);
97 // Execute the runnable immediately. Because of scheduling this may end u
167 final Runnable runnable; field in class:ExecutionList.RunnableExecutorPair
    [all...]
  /external/mockito/src/test/java/org/mockitoutil/
ThrowableAssert.java 16 private ThrowableAssert(Runnable runnable) {
18 runnable.run();
23 throw new AssertionError("Expected runnable to throw an exception but it didn't");
41 * Executes provided runnable, expects it to throw an exception.
44 public static ThrowableAssert assertThat(Runnable runnable) {
45 return new ThrowableAssert(runnable);
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/util/
Scheduler.java 30 public void postDelayed(Runnable runnable, long delayMillis) {
32 postedRunnables.add(new PostedRunnable(runnable, currentTime + delayMillis));
35 runnable.run();
39 public void post(Runnable runnable) {
40 postDelayed(runnable, 0);
43 public void postAtFrontOfQueue(Runnable runnable) {
45 postedRunnables.add(0, new PostedRunnable(runnable, currentTime))
140 Runnable runnable; field in class:Scheduler.PostedRunnable
    [all...]
  /external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/
RoboCleaner.java 25 public static RoboCleaner create(Object referent, Runnable runnable) {
  /packages/apps/Contacts/src/com/android/contacts/util/
SchedulingUtils.java 28 public static void doAfterLayout(final View view, final Runnable runnable) {
34 runnable.run();
42 final Runnable runnable) {
47 runnable.run();
  /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
ShadowThreadUtils.java 36 public static void postOnBackgroundThread(Runnable runnable) {
37 runnable.run();
41 public static void postOnMainThread(Runnable runnable) {
42 runnable.run();
  /art/test/945-obsolete-native/
obsolete_native.cc 35 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject runnable) {
36 jclass runnable_klass = env->FindClass("java/lang/Runnable");
38 env->CallVoidMethod(runnable, run_method);
  /external/vogar/test/vogar/target/junit4/
MockitoFieldTest.java 32 private Runnable runnable; field in class:MockitoFieldTest
36 assertNotNull("Runnable field was not mocked", runnable);
  /frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
ChoreographerCompat.java 30 public static void postInputFrame(Choreographer choreographer, Runnable runnable) {
31 choreographer.postCallback(CALLBACK_INPUT, runnable, null);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
UiOffloadThread.java 31 public Future<?> submit(Runnable runnable) {
32 return mExecutorService.submit(runnable);
  /packages/apps/Camera2/src/com/android/camera/async/
AndroidPriorityThread.java 16 * @param runnable the runnable to run at this thread priority.
18 public AndroidPriorityThread(int androidThreadPriority, Runnable runnable) {
19 super(runnable);
HandlerExecutor.java 37 public void execute(Runnable runnable) {
38 mHandler.post(runnable);
  /frameworks/base/telephony/java/com/android/internal/telephony/
ExponentialBackoff.java 32 private final Runnable mRunnable;
40 public boolean postDelayed(Runnable runnable, long delayMillis) {
41 return mHandler.postDelayed(runnable, delayMillis);
45 public void removeCallbacks(Runnable runnable) {
46 mHandler.removeCallbacks(runnable);
54 boolean postDelayed(Runnable runnable, long delayMillis);
55 void removeCallbacks(Runnable runnable)
    [all...]
  /hardware/qcom/gps/msm8909/utils/
LocThread.h 35 // abstract class to be implemented by client to provide a runnable class
69 // client starts thread with a runnable, which implements
72 // runnable is an obj managed by client. Client creates and
79 bool start(tCreate creator, const char* threadName, LocRunnable* runnable, bool joinable = true);
80 inline bool start(const char* threadName, LocRunnable* runnable, bool joinable = true) {
81 return start(NULL, threadName, runnable, joinable);
  /hardware/qcom/gps/msm8909w_3100/utils/
LocThread.h 35 // abstract class to be implemented by client to provide a runnable class
69 // client starts thread with a runnable, which implements
72 // runnable is an obj managed by client. Client creates and
79 bool start(tCreate creator, const char* threadName, LocRunnable* runnable, bool joinable = true);
80 inline bool start(const char* threadName, LocRunnable* runnable, bool joinable = true) {
81 return start(NULL, threadName, runnable, joinable);

Completed in 741 milliseconds

1 2 3 4 5 6 7 8 91011>>