Home
last modified time | relevance | path

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

1234

/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DExecutionListBenchmark.java53 void add(Runnable runnable, Executor executor); in add() argument
64 @Override public void add(Runnable runnable, Executor executor) { in newExecutionList() argument
65 list.add(runnable, executor); in newExecutionList()
82 @Override public void add(Runnable runnable, Executor executor) { in newExecutionList() argument
83 list.add(runnable, executor); in newExecutionList()
100 @Override public void add(Runnable runnable, Executor executor) { in newExecutionList() argument
101 list.add(runnable, executor); in newExecutionList()
118 @Override public void add(Runnable runnable, Executor executor) {
119 list.add(runnable, executor);
136 @Override public void add(Runnable runnable, Executor executor) {
[all …]
/external/robolectric/v1/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.java81 public void add(Runnable runnable, Executor executor) { in add() argument
85 Preconditions.checkNotNull(runnable, "Runnable was null."); in add()
93 runnables = new RunnableExecutorPair(runnable, executor, runnables); in add()
101 executeListener(runnable, executor); in add()
145 executeListener(reversedList.runnable, reversedList.executor); in execute()
154 private static void executeListener(Runnable runnable, Executor executor) { in executeListener() argument
156 executor.execute(runnable); in executeListener()
162 + runnable + " with executor " + executor, e); in executeListener()
167 final Runnable runnable; field in ExecutionList.RunnableExecutorPair
171 RunnableExecutorPair(Runnable runnable, Executor executor, RunnableExecutorPair next) { in RunnableExecutorPair() argument
[all …]
DListenableFutureTask.java69 Runnable runnable, @Nullable V result) { in create() argument
70 return new ListenableFutureTask<V>(runnable, result); in create()
77 ListenableFutureTask(Runnable runnable, @Nullable V result) { in ListenableFutureTask() argument
78 super(runnable, result); in ListenableFutureTask()
DAbstractScheduledService.java153 Runnable runnable);
289 @Override public Thread newThread(Runnable runnable) {
290 return MoreExecutors.newThread(serviceName(), runnable);
429 Runnable runnable) {
430 this.wrappedRunnable = runnable;
489 Runnable runnable) {
490 ReschedulableCallable task = new ReschedulableCallable(service, executor, runnable);
/external/guava/guava-testlib/test/com/google/common/testing/anotherpackage/
DForwardingWrapperTesterTest.java67 @Override public Runnable apply(final Runnable runnable) { in testVoidMethodForwarding()
68 return new ForwardingRunnable(runnable); in testVoidMethodForwarding()
76 @Override public Runnable apply(final Runnable runnable) { in testToStringForwarding()
77 return new ForwardingRunnable(runnable) { in testToStringForwarding()
79 return runnable.toString(); in testToStringForwarding()
88 @Override public Runnable apply(final Runnable runnable) { in testFailsToForwardToString()
89 return new ForwardingRunnable(runnable) { in testFailsToForwardToString()
101 @Override public Runnable apply(final Runnable runnable) { in testFailsToForwardHashCode()
102 return new ForwardingRunnable(runnable) { in testFailsToForwardHashCode()
106 return runnable.equals(that.runnable); in testFailsToForwardHashCode()
[all …]
/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/robolectric/v1/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/glide/library/src/main/java/com/bumptech/glide/load/engine/executor/
DFifoPriorityThreadPoolExecutor.java36 protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) { in newTaskFor() argument
37 return new LoadTask<T>(runnable, value, ordering.getAndIncrement()); in newTaskFor()
47 public Thread newThread(Runnable runnable) { in newThread() argument
48 final Thread result = new Thread(runnable, "fifo-pool-thread-" + threadNum) { in newThread()
65 public LoadTask(Runnable runnable, T result, int order) { in LoadTask() argument
66 super(runnable, result); in LoadTask()
67 if (!(runnable instanceof Prioritized)) { in LoadTask()
71 priority = ((Prioritized) runnable).getPriority(); in LoadTask()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAbstractListeningExecutorServiceTest.java42 TestRunnable runnable = new TestRunnable(); in testSubmit() local
43 ListenableFuture<?> runnableFuture = e.submit(runnable); in testSubmit()
46 assertTrue(runnable.run); in testSubmit()
83 public void execute(Runnable runnable) { in execute() argument
84 assertTrue(runnable instanceof ListenableFutureTask); in execute()
85 runnable.run(); in execute()
/external/libmojo/mojo/android/system/src/org/chromium/mojo/system/impl/
DBaseRunLoop.java46 public void postDelayedTask(Runnable runnable, long delay) { in postDelayedTask() argument
48 nativePostDelayedTask(mRunLoopID, runnable, delay); in postDelayedTask()
64 private static void runRunnable(Runnable runnable) { in runRunnable() argument
65 runnable.run(); in runRunnable()
72 private native void nativePostDelayedTask(long runLoopID, Runnable runnable, long delay); in nativePostDelayedTask() argument
/external/mockito/src/test/java/org/mockitoutil/
DThrowableAssert.java12 private ThrowableAssert(Runnable runnable) { in ThrowableAssert() argument
14 runnable.run(); in ThrowableAssert()
40 public static ThrowableAssert assertThat(Runnable runnable) { in assertThat() argument
41 return new ThrowableAssert(runnable); in assertThat()
/external/junit/src/main/java/org/junit/internal/runners/
DClassRoadie.java23 private final Runnable runnable; field in ClassRoadie
26 Description description, Runnable runnable) { in ClassRoadie() argument
30 this.runnable = runnable; in ClassRoadie()
34 runnable.run(); in runUnprotected()
/external/autotest/client/site_tests/network_FirewallHolePunch/src/tcpserver/commands/
DBrowserCommands.js25 Commands.prototype.addCommand=function(name, help, runnable) { argument
30 this.commands[name] = {help: help, runnable: runnable}; property
54 return this.commands[name].runnable.call(context, args);
/external/volley/src/main/java/com/android/volley/
DExecutorDelivery.java59 public void postResponse(Request<?> request, Response<?> response, Runnable runnable) { in postResponse() argument
62 mResponsePoster.execute(new ResponseDeliveryRunnable(request, response, runnable)); in postResponse()
82 public ResponseDeliveryRunnable(Request request, Response response, Runnable runnable) { in ResponseDeliveryRunnable() argument
85 mRunnable = runnable; in ResponseDeliveryRunnable()
/external/robolectric/v1/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/v8/tools/
Drun_perf.py623 def _Run(self, runnable, count, no_patch=False): argument
626 def Run(self, runnable, count): argument
638 stdout = self._Run(runnable, count, no_patch=False)
640 return stdout, self._Run(runnable, count, no_patch=True)
674 def _Run(self, runnable, count, no_patch=False): argument
678 command = self.command_prefix + runnable.GetCommand(shell_dir,
683 timeout=runnable.timeout,
697 print ">>> Test timed out after %ss." % runnable.timeout
813 def _Run(self, runnable, count, no_patch=False): argument
820 AndroidPlatform.DEVICE_DIR, target_dir, runnable.binary)
[all …]
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/util/
DLooperExecutor.java83 public synchronized void execute(final Runnable runnable) { in execute() argument
89 runnable.run(); in execute()
91 handler.post(runnable); in execute()
/external/vogar/test/vogar/target/junit4/
DMockitoFieldTest.java32 private Runnable runnable; field in MockitoFieldTest
36 assertNotNull("Runnable field was not mocked", runnable); in test()
/external/webrtc/webrtc/base/
Dthread.cc128 Runnable* runnable; member
190 bool Thread::Start(Runnable* runnable) { in Start() argument
204 init->runnable = runnable; in Start()
297 if (init->runnable) { in PreRun()
298 init->runnable->Run(init->thread); in PreRun()
/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/guice/core/src/com/google/inject/internal/
DProcessedBindingData.java38 void addUninitializedBinding(Runnable runnable) { in addUninitializedBinding() argument
39 uninitializedBindings.add(runnable); in addUninitializedBinding()

1234