Home
last modified time | relevance | path

Searched refs:runnable (Results 1 – 25 of 72) sorted by relevance

123

/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/execution/
DExecutionUtils.java82 public static boolean runIgnore(RunnableEx runnable) { in runIgnore() argument
84 runnable.run(); in runIgnore()
96 public static boolean runLog(RunnableEx runnable) { in runLog() argument
98 runnable.run(); in runLog()
109 public static void runRethrow(RunnableEx runnable) { in runRethrow() argument
111 runnable.run(); in runRethrow()
120 public static void runRethrow(RunnableEx runnable, String format, Object... args) { in runRethrow() argument
122 runnable.run(); in runRethrow()
133 public static void runDesignTime(RunnableEx runnable) throws Exception { in runDesignTime() argument
137 runnable.run(); in runDesignTime()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/util/
DScheduler.java30 public void postDelayed(Runnable runnable, long delayMillis) { in postDelayed() argument
32 postedRunnables.add(new PostedRunnable(runnable, currentTime + delayMillis)); in postDelayed()
35 runnable.run(); in postDelayed()
39 public void post(Runnable runnable) { in post() argument
40 postDelayed(runnable, 0); in post()
43 public void postAtFrontOfQueue(Runnable runnable) { in postAtFrontOfQueue() argument
45 postedRunnables.add(0, new PostedRunnable(runnable, currentTime)); in postAtFrontOfQueue()
47 runnable.run(); in postAtFrontOfQueue()
51 public void remove(Runnable runnable) { in remove() argument
55 if (next.runnable == runnable) { in remove()
[all …]
DRobolectricBackgroundExecutorService.java47 public <T> Future<T> submit(Runnable runnable, T t) { in submit() argument
48 return schedule(new FutureTask<T>(runnable, t)); in submit()
52 public Future<?> submit(Runnable runnable) { in submit() argument
53 return submit(runnable, null); in submit()
88 public void execute(Runnable runnable) { in execute() argument
89 submit(runnable); in execute()
/external/emma/core/java13/com/vladium/util/exit/
DExitHookManager.java29 public abstract boolean addExitHook (Runnable runnable); in addExitHook() argument
30 public abstract boolean removeExitHook (Runnable runnable); in removeExitHook() argument
61 public synchronized boolean addExitHook (final Runnable runnable) in addExitHook() argument
63 if ((runnable != null) && ! m_exitThreadMap.containsKey (runnable)) in addExitHook()
65 …final Thread exitThread = new Thread (runnable, IAppConstants.APP_NAME + " shutdown handler thread… in addExitHook()
70 m_exitThreadMap.put (runnable, exitThread); // TODO: use identity here in addExitHook()
84 public synchronized boolean removeExitHook (final Runnable runnable) in removeExitHook() argument
86 if (runnable != null) in removeExitHook()
88 … final Thread exitThread = (Thread) m_exitThreadMap.get (runnable); // TODO: use identity here in removeExitHook()
95 m_exitThreadMap.remove (runnable); in removeExitHook()
/external/guava/guava/src/com/google/common/util/concurrent/
DExecutionList.java80 public void add(Runnable runnable, Executor executor) { in add() argument
84 Preconditions.checkNotNull(runnable, "Runnable was null."); in add()
94 runnables.add(new RunnableExecutorPair(runnable, executor)); in add()
105 new RunnableExecutorPair(runnable, executor).execute(); in add()
139 final Runnable runnable; field in ExecutionList.RunnableExecutorPair
142 RunnableExecutorPair(Runnable runnable, Executor executor) { in RunnableExecutorPair() argument
143 this.runnable = runnable; in RunnableExecutorPair()
149 executor.execute(runnable); in execute()
155 + runnable + " with executor " + executor, e); in execute()
DListenableFutureTask.java64 Runnable runnable, @Nullable V result) { in create() argument
65 return new ListenableFutureTask<V>(runnable, result); in create()
72 private ListenableFutureTask(Runnable runnable, @Nullable V result) { in ListenableFutureTask() argument
73 super(runnable, result); in ListenableFutureTask()
DAbstractScheduledService.java148 Runnable runnable);
334 Runnable runnable) {
335 this.wrappedRunnable = runnable;
394 Runnable runnable) {
395 ReschedulableCallable task = new ReschedulableCallable(service, executor, runnable);
/external/proguard/src/proguard/gui/
DSwingUtil.java43 public static void invokeAndWait(Runnable runnable) in invokeAndWait() argument
50 runnable.run(); in invokeAndWait()
54 SwingUtilities.invokeAndWait(runnable); in invokeAndWait()
71 public static void invokeLater(Runnable runnable) in invokeLater() argument
75 runnable.run(); in invokeLater()
79 SwingUtilities.invokeLater(runnable); in invokeLater()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/executor/
DFifoPriorityThreadPoolExecutor.java34 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument
35 return new FifoPriorityLoadTask<T>(runnable, value, ordering.getAndIncrement()); in newTaskFor()
41 public Thread newThread(Runnable runnable) { in newThread() argument
42 final Thread result = new Thread(runnable, "image-manager-resize-" + threadNum) { in newThread()
58 public FifoPriorityLoadTask(Runnable runnable, T result, int order) { in FifoPriorityLoadTask() argument
59 super(runnable, result); in FifoPriorityLoadTask()
60 if (!(runnable instanceof Prioritized)) { in FifoPriorityLoadTask()
64 priority = ((Prioritized) runnable).getPriority(); in FifoPriorityLoadTask()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
DSchedulerTest.java110 TestRunnable runnable = new TestRunnable(); in removeShouldRemoveAllInstancesOfRunnableFromQueue() local
111 scheduler.post(runnable); in removeShouldRemoveAllInstancesOfRunnableFromQueue()
112 scheduler.post(runnable); in removeShouldRemoveAllInstancesOfRunnableFromQueue()
114 scheduler.remove(runnable); in removeShouldRemoveAllInstancesOfRunnableFromQueue()
117 assertThat(runnable.wasRun, equalTo(false)); in removeShouldRemoveAllInstancesOfRunnableFromQueue()
124 TestRunnable runnable = new TestRunnable(); in resetShouldUnPause() local
125 scheduler.post(runnable); in resetShouldUnPause()
127 assertThat(runnable.wasRun, equalTo(false)); in resetShouldUnPause()
130 scheduler.post(runnable); in resetShouldUnPause()
131 assertThat(runnable.wasRun, equalTo(true)); in resetShouldUnPause()
DRobolectricBackgroundExecutorServiceTest.java20 private Runnable runnable; field in RobolectricBackgroundExecutorServiceTest
28 runnable = new Runnable() { in setUp()
37 executorService.execute(runnable); in execute_shouldRunStuffOnBackgroundThread()
47 Future<String> future = executorService.submit(runnable, "foo"); in submitRunnable_shouldRunStuffOnBackgroundThread()
63 runnable.run(); in submitCallable_shouldRunStuffOnBackgroundThread()
/external/chromium_org/build/android/pylib/host_driven/
Dtest_info_collection.py24 def __init__(self, runnable, set_up=None, tear_down=None): argument
26 self.runnable = runnable
28 self.qualified_name = self._GetQualifiedName(runnable)
34 def _GetQualifiedName(runnable): argument
47 runnable_name = runnable.__name__
50 os.path.basename(runnable.__globals__['__file__']))[0]
/external/chromium_org/chrome/browser/android/provider/
Drun_on_ui_thread_blocking.h20 static void Run(base::Callback<Signature> runnable) { in Run() argument
25 runnable, &finished)); in Run()
31 static void RunOnUIThread(base::Callback<Signature> runnable, in RunOnUIThread() argument
34 runnable.Run(); in RunOnUIThread()
/external/chromium_org/third_party/android_crazy_linker/src/src/
Dcrazy_linker_rdebug.cpp289 RDebugRunnable* runnable = static_cast<RDebugRunnable*>(opaque); in Run() local
291 LOG("%s: Callback received, runnable=%p\n", __FUNCTION__, runnable); in Run()
292 (*runnable->handler_)(runnable->rdebug_, runnable->entry_); in Run()
293 delete runnable; in Run()
309 RDebugRunnable* runnable = new RDebugRunnable(handler, this, entry); in PostCallback() local
312 if (!(*post_for_later_execution_)(context, &RDebugRunnable::Run, runnable)) { in PostCallback()
314 delete runnable; in PostCallback()
318 LOG("%s: Posted for later execution, runnable=%p\n", __FUNCTION__, runnable); in PostCallback()
/external/chromium_org/mojo/public/cpp/bindings/
Dcallback.h34 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback() argument
71 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback() argument
114 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback() argument
162 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback() argument
215 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback() argument
273 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback() argument
337 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback() argument
406 explicit Callback(Runnable* runnable) : sink_(runnable) {} in Callback() argument
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowLooper.java152 public boolean post(Runnable runnable, long delayMillis) {
154 scheduler.postDelayed(runnable, delayMillis);
161 public boolean postAtFrontOfQueue(Runnable runnable) {
163 scheduler.postAtFrontOfQueue(runnable);
/external/droiddriver/src/com/google/android/droiddriver/base/
DDroidDriverContext.java107 public boolean tryRunOnMainSync(Runnable runnable, long timeoutMillis) { in tryRunOnMainSync() argument
109 final FutureTask<?> futureTask = new FutureTask<Void>(runnable, null); in tryRunOnMainSync()
130 public void runOnMainSync(Runnable runnable) { in runOnMainSync() argument
132 if (!tryRunOnMainSync(runnable, timeoutMillis)) { in runOnMainSync()
/external/chromium_org/v8/tools/
Drun_benchmarks.py372 for runnable in FlattenRunnables(BuildGraphs(suite, options.arch)):
373 print ">>> Running suite: %s" % "/".join(runnable.graphs)
374 runnable.ChangeCWD(path)
378 for i in xrange(0, max(1, runnable.run_count)):
381 output = commands.Execute(runnable.GetCommand(shell_dir), timeout=60)
391 results += runnable.Run(Runner)
/external/apache-xml/src/main/java/org/apache/xml/utils/
DThreadControllerWrapper.java33 public static Thread runThread(Runnable runnable, int priority) in runThread() argument
35 return m_tpool.run(runnable, priority); in runThread()
/external/chromium_org/base/
Dbind_internal.h846 static ReturnType MakeItSo(Runnable runnable) {
847 return runnable.Run();
854 static void MakeItSo(Runnable runnable) {
855 runnable.Run();
862 static ReturnType MakeItSo(Runnable runnable, A1 a1) {
863 return runnable.Run(CallbackForward(a1));
870 static void MakeItSo(Runnable runnable, A1 a1) {
871 runnable.Run(CallbackForward(a1));
878 static void MakeItSo(Runnable runnable, BoundWeakPtr weak_ptr) {
882 runnable.Run(weak_ptr.get());
[all …]
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/
DUiUtils.java30 public static void runOnUiThread(Activity activity, final Runnable runnable) { in runOnUiThread() argument
35 runnable.run(); in runOnUiThread()
/external/chromium_org/components/cronet/android/sample/javatests/src/org/chromium/cronet_sample_apk/
DCriteriaHelper.java74 public static boolean runUntilCriteria(Runnable runnable, Criteria criteria, in runUntilCriteria() argument
81 runnable.run(); in runUntilCriteria()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dthread.cc142 Runnable* runnable; member
219 bool Thread::Start(Runnable* runnable) { in Start() argument
233 init->runnable = runnable; in Start()
353 if (init->runnable) { in PreRun()
354 init->runnable->Run(init->thread); in PreRun()
/external/chromium_org/third_party/webrtc/base/
Dthread.cc125 Runnable* runnable; member
202 bool Thread::Start(Runnable* runnable) { in Start() argument
216 init->runnable = runnable; in Start()
336 if (init->runnable) { in PreRun()
337 init->runnable->Run(init->thread); in PreRun()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DViewTest.java177 TestRunnable runnable = new TestRunnable(); in shouldPostActionsToTheMessageQueue() local
178 view.post(runnable); in shouldPostActionsToTheMessageQueue()
179 assertFalse(runnable.wasRun); in shouldPostActionsToTheMessageQueue()
182 assertTrue(runnable.wasRun); in shouldPostActionsToTheMessageQueue()
201 TestRunnable runnable = new TestRunnable(); in shouldPostActionsToTheMessageQueueWithDelay() local
202 view.postDelayed(runnable, 1); in shouldPostActionsToTheMessageQueueWithDelay()
203 assertFalse(runnable.wasRun); in shouldPostActionsToTheMessageQueueWithDelay()
206 assertTrue(runnable.wasRun); in shouldPostActionsToTheMessageQueueWithDelay()

123