/external/python/pyasn1/pyasn1/compat/ |
calling.py | 9 __all__ = ['callable'] 15 def callable(x): function 16 return isinstance(x, collections.Callable) 20 callable = callable variable
|
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/ |
SimpleFuture.java | 3 import java.util.concurrent.Callable; 18 private final Callable<T> callable; field in class:SimpleFuture 20 public SimpleFuture(Callable<T> callable) { 21 this.callable = callable; 58 result = callable.call();
|
/external/python/cpython3/Objects/ |
call.c | 7 _PyObject_HasFastCall(PyObject *callable) 9 if (PyFunction_Check(callable)) { 12 else if (PyCFunction_Check(callable)) { 13 return !(PyCFunction_GET_FLAGS(callable) & METH_VARARGS); 16 assert (PyCallable_Check(callable)); 33 _Py_CheckFunctionResult(PyObject *callable, PyObject *result, const char *where) 37 assert((callable != NULL) ^ (where != NULL)); 41 if (callable) 44 callable); 60 if (callable) { 1035 PyObject *callable, *retval; local 1061 PyObject *callable, *retval; local 1085 PyObject *callable, *retval; local 1109 PyObject *callable, *retval; local 1133 PyObject *callable, *retval; local 1236 PyObject *callable, *result; local [all...] |
/external/guava/guava/src/com/google/common/util/concurrent/ |
ListenableFutureTask.java | 19 import java.util.concurrent.Callable; 47 * given {@code Callable}. 49 * @param callable the callable task 52 public static <V> ListenableFutureTask<V> create(Callable<V> callable) { 53 return new ListenableFutureTask<V>(callable); 73 ListenableFutureTask(Callable<V> callable) { 74 super(callable); [all...] |
FakeTimeLimiter.java | 23 import java.util.concurrent.Callable; 48 public <T> T callWithTimeout(Callable<T> callable, long timeoutDuration, 51 return callable.call(); // fooled you
|
Callables.java | 23 import java.util.concurrent.Callable; 28 * Static utility methods pertaining to the {@link Callable} interface. 37 * Creates a {@code Callable} which immediately returns a preset value each 40 public static <T> Callable<T> returning(final @Nullable T value) { 41 return new Callable<T>() { 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 [all...] |
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,
|
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/ |
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) { 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 has no javadoc, any old javadoc will be kept. Th [all...] |
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
CallablesTest.java | 25 import java.util.concurrent.Callable; 38 Callable<Object> callable = Callables.returning(value); local 39 assertSame(value, callable.call()); 41 assertSame(value, callable.call()); 47 Callable<Void> callable = new Callable<Void>() { local 53 Callables.threadRenaming(callable, newName).call(); 61 Callable<Void> callable = new Callable<Void>() local 86 Callable<Void> callable = new Callable<Void>() { local [all...] |
/external/v8/src/compiler/ |
js-generic-lowering.cc | 57 Callable callable = Builtins::CallableFor(isolate(), Builtins::k##Name); \ 58 ReplaceWithStubCall(node, callable, flags); \ 98 void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable, 100 ReplaceWithStubCall(node, callable, flags, node->op()->properties()); 103 void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable, 106 const CallInterfaceDescriptor& descriptor = callable.descriptor(); 110 Node* stub_code = jsgraph()->HeapConstant(callable.code()) 136 Callable callable = Builtins::CallableFor(isolate(), Builtins::kStrictEqual); local 149 Callable callable = local 153 Callable callable = local 169 Callable callable = local 173 Callable callable = Builtins::CallableFor(isolate(), Builtins::kLoadIC); local 189 Callable callable = CodeFactory::LoadGlobalIC(isolate(), p.typeof_mode()); local 192 Callable callable = local 207 Callable callable = local 211 Callable callable = local 227 Callable callable = local 231 Callable callable = Builtins::CallableFor(isolate(), Builtins::kStoreIC); local 246 Callable callable = CodeFactory::StoreOwnIC(isolate()); local 249 Callable callable = CodeFactory::StoreOwnICInOptimizedCode(isolate()); local 264 Callable callable = local 268 Callable callable = local 285 Callable callable = local 296 Callable callable = local 303 Callable callable = local 314 Callable callable = Builtins::CallableFor(isolate(), Builtins::kInstanceOf); local 320 Callable callable = local 337 Callable callable = local 397 Callable callable = Builtins::CallableFor( local 404 Callable callable = Builtins::CallableFor(isolate(), Builtins::kParseInt); local 410 Callable callable = local 424 Callable callable = local 443 Callable callable = local 456 Callable callable = local 480 Callable callable = local 496 Callable callable = local 511 Callable callable = local 529 Callable callable = local 540 Callable callable = local 555 Callable callable = local 584 Callable callable = CodeFactory::ConstructForwardVarargs(isolate()); local 605 Callable callable = CodeFactory::Construct(isolate()); local 621 Callable callable = local 643 Callable callable = CodeFactory::ConstructWithSpread(isolate()); local 667 Callable callable = CodeFactory::CallForwardVarargs(isolate()); local 683 Callable callable = CodeFactory::Call(isolate(), mode); local 695 Callable callable = CodeFactory::CallWithArrayLike(isolate()); local 713 Callable callable = CodeFactory::CallWithSpread(isolate()); local 829 Callable callable = CodeFactory::HandleDebuggerStatement(isolate()); local [all...] |
/external/python/cpython3/Lib/ |
abc.py | 45 def __init__(self, callable): 46 callable.__isabstractmethod__ = True 47 super().__init__(callable) 68 def __init__(self, callable): 69 callable.__isabstractmethod__ = True 70 super().__init__(callable) 122 implementations defined by the registering ABC be callable (not
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
RunOnMainUtils.java | 21 import java.util.concurrent.Callable; 29 * Execute a callable on main and return its value 32 Instrumentation instrumentation, Callable<T> callable) { 37 returnValue.set(callable.call());
|
/external/libchrome/mojo/public/cpp/system/tests/ |
data_pipe_drainer_unittest.cc | 16 base::RepeatingClosure BindLambda(Functor callable) { 17 return base::BindRepeating([](Functor callable) { callable(); }, callable); member in namespace:mojo::test
|
/external/v8/src/objects/ |
microtask-inl.h | 22 ACCESSORS(CallableTask, callable, JSReceiver, kCallableOffset)
|
/external/guice/core/src/com/google/inject/internal/ |
ProvisionListenerStackCallback.java | 61 public T provision(InternalContext context, ProvisionCallback<T> callable) 63 Provision provision = new Provision(context, callable); 96 final ProvisionCallback<T> callable; field in class:ProvisionListenerStackCallback.Provision 102 public Provision(InternalContext context, ProvisionCallback<T> callable) { 103 this.callable = callable; 112 result = callable.call();
|
/external/mockito/src/main/java/org/mockito/internal/invocation/ |
RealMethod.java | 12 import java.util.concurrent.Callable; 36 public FromCallable(final Callable<?> callable) { 40 return callable.call();
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
TransferRequestIntegrationTest.java | 26 import java.util.concurrent.Callable; 38 private final Callable<Boolean> FALSE_CALLABLE = 39 new Callable<Boolean>() { 86 Callable<Callable<Boolean>> callable = local 87 new Callable<Callable<Boolean>>() { 89 public Callable<Boolean> call() { 92 new Callable<Boolean>() 130 Callable<Data> callable = local 155 Callable<Boolean> callable = local 179 Callable<Boolean> callable = local 215 Callable<Boolean> callable = local 228 Callable<Boolean> callable = local [all...] |
/external/opencensus-java/api/src/main/java/io/opencensus/trace/ |
CurrentSpanUtils.java | 22 import java.util.concurrent.Callable; 68 * Wraps a {@link Callable} so that it executes with the {@code span} as the current {@code Span}. 72 * @param callable the {@code Callable} to run in the {@code Span}. 73 * @return the wrapped {@code Callable}. 75 static <C> Callable<C> withSpan(Span span, boolean endSpan, Callable<C> callable) { 76 return new CallableInSpan<C>(span, callable, endSpan); 140 private static final class CallableInSpan<V> implements Callable<V> 142 private final Callable<V> callable; field in class:CurrentSpanUtils.CallableInSpan [all...] |
/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
CurrentSpanUtilsTest.java | 27 import java.util.concurrent.Callable; 58 private void executeCallableAndExpectError(Callable<Object> callable, Throwable error) { 61 CurrentSpanUtils.withSpan(span, true, callable).call(); 187 Callable<Object> callable = local 188 new Callable<Object>() { 196 assertThat(CurrentSpanUtils.withSpan(span, false, callable).call()).isEqualTo(ret); 205 Callable<Object> callable local 223 Callable<Object> callable = local 242 Callable<Object> callable = local 261 Callable<Object> callable = local 280 Callable<Object> callable = local [all...] |
/external/python/cpython3/Lib/encodings/ |
__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/torque/ |
file-visitor.cc | 35 const SpecializationKey& key, CallableNode* callable, 38 {key, callable, signature, body, CurrentSourcePosition::Get()}); 62 Specialize(specialization.key, specialization.callable,
|
file-visitor.h | 71 CallableNode* callable; member in struct:v8::internal::torque::FileVisitor::PendingSpecialization 78 CallableNode* callable, 84 virtual void Specialize(const SpecializationKey&, CallableNode* callable, 92 Callable* current_callable_;
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
WebkitUtils.java | 25 import java.util.concurrent.Callable; 55 * Executes a callable asynchronously on the main thread, returning a future for the result. 57 * @param callable the {@link Callable} to execute. 58 * @return a {@link Future} representing the result of {@code callable}. 60 public static <T> Future<T> onMainThread(final Callable<T> callable) { 66 future.set(callable.call()); 85 * Executes a callable synchronously on the main thread, returning its result. This re-throws 87 * org.junit.Assert} methods within the {@link Callable} if they invoke this method from th [all...] |
/external/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/ |
inline.py | 72 forward_fn: Python callable implementing the forward transformation. 73 inverse_fn: Python callable implementing the inverse transformation. 74 inverse_log_det_jacobian_fn: Python callable implementing the 76 forward_log_det_jacobian_fn: Python callable implementing the 78 forward_event_shape_fn: Python callable implementing non-identical 80 forward_event_shape_tensor_fn: Python callable implementing non-identical 82 inverse_event_shape_fn: Python callable implementing non-identical 84 inverse_event_shape_tensor_fn: Python callable implementing non-identical 136 if not callable(self._forward_fn): 138 "forward_fn is not a callable function." [all...] |
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
MockVsyncHelper.java | 57 public static void runOnVsyncThread(CallableVoid callable) { 62 callable.call();
|