HomeSort by relevance Sort by last modified time
    Searched refs:callable (Results 1 - 25 of 83) sorted by null

1 2 3 4

  /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());
  /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);
  /external/chromium_org/mojo/public/python/src/
python_system_helper.cc 30 PythonClosure(PyObject* callable) : callable_(callable) {
31 MOJO_DCHECK(callable);
32 Py_XINCREF(callable);
79 AsyncWaiterRunnable(PyObject* callable, CallbackMap* callbacks)
80 : wait_id_(0), callable_(callable), callbacks_(callbacks) {
81 MOJO_DCHECK(callable);
83 Py_XINCREF(callable);
128 Closure BuildClosure(PyObject* callable) {
129 if (!PyCallable_Check(callable))
    [all...]
python_system_helper.h 22 // Create a mojo::Closure from a callable python object.
23 mojo::Closure BuildClosure(PyObject* callable);
32 PyObject* callable);
  /external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/
InstrumentationUtils.java 9 import java.util.concurrent.Callable;
22 Callable<R> callable) throws Throwable {
23 FutureTask<R> task = new FutureTask<R>(callable);
  /external/llvm/include/llvm/ADT/
STLExtras.h 58 /// An efficient, type-erasing, non-owning reference to a callable. This is
62 /// This class does not own the callable, so it is not in general safe to store
70 Ret (*callback)(intptr_t callable, Params ...params);
71 intptr_t callable; member in class:llvm::function_ref
73 template<typename Callable>
74 static Ret callback_fn(intptr_t callable, Params ...params) {
75 return (*reinterpret_cast<Callable*>(callable))(
80 template<typename Callable>
81 function_ref(Callable &&callable
94 intptr_t callable; member in class:llvm::function_ref
112 intptr_t callable; member in class:llvm::function_ref
133 intptr_t callable; member in class:llvm::function_ref
157 intptr_t callable; member in class:llvm::function_ref
    [all...]
  /external/chromium_org/v8/src/compiler/
js-generic-lowering.cc 145 Callable callable = CodeFactory::CompareIC(isolate(), token); local
148 callable.descriptor(), 0,
152 inputs.push_back(CodeConstant(callable.code()));
186 void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable,
189 callable.descriptor(), 0, flags | FlagsForNode(node));
190 Node* stub_code = CodeConstant(callable.code());
199 Callable callable local
248 Callable callable = CodeFactory::ToBoolean( local
255 Callable callable = local
262 Callable callable = CodeFactory::ToNumber(isolate()); local
278 Callable callable = CodeFactory::KeyedLoadIC(isolate()); local
285 Callable callable = CodeFactory::LoadIC(isolate(), p.contextual_mode); local
293 Callable callable = CodeFactory::KeyedStoreIC(isolate(), strict_mode); local
300 Callable callable = CodeFactory::StoreIC(isolate(), params.strict_mode); local
    [all...]
raw-machine-assembler.cc 87 Callable callable = CodeFactory::CallFunction(isolate(), 0, flags); local
89 callable.descriptor(), 1, CallDescriptor::kNeedsFrameState, zone());
90 Node* stub_code = HeapConstant(callable.code());
  /external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/
CriteriaHelper.java 13 import java.util.concurrent.Callable;
73 final Callable<Boolean> callable = new Callable<Boolean>() { local
83 return ThreadUtils.runOnUiThreadBlockingNoException(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/chromium_org/components/devtools_bridge/test/android/javatests/src/org/chromium/components/devtools_bridge/
SignalingThreadMock.java 8 import java.util.concurrent.Callable;
62 public <T> T invoke(final Callable<T> callable) throws Exception {
63 if (isOnThread()) return callable.call();
66 return new InvokeWrapper<T>(callable).invoke();
131 private final Callable<T> mWrapped;
134 public InvokeWrapper(Callable<T> wrapped) {
TestUtils.java 11 import java.util.concurrent.Callable;
29 return executor.submit(new Callable<String>() {
100 public void runOnTargetThread(Callable<T> callable) {
102 mResult = callable.call();
119 * Adapts Runnable to Callable<Void>.
121 public static class RunnableAdapter implements Callable<Void> {
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/test/
skip.py 37 if not callable(attr):
  /external/chromium_org/third_party/cython/src/Cython/Includes/cpython/
weakref.pxd 18 # second parameter, callback, can be a callable object that
22 # a weakly-referencable object, or if callback is not callable,
29 # The second parameter, callback, can be a callable object that
33 # a weakly-referencable object, or if callback is not callable,
object.pxd 150 # Determine if the object o is callable. Return 1 if the object is
151 # callable and 0 otherwise. This function always succeeds.
155 # Call a callable Python object callable_object, with arguments
166 # Call a callable Python object callable_object, with arguments
172 object PyObject_CallFunction(object callable, char *format, ...)
174 # Call a callable Python object callable, with a variable number
179 # of the Python expression "apply(callable, args)" or
180 # "callable(*args)". Note that if you only pass object args,
194 #object PyObject_CallFunctionObjArgs(object callable, ..., NULL
    [all...]
  /external/lldb/tools/lldb-perf/lib/
Measurement.h 20 template <typename GaugeType, typename Callable>
31 Measurement (Callable callable, const char* name, const char* desc) :
33 m_callable (callable),
62 virtual const Callable&
135 Callable m_callable;
139 template <typename Callable>
140 class TimeMeasurement : public Measurement<TimeGauge,Callable>
144 Measurement<TimeGauge,Callable> ()
148 TimeMeasurement (Callable callable
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/
decorators.py 58 if len(args) == 1 and callable(args[0]):
87 assert args and not callable(args[0]), '@Enabled requires argumentas'
  /external/chromium_org/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"};
402 numFoo.valueOf = "not callable";
412 str37.toString = "not callable";
418 var func = function() { /* Is callable */ };
420 var funcJSON = function() { /* Is callable */ };
423 var re = /Is callable/;
    [all...]
  /external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/
AwTestBase.java 28 import java.util.concurrent.Callable;
68 * Runs a {@link Callable} on the main thread, blocking until it is
75 public <R> R runTestOnUiThreadAndGetResult(Callable<R> callable)
77 FutureTask<R> task = new FutureTask<R>(callable);
355 return runTestOnUiThreadAndGetResult(new Callable<String>() {
365 return runTestOnUiThreadAndGetResult(new Callable<ContentSettings>() {
375 return runTestOnUiThreadAndGetResult(new Callable<AwSettings>() {
398 public static void poll(final Callable<Boolean> callable) throws Exception
    [all...]
  /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);
  /external/chromium_org/third_party/jinja2/
tests.py 20 test_callable = callable
146 'callable': test_callable,

Completed in 640 milliseconds

1 2 3 4