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

1 2 3 4 5 6 7 8 91011>>

  /frameworks/data-binding/compiler/src/main/java/android/databinding/tool/util/
BrNameUtil.java 19 import android.databinding.tool.reflection.Callable;
43 public static String brKey(Callable callable) {
44 if (callable.type == Callable.Type.FIELD) {
45 return stripPrefixFromField(callable.name);
48 final String name = callable.name;
49 if (isGetter(callable) || isSetter(callable)) {
51 } else if (isBooleanGetter(callable)) {
    [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,
AbstractListeningExecutorService.java 22 import java.util.concurrent.Callable;
28 * {@link ListenableFutureTask} instances for each {@link Runnable} and {@link Callable} submitted
45 @Override protected final <T> ListenableFutureTask<T> newTaskFor(Callable<T> callable) {
46 return ListenableFutureTask.create(callable);
57 @Override public <T> ListenableFuture<T> submit(Callable<T> task) {
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/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/test/mjsunit/es6/
classof-proxy.js 16 var callable = new Proxy(function(){}.__proto__, {});
20 assertTrue(test_function(callable));
26 assertTrue(test_function(callable));
  /frameworks/base/packages/StatementService/src/com/android/statementservice/
ExceptionLoggingFutureTask.java 21 import java.util.concurrent.Callable;
32 public ExceptionLoggingFutureTask(Callable<V> callable, String tag) {
33 super(callable);
  /external/guice/extensions/servlet/test/com/google/inject/servlet/
TransferRequestIntegrationTest.java 29 import java.util.concurrent.Callable;
42 private final Callable<Boolean> FALSE_CALLABLE = new Callable<Boolean>() {
73 Callable<Callable<Boolean>> callable = new Callable<Callable<Boolean>>() { local
74 @Override public Callable<Boolean> call() {
76 return ServletScopes.transferRequest(new Callable<Boolean>()
93 Callable<Boolean> callable = new Callable<Boolean>() { local
114 Callable<Boolean> callable = new Callable<Boolean>() { local
    [all...]
  /external/v8/test/cctest/interpreter/
test-interpreter.cc 176 auto callable = tester.GetCallable<>(); local
177 Handle<Object> return_val = callable().ToHandleChecked();
195 auto callable = tester.GetCallable<>(); local
196 Handle<Object> return_val = callable().ToHandleChecked();
213 auto callable = tester.GetCallable<>(); local
214 Handle<Object> return_val = callable().ToHandleChecked();
232 auto callable = tester.GetCallable<>(); local
233 Handle<Object> return_val = callable().ToHandleChecked();
250 auto callable = tester.GetCallable<>(); local
251 Handle<Object> return_val = callable().ToHandleChecked()
268 auto callable = tester.GetCallable<>(); local
288 auto callable = tester.GetCallable<>(); local
303 auto callable = tester.GetCallable<>(); local
318 auto callable = tester.GetCallable<>(); local
334 auto callable = tester.GetCallable<>(); local
358 auto callable = tester.GetCallable<>(); local
391 auto callable = tester.GetCallable<>(); local
427 auto callable = tester.GetCallable<>(); local
465 auto callable = tester.GetCallable<>(); local
557 auto callable = tester.GetCallable<>(); local
592 auto callable = tester.GetCallable<>(); local
628 auto callable = tester.GetCallable<>(); local
685 auto callable = tester.GetCallable<>(); local
702 auto callable = tester.GetCallable<Handle<Object>>(); local
735 auto callable = tester.GetCallable<H, H, H, H, H, H, H, H>(); local
766 auto callable = tester.GetCallable<Handle<Object>>(); local
785 auto callable = tester.GetCallable<>(); local
804 auto callable = tester.GetCallable<>(); local
824 auto callable = tester.GetCallable<>(); local
841 auto callable = tester.GetCallable<>(); local
860 auto callable = tester.GetCallable<>(); local
895 auto callable = tester.GetCallable<Handle<Object>>(); local
952 auto callable = tester.GetCallable<Handle<Object>>(); local
997 auto callable = tester.GetCallable<Handle<Object>>(); local
1060 auto callable = tester.GetCallable<Handle<Object>>(); local
1111 auto callable = tester.GetCallable<Handle<Object>>(); local
1132 auto callable = tester.GetCallable<Handle<Object>>(); local
1162 auto callable = tester.GetCallable<Handle<Object>>(); local
1207 auto callable = tester.GetCallable<Handle<Object>>(); local
1268 auto callable = tester.GetCallable<>(); local
1303 auto callable = tester.GetCallable<>(); local
1339 auto callable = tester.GetCallable<>(); local
1413 auto callable = tester.GetCallable<>(); local
1452 auto callable = tester.GetCallable<>(); local
1488 auto callable = tester.GetCallable<>(); local
1545 auto callable = tester.GetCallable<>(); local
1580 auto callable = tester.GetCallable<>(); local
1611 auto callable = tester.GetCallable<>(); local
1635 auto callable = tester.GetCallable<>(); local
1696 auto callable = tester.GetCallable<>(); local
1722 auto callable = tester.GetCallable<>(); local
1747 auto callable = tester.GetCallable<>(); local
1763 auto callable = tester.GetCallable<Handle<Object>>(); local
1792 auto callable = tester.GetCallable<>(); local
1823 auto callable = tester.GetCallable<>(); local
1876 auto callable = tester.GetCallable<>(); local
1896 auto callable = tester.GetCallable<>(); local
1915 auto callable = tester.GetCallable<>(); local
1936 auto callable = tester.GetCallable<>(); local
1975 auto callable = tester.GetCallable<>(); local
2000 auto callable = local
2037 auto callable = tester.GetCallable<>(); local
2065 auto callable = tester.GetCallable<>(); local
2093 auto callable = tester.GetCallable<>(); local
2126 auto callable = tester.GetCallable<>(); local
2141 auto callable = tester.GetCallable<>(); local
2155 auto callable = tester.GetCallable<>(); local
2252 auto callable = tester.GetCallable<>(); local
2281 auto callable = tester.GetCallable<>(); local
2312 auto callable = tester.GetCallable<>(); local
2335 auto callable = tester.GetCallable<>(); local
2372 auto callable = tester.GetCallable<>(); local
2380 auto callable = tester.GetCallable<Handle<Object>>(); local
2399 auto callable = local
2434 auto callable = tester.GetCallable<>(); local
2478 auto callable = tester.GetCallable<>(); local
2490 auto callable = tester.GetCallable<>(); local
2529 auto callable = tester.GetCallable<>(); local
2596 auto callable = tester.GetCallable<>(); local
2692 auto callable = tester.GetCallable<>(); local
2903 auto callable = tester.GetCallable<>(); local
2982 auto callable = tester.GetCallable<>(); local
3016 auto callable = tester.GetCallable<>(); local
3031 auto callable = tester.GetCallable<>(); local
3047 auto callable = tester.GetCallable<>(); local
3188 auto callable = tester.GetCallable<Handle<Object>>(); local
3232 auto callable = tester.GetCallable<>(); local
3266 auto callable = tester.GetCallable<>(); local
3303 auto callable = tester.GetCallable<>(); local
3330 auto callable = tester.GetCallable<>(); local
3374 auto callable = tester.GetCallable<>(); local
3415 auto callable = tester.GetCallable<>(); local
3450 auto callable = tester.GetCallable<Handle<Object>>(); local
3502 auto callable = tester.GetCallable<>(); local
3529 auto callable = tester.GetCallable<Handle<Object>>(); local
3558 auto callable = tester.GetCallable<>(); local
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/
ScheduledExecutorService.java 88 * @param callable the function to execute
91 * @param <V> the type of the callable's result
95 * @throws NullPointerException if callable is null
97 public <V> ScheduledFuture<V> schedule(Callable<V> callable,
FutureTask.java 22 * <p>A {@code FutureTask} can be used to wrap a {@link Callable} or
73 /** The underlying callable; nulled out after running */
74 private Callable<V> callable; field in class:FutureTask
77 /** The thread running the callable; CASed during run() */
99 * given {@code Callable}.
101 * @param callable the callable task
102 * @throws NullPointerException if the callable is null
104 public FutureTask(Callable<V> callable)
    [all...]
Executors.java 27 * ThreadFactory}, and {@link Callable} classes defined in this
40 * <li>Methods that create and return a {@link Callable}
42 * in execution methods requiring {@code Callable}.
339 * Returns a {@link Callable} object that, when
342 * {@code Callable} to an otherwise resultless action.
346 * @return a callable object
349 public static <T> Callable<T> callable(Runnable task, T result) { method in class:Executors
356 * Returns a {@link Callable} object that, when
359 * @return a callable objec
362 public static Callable<Object> callable(Runnable task) { method in class:Executors
375 public static Callable<Object> callable(final PrivilegedAction<?> action) { method in class:Executors
    [all...]
  /libcore/luni/src/test/java/sun/misc/
UnsafeTest.java 22 import java.util.concurrent.Callable;
40 Callable<Object> callable = Executors.callable(new Runnable() { local
47 callable.call();
  /external/guice/core/src/com/google/inject/internal/
ProvisionListenerStackCallback.java 63 public T provision(Errors errors, InternalContext context, ProvisionCallback<T> callable)
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) {
104 this.callable = callable;
115 result = callable.call();
  /external/guice/extensions/servlet/src/com/google/inject/servlet/
ServletScopes.java 32 import java.util.concurrent.Callable;
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,
    [all...]
  /external/opencv3/samples/python2/
_coverage.py 12 cv2_callable = set(['cv2.'+name for name in dir(cv2) if callable( getattr(cv2, name) )])
  /external/v8/test/cctest/compiler/
test-run-bytecode-graph-builder.cc 93 auto callable = GetCallable<>(); local
94 MaybeHandle<Object> no_result = callable();
215 auto callable = tester.GetCallable<>(); local
216 Handle<Object> return_value = callable().ToHandleChecked();
243 auto callable = tester.GetCallable<>(); local
244 Handle<Object> return_value = callable().ToHandleChecked();
302 auto callable = tester.GetCallable<Handle<Object>, Handle<Object>>(); local
304 callable(snippets[i].parameter(0), snippets[i].parameter(1))
347 auto callable = tester.GetCallable<Handle<Object>>(); local
349 callable(snippets[i].parameter(0)).ToHandleChecked()
404 auto callable = tester.GetCallable<Handle<Object>, Handle<Object>>(); local
455 auto callable = tester.GetCallable<Handle<Object>>(); local
513 auto callable = tester.GetCallable<Handle<Object>>(); local
548 auto callable = tester.GetCallable<Handle<Object>>(); local
588 auto callable = tester.GetCallable<>(); local
627 auto callable = tester.GetCallable<>(); local
655 auto callable = tester.GetCallable<Handle<Object>>(); local
706 auto callable = tester.GetCallable<>(); local
756 auto callable = tester.GetCallable<>(); local
788 auto callable = tester.GetCallable<Handle<Object>>(); local
826 auto callable = tester.GetCallable<Handle<Object>>(); local
881 auto callable = tester.GetCallable<Handle<Object>>(); local
921 auto callable = tester.GetCallable<Handle<Object>>(); local
975 auto callable = tester.GetCallable<>(); local
1013 auto callable = tester.GetCallable<>(); local
1055 auto callable = tester.GetCallable<>(); local
1099 auto callable = tester.GetCallable<>(); local
1129 auto callable = tester.GetCallable<>(); local
1182 auto callable = tester.GetCallable<>(); local
1211 auto callable = tester.GetCallable<Handle<Object>>(); local
1240 auto callable = tester.GetCallable<>(); local
1321 auto callable = tester.GetCallable<Handle<Object>, Handle<Object>>(); local
1376 auto callable = tester.GetCallable<Handle<Object>, Handle<Object>>(); local
1409 auto callable = tester.GetCallable<Handle<Object>>(); local
1501 auto callable = tester.GetCallable<>("f"); local
1567 auto callable = tester.GetCallable<Handle<Object>>("f"); local
1596 auto callable = tester.GetCallable<>(); local
1640 auto callable = local
1681 auto callable = tester.GetCallable<>(); local
1722 auto callable = tester.GetCallable<>(); local
1787 auto callable = tester.GetCallable<>(); local
1868 auto callable = tester.GetCallable<Handle<Object>>(); local
1900 auto callable = tester.GetCallable<Handle<Object>>(); local
1948 auto callable = tester.GetCallable<Handle<Object>>(); local
2008 auto callable = tester.GetCallable<Handle<Object>, Handle<Object>>(); local
2051 auto callable = tester.GetCallable<>(); local
2100 auto callable = tester.GetCallable<>(); local
2137 auto callable = tester.GetCallable<>(); local
2218 auto callable = tester.GetCallable<>(); local
2290 auto callable = tester.GetCallable<>(); local
2328 auto callable = tester.GetCallable<Handle<Object>>(); local
    [all...]
  /external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
FuturesCombineBenchmark.java 26 import java.util.concurrent.Callable;
39 @Override <V> ListenableFuture<V> combine(final Callable<V> combiner, Executor executor,
59 <V> ListenableFuture<V> combine(Callable<V> combiner, final Executor executor,
66 Callable<V> combiner, Executor executor,
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()
    [all...]
  /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/testng/src/main/java/org/testng/internal/
PoolService.java 7 import java.util.concurrent.Callable;
40 public List<FutureType> submitTasksAndWait(List<? extends Callable<FutureType>> tasks) {
43 for (Callable<FutureType> callable : tasks) {
44 m_completionService.submit(callable);
  /external/v8/src/compiler/
js-generic-lowering.cc 137 Callable callable = CodeFactory::CompareIC(isolate(), token, str); local
142 inputs.push_back(jsgraph()->HeapConstant(callable.code()));
160 isolate(), zone(), callable.descriptor(), 0,
212 void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable,
216 isolate(), zone(), callable.descriptor(), 0, flags, properties);
217 Node* stub_code = jsgraph()->HeapConstant(callable.code());
242 Callable callable = CodeFactory::Typeof(isolate()) local
249 Callable callable = CodeFactory::ToBoolean(isolate()); local
257 Callable callable = CodeFactory::ToNumber(isolate()); local
264 Callable callable = CodeFactory::ToString(isolate()); local
276 Callable callable = CodeFactory::ToObject(isolate()); local
284 Callable callable = CodeFactory::KeyedLoadICInOptimizedCode( local
294 Callable callable = CodeFactory::LoadICInOptimizedCode( local
307 Callable callable = CodeFactory::LoadICInOptimizedCode( local
330 Callable callable = CodeFactory::KeyedStoreICInOptimizedCode( local
342 Callable callable = CodeFactory::StoreICInOptimizedCode( local
357 Callable callable = CodeFactory::StoreICInOptimizedCode( local
393 Callable callable = CodeFactory::InstanceOf(isolate()); local
528 Callable callable = CodeFactory::FastCloneRegExp(isolate()); local
564 Callable callable = CodeFactory::Construct(isolate()); local
584 Callable callable = CodeFactory::Call(isolate(), mode); local
    [all...]
  /external/chromium-trace/catapult/dashboard/dashboard/models/
internal_only_model.py 47 if callable(getattr(self, 'CreateCallback', None)):

Completed in 2227 milliseconds

1 2 3 4 5 6 7 8 91011>>