/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...] |
/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/support/v4/jellybean/android/support/v4/view/ |
ViewPropertyAnimatorCompatJB.java | 24 public static void withStartAction(View view, Runnable runnable) { 25 view.animate().withStartAction(runnable); 28 public static void withEndAction(View view, Runnable runnable) { 29 view.animate().withEndAction(runnable);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
SchedulingUtils.java | 29 public static void doAfterLayout(final View view, final Runnable runnable) { 35 runnable.run(); 43 final Runnable runnable) { 48 runnable.run();
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
SchedulingUtils.java | 28 public static void doAfterLayout(final View view, final Runnable runnable) { 34 runnable.run(); 42 final Runnable runnable) { 47 runnable.run();
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/executor/ |
FifoPriorityThreadPoolExecutor.java | 12 * A FIFO priority {@link ThreadPoolExecutor} that prioritizes submitted {@link Runnable}s by assuming they implement 30 super(corePoolSize, maximumPoolSize, keepAlive, timeUnit, new PriorityBlockingQueue<Runnable>(), threadFactory); 34 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { 35 return new FifoPriorityLoadTask<T>(runnable, value, ordering.getAndIncrement()); 41 public Thread newThread(Runnable runnable) { 42 final Thread result = new Thread(runnable, "image-manager-resize-" + threadNum) { 58 public FifoPriorityLoadTask(Runnable runnable, T result, int order) [all...] |
/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 | 36 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>(); 42 Pair<Runnable, Integer> p; 43 Runnable r; 63 private class IdleRunnable implements Runnable { 64 Runnable mRunnable; 66 IdleRunnable(Runnable r) { 78 /** Schedule runnable to run after everything that's on the queue right now. */ 79 public void post(Runnable runnable) { [all...] |
MainThreadExecutor.java | 36 public void execute(Runnable runnable) { 38 runnable.run(); 40 mHandler.post(runnable); 58 public List<Runnable> shutdownNow() {
|
/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)
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
NamedThreadFactory.java | 34 public Thread newThread(final Runnable runnable) { 35 final Thread thread = mDefaultThreadFactory.newThread(runnable);
|
/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 | 24 def __init__(self, runnable, set_up=None, tear_down=None): 26 self.runnable = runnable 28 self.qualified_name = self._GetQualifiedName(runnable) 34 def _GetQualifiedName(runnable): 35 """Helper method to infer a runnable's name and module name. 42 runnable: the test method to get the qualified name for 45 qualified name for this runnable, incl. module name and method name. 47 runnable_name = runnable.__name__ 50 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();
|