/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/ |
H A D | SimpleFuture.java | 18 private final Callable<T> callable; field in class:SimpleFuture 20 public SimpleFuture(Callable<T> callable) { argument 21 this.callable = callable; 58 result = callable.call();
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
H A D | ListenableFutureTask.java | 49 * @param callable the callable task 52 public static <V> ListenableFutureTask<V> create(Callable<V> callable) { argument 53 return new ListenableFutureTask<V>(callable); 73 ListenableFutureTask(Callable<V> callable) { argument 74 super(callable);
|
H A D | FakeTimeLimiter.java | 48 public <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, argument 51 return callable.call(); // fooled you
|
H A D | Callables.java | 49 * Wraps the given callable such that for the duration of {@link Callable#call} the thread that is 53 * @param callable The callable to wrap 55 * for each invocation of the wrapped callable. 57 static <T> Callable<T> threadRenaming(final Callable<T> callable, argument 60 checkNotNull(callable); 67 return callable.call(); 84 * for each invocation of the wrapped callable.
|
H A D | TimeLimiter.java | 91 * @param callable the Callable to execute 104 <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, argument
|
H A D | AbstractListeningExecutorService.java | 45 @Override protected final <T> ListenableFutureTask<T> newTaskFor(Callable<T> callable) { argument 46 return ListenableFutureTask.create(callable);
|
H A D | SimpleTimeLimiter.java | 100 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);
|
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/ |
H A D | Generator.java | 57 * Utility method that looks for a method or constructor with an identical signature as "callable" and replaces it 58 * with callable. If not found, adds callable. When the new callable has no javadoc, any old javadoc will be kept. 60 protected void addOrReplaceWhenSameSignature(ClassOrInterfaceDeclaration containingClassOrInterface, CallableDeclaration<?> callable) { argument 61 addMethod(containingClassOrInterface, callable, () -> containingClassOrInterface.addMember(callable)); 65 * Utility method that looks for a method or constructor with an identical signature as "callable" and replaces it 66 * with callable. If not found, fails. When the new callable ha 69 replaceWhenSameSignature(ClassOrInterfaceDeclaration containingClassOrInterface, CallableDeclaration<?> callable) argument 76 addMethod( ClassOrInterfaceDeclaration containingClassOrInterface, CallableDeclaration<?> callable, Runnable onNoExistingMethod) argument 98 removeMethodWithSameSignature(ClassOrInterfaceDeclaration containingClassOrInterface, CallableDeclaration<?> callable) argument [all...] |
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
H A D | CallablesTest.java | 38 Callable<Object> callable = Callables.returning(value); 39 assertSame(value, callable.call()); 41 assertSame(value, callable.call()); 47 Callable<Void> callable = new Callable<Void>() { 53 Callables.threadRenaming(callable, newName).call(); 61 Callable<Void> callable = new Callable<Void>() { 68 Callables.threadRenaming(callable, newName).call(); 86 Callable<Void> callable = new Callable<Void>() { 92 Callables.threadRenaming(callable, newName).call();
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
H A D | TransferRequestIntegrationTest.java | 73 Callable<Callable<Boolean>> callable = new Callable<Callable<Boolean>>() { 85 Callable<Boolean> transfer = ServletScopes.scopeRequest(callable, seedMap).call(); 93 Callable<Boolean> callable = new Callable<Boolean>() { 110 assertTrue(ServletScopes.scopeRequest(callable, seedMap).call()); 114 Callable<Boolean> callable = new Callable<Boolean>() { 121 assertFalse(ServletScopes.scopeRequest(callable, seedMap).call());
|
/external/python/cpython3/Lib/encodings/ |
H A D | __init__.py | 127 if not callable(entry[0]) or not callable(entry[1]) or \ 128 (entry[2] is not None and not callable(entry[2])) or \ 129 (entry[3] is not None and not callable(entry[3])) or \ 130 (len(entry) > 4 and entry[4] is not None and not callable(entry[4])) or \ 131 (len(entry) > 5 and entry[5] is not None and not callable(entry[5])):
|
/external/v8/src/compiler/ |
H A D | js-generic-lowering.cc | 56 Callable callable = CodeFactory::Name(isolate()); \ 57 ReplaceWithStubCall(node, callable, flags); \ 85 void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable, argument 87 ReplaceWithStubCall(node, callable, flags, node->op()->properties()); 90 void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable, argument 94 const CallInterfaceDescriptor& descriptor = callable.descriptor(); 98 Node* stub_code = jsgraph()->HeapConstant(callable.code()); 124 Callable callable = CodeFactory::StrictEqual(isolate()); local 126 ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags, 133 Callable callable local 142 Callable callable = CodeFactory::ToBoolean(isolate()); local 151 Callable callable = CodeFactory::ClassOf(isolate()); local 160 Callable callable = CodeFactory::Typeof(isolate()); local 170 Callable callable = CodeFactory::KeyedLoadICInOptimizedCode(isolate()); local 181 Callable callable = CodeFactory::LoadICInOptimizedCode(isolate()); local 193 Callable callable = local 209 Callable callable = local 229 Callable callable = local 248 Callable callable = CodeFactory::StoreOwnICInOptimizedCode(isolate()); local 268 Callable callable = local 310 Callable callable = CodeFactory::GetSuperConstructor(isolate()); local 316 Callable callable = CodeFactory::InstanceOf(isolate()); local 322 Callable callable = CodeFactory::OrdinaryHasInstance(isolate()); local 338 Callable callable = CodeFactory::FastNewObject(isolate()); local 382 Callable callable = CodeFactory::FastNewClosure(isolate()); local 407 Callable callable = local 437 Callable callable = CodeFactory::FastCloneShallowArray( local 459 Callable callable = local 471 Callable callable = CodeFactory::FastCloneRegExp(isolate()); local 515 Callable callable = CodeFactory::Construct(isolate()); local 535 Callable callable = CodeFactory::ConstructWithSpread(isolate()); local 552 Callable callable = CodeFactory::CallForwardVarargs(isolate()); local 570 Callable callable = CodeFactory::Call(isolate(), mode); local 587 Callable callable = CodeFactory::CallWithSpread(isolate()); local 609 Callable callable = CodeFactory::ForInNext(isolate()); local 615 Callable callable = CodeFactory::ForInPrepare(isolate()); local 692 Callable callable = CodeFactory::HandleDebuggerStatement(isolate()); local [all...] |
/external/mockito/src/main/java/org/mockito/internal/invocation/ |
H A D | RealMethod.java | 36 public FromCallable(final Callable<?> callable) { argument 40 return callable.call();
|
/external/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/ |
H A D | inline.py | 61 forward_fn: Python callable implementing the forward transformation. 62 inverse_fn: Python callable implementing the inverse transformation. 63 inverse_log_det_jacobian_fn: Python callable implementing the 65 forward_log_det_jacobian_fn: Python callable implementing the 67 forward_event_shape_fn: Python callable implementing non-identical 69 forward_event_shape_tensor_fn: Python callable implementing non-identical 71 inverse_event_shape_fn: Python callable implementing non-identical 73 inverse_event_shape_tensor_fn: Python callable implementing non-identical 120 if not callable(self._forward_fn): 122 "forward_fn is not a callable functio [all...] |
/external/guice/core/src/com/google/inject/internal/ |
H A D | ProvisionListenerStackCallback.java | 63 public T provision(Errors errors, InternalContext context, ProvisionCallback<T> callable) argument 65 Provision provision = new Provision(errors, context, callable); 97 final ProvisionCallback<T> callable; field in class:ProvisionListenerStackCallback.Provision 103 public Provision(Errors errors, InternalContext context, ProvisionCallback<T> callable) { argument 104 this.callable = callable; 115 result = callable.call();
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
H A D | ServletScopes.java | 183 * Wraps the given callable in a contextual callable that "continues" the 199 * <p>The returned callable will throw a {@link ScopingException} when called 202 * @param callable code to be executed in another thread, which depends on 207 * @return a callable that will invoke the given callable, making the request 214 public static <T> Callable<T> continueRequest(final Callable<T> callable, argument 233 .call(callable); 239 * Wraps the given callable in a contextual callable tha 261 transferRequest(Callable<T> callable) argument 267 transferHttpRequest(final Callable<T> callable) argument 279 transferNonHttpRequest(final Callable<T> callable) argument 323 scopeRequest(final Callable<T> callable, Map<Key<?>, Object> seedMap) argument 371 call(Callable<T> callable) argument [all...] |
/external/python/cpython3/Lib/ |
H A D | abc.py | 48 def __init__(self, callable): 49 callable.__isabstractmethod__ = True 50 super().__init__(callable) 72 def __init__(self, callable): 73 callable.__isabstractmethod__ = True 74 super().__init__(callable) 120 implementations defined by the registering ABC be callable (not
|
/external/chromium-trace/catapult/devil/devil/utils/ |
H A D | signal_handler.py | 40 if callable(existing_handler):
|
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/ |
H A D | FuturesCombineBenchmark.java | 86 Callable<Integer> callable = Callables.returning(12); 89 sum += impl.combine(callable, INLINE_EXECUTOR, futures).get(); 101 Callable<Integer> callable = Callables.returning(12); 104 sum += impl.combine(callable, INLINE_EXECUTOR, futures).get(); 111 Callable<Integer> callable = Callables.returning(12); 115 ListenableFuture<Integer> combined = impl.combine(callable, INLINE_EXECUTOR, futures); 126 Callable<Integer> callable = Callables.returning(12); 131 ListenableFuture<Integer> combined = impl.combine(callable, INLINE_EXECUTOR, futures);
|
/external/junit/src/main/java/org/junit/rules/ |
H A D | ErrorCollector.java | 72 * Adds to the table the exception, if any, thrown from {@code callable}. 74 * {@code callable} threw an exception. 76 public <T> T checkSucceeds(Callable<T> callable) { argument 78 return callable.call();
|
/external/tensorflow/tensorflow/contrib/framework/python/ops/ |
H A D | script_ops.py | 105 # For dynamic type inference use callable output_types and output_shapes 106 if callable(output_types): 107 # If callable assume same signature and call with tensors and get the types 109 if callable(output_shapes): 110 # If callable assume same signature and call with tensors and get the shapes
|
/external/testng/src/main/java/org/testng/internal/ |
H A D | PoolService.java | 43 for (Callable<FutureType> callable : tasks) { 44 m_completionService.submit(callable);
|
/external/swiftshader/src/Reactor/ |
H A D | Main.cpp | 66 int (*callable)(int*, int) = (int(*)(int*,int))routine->getEntry(); 68 int result = callable(&one[1], 2); 104 int (*callable)() = (int(*)())routine->getEntry(); 105 int result = callable(); 148 int (*callable)(void*, void*) = (int(*)(void*,void*))routine->getEntry(); 149 callable(in, out); 204 int(*callable)(void*) = (int(*)(void*))routine->getEntry(); 205 callable(out); 247 int (*callable)(void*) = (int(*)(void*))routine->getEntry(); 248 callable(ou [all...] |
/external/python/cpython3/Modules/_ctypes/ |
H A D | callbacks.c | 18 Py_XDECREF(self->callable); 30 Py_VISIT(self->callable); 40 Py_CLEAR(self->callable); 129 PyObject *callable, 234 result = PyObject_CallObject(callable, arglist); 271 PyErr_WriteUnraisable(callable); 278 PyErr_WriteUnraisable(callable); 299 p->callable, 321 p->callable = NULL; 332 CThunkObject *_ctypes_alloc_callback(PyObject *callable, argument 126 _CallPythonObject(void *mem, ffi_type *restype, SETFUNC setfunc, PyObject *callable, PyObject *converters, int flags, void **pArgs) argument [all...] |
/external/junit/src/main/java/org/junit/internal/runners/statements/ |
H A D | FailOnTimeout.java | 98 CallableStatement callable = new CallableStatement(); 99 FutureTask<Throwable> task = new FutureTask<Throwable>(callable); 103 callable.awaitStarted();
|