/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
CallablesTest.java | 21 import java.util.concurrent.Callable; 34 Callable<Object> callable = Callables.returning(value); local 35 assertSame(value, callable.call()); 37 assertSame(value, callable.call());
|
AbstractListeningExecutorServiceTest.java | 24 import java.util.concurrent.Callable; 67 * Completed submit(callable) returns result 104 Future future = e.submit(Executors.callable( 127 Future future = e.submit(Executors.callable( 147 Future future = e.submit(Executors.callable( 176 * submit(null callable) throws NPE 181 e.submit((Callable<?>) null); 187 * submit(callable).get() throws InterruptedException if interrupted 196 final Callable<Void> awaiter = new CheckedCallable<Void>() { 221 * get of submit(callable) throws ExecutionException if callabl [all...] |
/libcore/luni/src/test/java/sun/misc/ |
UnsafeTest.java | 21 import java.util.concurrent.Callable; 39 Callable<Object> callable = Executors.callable(new Runnable() { local 46 callable.call();
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
ListenableFutureTask.java | 19 import java.util.concurrent.Callable; 42 * given {@code Callable}. 44 * @param callable the callable task 47 public static <V> ListenableFutureTask<V> create(Callable<V> callable) { 48 return new ListenableFutureTask<V>(callable); 68 private ListenableFutureTask(Callable<V> callable) { 69 super(callable); [all...] |
FakeTimeLimiter.java | 21 import java.util.concurrent.Callable; 43 public <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, 45 return callable.call(); // fooled you
|
TimeLimiter.java | 21 import java.util.concurrent.Callable; 82 * Invokes a specified Callable, timing out after the specified time limit. 91 * @param callable the Callable to execute 98 * @return the result returned by the Callable 104 <T> T callWithTimeout(Callable<T> callable, long timeoutDuration,
|
SimpleTimeLimiter.java | 31 import java.util.concurrent.Callable; 100 Callable<Object> callable = new Callable<Object>() { 111 return callWithTimeout(callable, timeoutDuration, timeoutUnit, 120 public <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, 122 checkNotNull(callable); 126 Future<T> future = executor.submit(callable);
|
MoreExecutors.java | 25 import java.util.concurrent.Callable; 461 Callable<V> callable, long delay, TimeUnit unit) { 462 return delegate.schedule(callable, delay, unit);
|
/external/jmonkeyengine/engine/src/core/com/jme3/app/ |
AppTask.java | 51 private final Callable<V> callable; field in class:AppTask 61 * {@link Callable}. 63 * @param callable The callable to be executed 65 public AppTask(Callable<V> callable) { 66 this.callable = callable; 136 public Callable<V> getCallable() [all...] |
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/ |
RealMediaPlayerTest.java | 21 import java.util.concurrent.Callable; 34 Callable<MediaPlayer> callable = new Callable<MediaPlayer>() { local 40 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable);
|
/libcore/luni/src/main/java/java/util/concurrent/ |
FutureTask.java | 20 * <p>A <tt>FutureTask</tt> can be used to wrap a {@link Callable} or 39 * given <tt>Callable</tt>. 41 * @param callable the callable task 42 * @throws NullPointerException if callable is null 44 public FutureTask(Callable<V> callable) { 45 if (callable == null) 47 sync = new Sync(callable); 63 sync = new Sync(Executors.callable(runnable, result)) 173 private final Callable<V> callable; field in class:FutureTask.Sync [all...] |
Executors.java | 21 * ThreadFactory}, and {@link Callable} classes defined in this 34 * <li> Methods that create and return a {@link Callable} 36 * in execution methods requiring <tt>Callable</tt>. 328 * Returns a {@link Callable} object that, when 331 * <tt>Callable</tt> to an otherwise resultless action. 334 * @return a callable object 337 public static <T> Callable<T> callable(Runnable task, T result) { method in class:Executors 344 * Returns a {@link Callable} object that, when 347 * @return a callable objec 350 public static Callable<Object> callable(Runnable task) { method in class:Executors 363 public static Callable<Object> callable(final PrivilegedAction<?> action) { method in class:Executors [all...] |
ScheduledExecutorService.java | 90 * @param callable the function to execute 96 * @throws NullPointerException if callable is null 98 public <V> ScheduledFuture<V> schedule(Callable<V> callable,
|
ScheduledThreadPoolExecutor.java | 63 * {@code Callable}) that can be used to customize the concrete task 82 * Callable<V> c, RunnableScheduledFuture<V> task) { 198 ScheduledFutureTask(Callable<V> callable, long ns) { 199 super(callable); 375 * Modifies or replaces the task used to execute a callable. 380 * @param callable the submitted Callable 381 * @param task the task created to execute the callable 382 * @return a task that can execute the callable [all...] |
AbstractExecutorService.java | 30 * protected <V> RunnableFuture<V> newTaskFor(Callable<V> c) { 61 * Returns a <tt>RunnableFuture</tt> for the given callable task. 63 * @param callable the callable task being wrapped 65 * underlying callable and which, as a <tt>Future</tt>, will yield 66 * the callable's result as its result and provide for 70 protected <T> RunnableFuture<T> newTaskFor(Callable<T> callable) { 71 return new FutureTask<T>(callable); 100 public <T> Future<T> submit(Callable<T> task) [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
UpdateControl.java | 38 import java.util.concurrent.Callable; 47 * mySpatial.getControl(UpdateControl.class).enqueue(new Callable() { 61 * Enqueues a task/callable object to execute in the jME3 64 public <V> Future<V> enqueue(Callable<V> callable) { 65 AppTask<V> task = new AppTask<V>(callable);
|
/external/junit/src/org/junit/rules/ |
ErrorCollector.java | 10 import java.util.concurrent.Callable; 64 checkSucceeds(new Callable<Object>() { 73 * Adds to the table the exception, if any, thrown from {@code callable}. 75 * {@code callable} threw an exception. 77 public Object checkSucceeds(Callable<Object> callable) { 79 return callable.call();
|
/external/webkit/Tools/Scripts/webkitpy/test/ |
skip.py | 37 if not callable(attr):
|
/external/v8/test/mjsunit/ |
array-tostring.js | 29 // is callable. Otherwise, just use the original Object.toString function. 52 // Non-callable join function is ignored and Object.prototype.toString is 55 a3.join = "not callable"; 58 // Non-existing join function is treated same as non-callable. 90 // Non-callable join works same as for Array. 93 join: "not callable"}; 131 // If toLocaleString of element is not callable, throw a TypeError. 132 var la2 = [1, {toLocaleString: "not callable"}, 3]; 135 // If toLocaleString of element is callable, call it.
|
json.js | 60 valueOf: "not callable", 67 valueOf: "not callable", 68 toString: "not callable either", 73 valueOf: "not callable", 83 ISOString: "not callable"}; 356 numFoo.valueOf = "not callable"; 366 str37.toString = "not callable"; 372 var func = function() { /* Is callable */ }; 374 var funcJSON = function() { /* Is callable */ }; 377 var re = /Is callable/; [all...] |
object-toprimitive.js | 87 toStringFunc = "not callable"; 94 valueOfFunc = "not callable";
|
/external/junit/src/org/junit/internal/runners/ |
MethodRoadie.java | 6 import java.util.concurrent.Callable; 60 Callable<Object> callable= new Callable<Object>() { 66 Future<Object> result= service.submit(callable);
|
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
IntegrationTestUtils.java | 37 import java.util.concurrent.Callable; 62 runOnUiThreadAndGetTheResult(new Callable<Void>() { 77 return runOnUiThreadAndGetTheResult(new Callable<CharSequence>() { 88 * Execute a callable on the ui thread, returning its result synchronously. 91 * before executing this callable. 93 public <T> T runOnUiThreadAndGetTheResult(Callable<T> callable) throws Throwable { 94 FutureTask<T> future = new FutureTask<T>(callable); 142 return runOnUiThreadAndGetTheResult(new Callable<List<TextView>>() {
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerFlakyNetworkTest.java | 37 import java.util.concurrent.Callable; 197 Callable<MediaPlayer> callable = new Callable<MediaPlayer>() { local 203 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable);
|
/external/v8/src/ |
execution.cc | 144 Handle<Object> Execution::Call(Handle<Object> callable, 152 if (!callable->IsJSFunction()) { 153 callable = TryGetFunctionDelegate(callable, pending_exception); 154 if (*pending_exception) return callable; 156 Handle<JSFunction> func = Handle<JSFunction>::cast(callable); 170 if (*pending_exception) return callable; 271 // throw a non-callable exception. 332 // throw a non-callable exception.
|