/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...] |
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/execution/ |
ExecutionUtils.java | 82 public static boolean runIgnore(RunnableEx runnable) { 84 runnable.run(); 96 public static boolean runLog(RunnableEx runnable) { 98 runnable.run(); 109 public static void runRethrow(RunnableEx runnable) { 111 runnable.run(); 120 public static void runRethrow(RunnableEx runnable, String format, Object... args) { 122 runnable.run(); 133 public static void runDesignTime(RunnableEx runnable) throws Exception { 137 runnable.run() [all...] |
/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...] |
/external/guava/guava/src/com/google/common/util/concurrent/ |
ExecutionList.java | 29 * guarantees that every {@code Runnable} that is {@linkplain #add added} will 30 * be executed after {@link #execute()} is called. Any {@code Runnable} added 51 // The runnable,executor pairs to execute. 63 * Adds the {@code Runnable} and accompanying {@code Executor} to the list of 80 public void add(Runnable runnable, Executor executor) { 84 Preconditions.checkNotNull(runnable, "Runnable was null."); 94 runnables.add(new RunnableExecutorPair(runnable, executor)); 100 // Execute the runnable immediately. Because of scheduling this may end u 139 final Runnable runnable; field in class:ExecutionList.RunnableExecutorPair [all...] |
ListenableFutureTask.java | 53 * given {@code Runnable}, and arrange that {@code get} will return the 56 * @param runnable the runnable task 59 * {@code ListenableFuture<?> f = ListenableFutureTask.create(runnable, 64 Runnable runnable, @Nullable V result) { 65 return new ListenableFutureTask<V>(runnable, result); 72 private ListenableFutureTask(Runnable runnable, @Nullable V result) { 73 super(runnable, result) [all...] |
/external/robolectric/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...] |
RobolectricBackgroundExecutorService.java | 22 public List<Runnable> shutdownNow() { 47 public <T> Future<T> submit(Runnable runnable, T t) { 48 return schedule(new FutureTask<T>(runnable, t)); 52 public Future<?> submit(Runnable runnable) { 53 return submit(runnable, null); 57 Robolectric.getShadowApplication().getBackgroundScheduler().post(new Runnable() { 88 public void execute(Runnable runnable) { [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
SchedulingUtils.java | 28 public static void doAfterLayout(final View view, final Runnable runnable) { 34 runnable.run(); 41 public static void doAfterDraw(final View view, final Runnable runnable) { 46 runnable.run();
|
/external/chromium_org/chrome/browser/android/provider/ |
run_on_ui_thread_blocking.h | 17 // Runs the provided runnable in the UI thread synchronously. 18 // The runnable argument can be defined using base::Bind. 20 static void Run(base::Callback<Signature> runnable) { 25 runnable, &finished)); 31 static void RunOnUIThread(base::Callback<Signature> runnable, 34 runnable.Run();
|
/frameworks/base/core/tests/coretests/src/android/view/ |
RunQueue.java | 46 view.post(new Runnable() { 52 final Runnable runnable = new Runnable() { local 57 view.post(runnable); 58 view.post(runnable); 59 view.post(runnable); 60 view.post(runnable); 61 view.removeCallbacks(runnable);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
DeferredHandler.java | 35 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>(); 41 Pair<Runnable, Integer> p; 42 Runnable r; 62 private class IdleRunnable implements Runnable { 63 Runnable mRunnable; 65 IdleRunnable(Runnable r) { 77 /** Schedule runnable to run after everything that's on the queue right now. */ 78 public void post(Runnable runnable) { [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
DeferredHandler.java | 35 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>(); 41 Pair<Runnable, Integer> p; 42 Runnable r; 62 private class IdleRunnable implements Runnable { 63 Runnable mRunnable; 65 IdleRunnable(Runnable r) { 77 /** Schedule runnable to run after everything that's on the queue right now. */ 78 public void post(Runnable runnable) { [all...] |
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
ThreadControllerWrapper.java | 33 public static Thread runThread(Runnable runnable, int priority) 35 return m_tpool.run(runnable, priority); 38 public static void waitThread(Thread worker, Runnable task) 66 public Thread run(Runnable task, int priority) 87 public void waitThread(Thread worker, Runnable task)
|
/packages/apps/Browser/src/com/android/browser/ |
BackgroundHandler.java | 35 public static void execute(Runnable runnable) { 36 mThreadPool.execute(runnable);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/ |
CommonAction.java | 29 private Runnable mRunnable; 63 * Sets the {@link Runnable}. 64 * @see ICommonAction#setRunnable(Runnable) 67 public void setRunnable(Runnable runnable) { 68 mRunnable = runnable;
|
/frameworks/volley/src/com/android/volley/ |
ExecutorDelivery.java | 38 public void execute(Runnable command) { 59 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { 62 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, runnable)); 73 * A Runnable used for delivering network responses to a listener on the 77 private class ResponseDeliveryRunnable implements Runnable { 80 private final Runnable mRunnable; 82 public ResponseDeliveryRunnable(Request request, Response response, Runnable runnable) { 85 mRunnable = runnable; [all...] |
ResponseDelivery.java | 27 * Runnable will be executed after delivery. 29 public void postResponse(Request<?> request, Response<?> response, Runnable runnable);
|
/external/chromium_org/build/android/pylib/host_driven/ |
test_info_collection.py | 16 def __init__(self, runnable, set_up=None, tear_down=None): 18 self.runnable = runnable 20 self.qualified_name = self._GetQualifiedName(runnable) 25 def _GetQualifiedName(self, runnable): 26 """Helper method to infer a runnable's name and module name. 33 runnable: the test method to get the qualified name for 36 qualified name for this runnable, incl. module name and method name. 38 runnable_name = runnable.__name__ 41 os.path.basename(runnable.__globals__['__file__']))[0 [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
SchedulerTest.java | 80 scheduler.postDelayed(new Runnable() { 84 scheduler.postDelayed(new Runnable() { 110 TestRunnable runnable = new TestRunnable(); local 111 scheduler.post(runnable); 112 scheduler.post(runnable); 114 scheduler.remove(runnable); 117 assertThat(runnable.wasRun, equalTo(false)); 124 TestRunnable runnable = new TestRunnable(); local 125 scheduler.post(runnable); 127 assertThat(runnable.wasRun, equalTo(false)) [all...] |
RobolectricBackgroundExecutorServiceTest.java | 20 private Runnable runnable; field in class:RobolectricBackgroundExecutorServiceTest 28 runnable = new Runnable() { 37 executorService.execute(runnable); 47 Future<String> future = executorService.submit(runnable, "foo"); 63 runnable.run();
|
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
CriteriaHelper.java | 56 * Performs the runnable action, then checks whether the given criteria are satisfied 57 * until the specified timeout, using the pollForCriteria method. If not, then the runnable 60 public static boolean runUntilCriteria(Runnable runnable, Criteria criteria, 66 runnable.run();
|
UiUtils.java | 22 * Runs the runnable on the UI thread. 24 * @param activity The activity on which the runnable must run. 25 * @param runnable The runnable to run. 27 public static void runOnUiThread(Activity activity, final Runnable runnable) { 29 activity.runOnUiThread(new Runnable() { 32 runnable.run(); 39 Assert.assertTrue("Interrupted while waiting for main thread Runnable", false);
|
/frameworks/volley/tests/src/com/android/volley/mock/ |
MockResponseDelivery.java | 41 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { 44 runnable.run();
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowLooper.java | 12 * Shadow for {@code Looper} that enqueues posted {@link Runnable}s to be run (on this thread) later. {@code Runnable}s 104 * Causes {@link Runnable}s that have been scheduled to run immediately to actually run. Does not advance the 112 * Causes {@link Runnable}s that have been scheduled to run within the next {@code intervalMillis} milliseconds to 122 * Causes all of the {@link Runnable}s that have been scheduled to run while advancing the scheduler's clock to the 123 * start time of the last scheduled {@link Runnable}. 130 * Causes the next {@link Runnable}(s) that have been scheduled to run while advancing the scheduler's clock to its 131 * start time. If more than one {@link Runnable} is scheduled to run at this time then they will all be run. 138 * Causes only one of the next {@link Runnable}s that have been scheduled to run while advancing the scheduler's 139 * clock to its start time. Only one {@link Runnable} will run even if more than one has ben scheduled to run at th [all...] |
/cts/libs/vogar-expect/src/vogar/util/ |
Threads.java | 34 public synchronized Thread newThread(Runnable r) { 50 new LinkedBlockingQueue<Runnable>(Integer.MAX_VALUE), threadFactory) { 51 @Override protected void afterExecute(Runnable runnable, Throwable throwable) { if (throwable != null) { 52 Log.info("Unexpected failure from " + runnable, throwable);
|