Searched refs:callable (Results 1 - 25 of 35) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DCallablesTest.java34 Callable<Object> callable = Callables.returning(value);
35 assertSame(value, callable.call());
37 assertSame(value, callable.call());
H A DAbstractListeningExecutorServiceTest.java67 * 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
187 * submit(callable).get() throws InterruptedException if interrupted
221 * get of submit(callable) throws ExecutionException if callable
619 l.add(Executors.callable(
/external/guava/guava/src/com/google/common/util/concurrent/
H A DListenableFutureTask.java44 * @param callable the callable task
47 public static <V> ListenableFutureTask<V> create(Callable<V> callable) { argument
48 return new ListenableFutureTask<V>(callable);
68 private ListenableFutureTask(Callable<V> callable) { argument
69 super(callable);
H A DFakeTimeLimiter.java43 public <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, argument
45 return callable.call(); // fooled you
H A DTimeLimiter.java91 * @param callable the Callable to execute
104 <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, argument
H A DSimpleTimeLimiter.java100 Callable<Object> callable = new Callable<Object>() {
111 return callWithTimeout(callable, timeoutDuration, timeoutUnit,
120 public <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, argument
122 checkNotNull(callable);
126 Future<T> future = executor.submit(callable);
H A DMoreExecutors.java461 Callable<V> callable, long delay, TimeUnit unit) {
462 return delegate.schedule(callable, delay, unit);
460 schedule( Callable<V> callable, long delay, TimeUnit unit) argument
/external/jmonkeyengine/engine/src/core/com/jme3/app/
H A DAppTask.java51 private final Callable<V> callable; field in class:AppTask
63 * @param callable The callable to be executed
65 public AppTask(Callable<V> callable) { argument
66 this.callable = callable;
137 return callable;
142 final V tmpResult = callable.call();
H A DApplication.java557 * Enqueues a task/callable object to execute in the jME3
564 public <V> Future<V> enqueue(Callable<V> callable) { argument
565 AppTask<V> task = new AppTask<V>(callable);
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/
H A DUpdateControl.java61 * Enqueues a task/callable object to execute in the jME3
64 public <V> Future<V> enqueue(Callable<V> callable) { argument
65 AppTask<V> task = new AppTask<V>(callable);
/external/junit/src/org/junit/rules/
H A DErrorCollector.java73 * 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) { argument
79 return callable.call();
/external/webkit/Tools/Scripts/webkitpy/test/
H A Dskip.py37 if not callable(attr):
/external/junit/src/org/junit/internal/runners/
H A DMethodRoadie.java60 Callable<Object> callable= new Callable<Object>() {
66 Future<Object> result= service.submit(callable);
/external/v8/src/
H A Dexecution.cc144 Handle<Object> Execution::Call(Handle<Object> callable, argument
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.
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/
H A DPhysicsSpace.java368 public static <V> Future<V> enqueueOnThisThread(Callable<V> callable) { argument
369 AppTask<V> task = new AppTask<V>(callable);
376 * calls the callable on the next physics tick (ensuring e.g. force applying)
378 * @param callable
381 public <V> Future<V> enqueue(Callable<V> callable) { argument
382 AppTask<V> task = new AppTask<V>(callable);
/external/protobuf/python/
H A Dmox.py216 obj: A Python object (class, module, instance, callable).
381 if callable(getattr(class_to_mock, method)):
491 """Provide custom logic for mocking classes that are callable."""
493 # Verify the class we are mocking is callable
494 callable = self._class_to_mock.__dict__.get('__call__', None)
495 if callable is None:
496 raise TypeError('Not callable')
742 side_effects: A callable which modifies the parameters or other relevant
1116 in order to validate it. You can use this to have a callable validate any
1117 parameter. The callable shoul
[all...]
/external/sonivox/arm-hybrid-22k/lib_src/
H A DARM-E_mastergain_gnu.s6 @ C-callable.
H A DARM-E_interpolate_loop_gnu.s6 @ C-callable.
H A DARM-E_interpolate_noloop_gnu.s6 @ C-callable.
H A DARM-E_voice_gain_gnu.s6 @ C-callable.
/external/sonivox/arm-wt-22k/lib_src/
H A DARM-E_mastergain_gnu.s6 @ C-callable.
/external/v8/test/mjsunit/
H A Djson.js60 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...]
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/mod_pywebsocket/
H A Ddispatch.py164 """Extracts a callable with the specified name from the given dictionary
171 if not callable(handler):
172 raise DispatchException('%s is not callable.' % name)
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/
H A DPhysicsSpace.java342 public static <V> Future<V> enqueueOnThisThread(Callable<V> callable) { argument
343 AppTask<V> task = new AppTask<V>(callable);
350 * calls the callable on the next physics tick (ensuring e.g. force applying)
352 * @param callable
355 public <V> Future<V> enqueue(Callable<V> callable) { argument
356 AppTask<V> task = new AppTask<V>(callable);
/external/libvpx/examples/includes/geshi/geshi/
H A Dpython.php71 '__import__', 'abs', 'basestring', 'bool', 'callable', 'chr', 'classmethod', 'cmp',
158 // Class creation, callable objects

Completed in 561 milliseconds

12