/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();
|
/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...] |
/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/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();
|
/frameworks/volley/tests/src/com/android/volley/mock/ |
MockResponseDelivery.java | 41 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { 44 runnable.run();
|
/packages/apps/Email/src/com/android/email/ |
ControllerResultUiThreadWrapper.java | 52 private void run(Runnable runnable) { 54 runnable.run(); 56 mHandler.post(runnable); 63 run(new Runnable() { 65 /* It's possible this callback is unregistered after this Runnable was posted and 79 run(new Runnable() { 90 run(new Runnable() { 101 run(new Runnable() { 113 run(new Runnable() { [all...] |
/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...] |
ShadowMapController.java | 25 public void animateTo(com.google.android.maps.GeoPoint geoPoint, java.lang.Runnable runnable) { 27 runnable.run();
|
/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);
|
/external/junit/src/org/junit/internal/runners/ |
ClassRoadie.java | 23 private final Runnable fRunnable; 26 Description description, Runnable runnable) { 30 fRunnable= runnable;
|
/libcore/luni/src/main/java/java/lang/ |
Thread.java | 51 * or construct a new {@code Thread} and pass a {@link Runnable} to the constructor. 59 public class Thread implements Runnable { 86 RUNNABLE, 134 Runnable target; 154 private final List<Runnable> interruptActions = new ArrayList<Runnable>(); 186 * Constructs a new {@code Thread} with no {@code Runnable} object and a 191 * @see java.lang.Runnable 198 * Constructs a new {@code Thread} with a {@code Runnable} object and a 202 * @param runnable [all...] |
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
InactivityTimer.java | 88 public Thread newThread(Runnable runnable) { 89 Thread thread = new Thread(runnable);
|