Home
last modified time | relevance | path

Searched refs:Callable (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/external/v8/src/codegen/
Dcode-factory.h37 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode);
38 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate,
40 static Callable StoreOwnIC(Isolate* isolate);
41 static Callable StoreOwnICInOptimizedCode(Isolate* isolate);
43 static Callable KeyedStoreIC_SloppyArguments(Isolate* isolate,
45 static Callable ElementsTransitionAndStore(Isolate* isolate,
47 static Callable StoreFastElementIC(Isolate* isolate,
50 static Callable ResumeGenerator(Isolate* isolate);
52 static Callable FrameDropperTrampoline(Isolate* isolate);
53 static Callable HandleDebuggerStatement(Isolate* isolate);
[all …]
Dcode-factory.cc62 Callable CodeFactory::ApiGetter(Isolate* isolate) { in ApiGetter()
67 Callable CodeFactory::CallApiCallback(Isolate* isolate) { in CallApiCallback()
72 Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) { in LoadGlobalIC()
80 Callable CodeFactory::LoadGlobalICInOptimizedCode(Isolate* isolate, in LoadGlobalICInOptimizedCode()
88 Callable CodeFactory::StoreOwnIC(Isolate* isolate) { in StoreOwnIC()
94 Callable CodeFactory::StoreOwnICInOptimizedCode(Isolate* isolate) { in StoreOwnICInOptimizedCode()
100 Callable CodeFactory::KeyedStoreIC_SloppyArguments(Isolate* isolate, in KeyedStoreIC_SloppyArguments()
125 Callable CodeFactory::ElementsTransitionAndStore(Isolate* isolate, in ElementsTransitionAndStore()
150 Callable CodeFactory::StoreFastElementIC(Isolate* isolate, in StoreFastElementIC()
173 Callable CodeFactory::BinaryOperation(Isolate* isolate, Operation op) { in BinaryOperation()
[all …]
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DTransferRequestIntegrationTest.java26 import java.util.concurrent.Callable;
38 private final Callable<Boolean> FALSE_CALLABLE =
39 new Callable<Boolean>() {
86 Callable<Callable<Boolean>> callable = in testTransferNonHttpRequest()
87 new Callable<Callable<Boolean>>() { in testTransferNonHttpRequest()
89 public Callable<Boolean> call() { in testTransferNonHttpRequest()
92 new Callable<Boolean>() { in testTransferNonHttpRequest()
102 Callable<Boolean> transfer = ServletScopes.scopeRequest(callable, seedMap).call(); in testTransferNonHttpRequest()
130 Callable<Data> callable = in testTransferNonHttpRequest_closeable()
131 new Callable<Data>() { in testTransferNonHttpRequest_closeable()
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DWrappingExecutorService.java25 import java.util.concurrent.Callable;
56 protected abstract <T> Callable<T> wrapTask(Callable<T> callable); in wrapTask()
63 final Callable<Object> wrapped = wrapTask(Executors.callable(command, null)); in wrapTask()
82 private <T> ImmutableList<Callable<T>> wrapTasks(Collection<? extends Callable<T>> tasks) {
83 ImmutableList.Builder<Callable<T>> builder = ImmutableList.builder();
84 for (Callable<T> task : tasks) {
97 public final <T> Future<T> submit(Callable<T> task) {
112 public final <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
119 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
125 public final <T> T invokeAny(Collection<? extends Callable<T>> tasks)
[all …]
DCallables.java23 import java.util.concurrent.Callable;
37 public static <T> Callable<T> returning(final @Nullable T value) { in returning()
38 return new Callable<T>() { in returning()
57 final Callable<T> callable, final ListeningExecutorService listeningExecutorService) {
78 static <T> Callable<T> threadRenaming(
79 final Callable<T> callable, final Supplier<String> nameSupplier) {
82 return new Callable<T>() {
/external/guava/android/guava/src/com/google/common/util/concurrent/
DWrappingExecutorService.java25 import java.util.concurrent.Callable;
56 protected abstract <T> Callable<T> wrapTask(Callable<T> callable); in wrapTask()
63 final Callable<Object> wrapped = wrapTask(Executors.callable(command, null)); in wrapTask()
82 private <T> ImmutableList<Callable<T>> wrapTasks(Collection<? extends Callable<T>> tasks) {
83 ImmutableList.Builder<Callable<T>> builder = ImmutableList.builder();
84 for (Callable<T> task : tasks) {
97 public final <T> Future<T> submit(Callable<T> task) {
112 public final <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
119 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
125 public final <T> T invokeAny(Collection<? extends Callable<T>> tasks)
[all …]
DCallables.java23 import java.util.concurrent.Callable;
37 public static <T> Callable<T> returning(@NullableDecl final T value) { in returning()
38 return new Callable<T>() { in returning()
57 final Callable<T> callable, final ListeningExecutorService listeningExecutorService) {
78 static <T> Callable<T> threadRenaming(
79 final Callable<T> callable, final Supplier<String> nameSupplier) {
82 return new Callable<T>() {
DForwardingExecutorService.java22 import java.util.concurrent.Callable;
53 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll()
60 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAll()
66 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
72 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny()
103 public <T> Future<T> submit(Callable<T> task) { in submit()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DCallablesTest.java26 import java.util.concurrent.Callable;
42 Callable<Object> callable = Callables.returning(value); in testReturning()
51 Callable<String> callable = in testAsAsyncCallable()
52 new Callable<String>() { in testAsAsyncCallable()
69 Callable<String> callable = in testAsAsyncCallable_exception()
70 new Callable<String>() { in testAsAsyncCallable_exception()
93 Callable<Void> callable = in testRenaming()
94 new Callable<Void>() { in testRenaming()
110 Callable<Void> callable = in testRenaming_exceptionalReturn()
111 new Callable<Void>() { in testRenaming_exceptionalReturn()
[all …]
DWrappingExecutorServiceTest.java30 import java.util.concurrent.Callable;
87 Callable<String> task = Callables.returning(RESULT_VALUE); in testSubmit()
95 List<Callable<String>> tasks = createTasks(3); in testInvokeAll()
115 List<Callable<String>> tasks = createTasks(3); in testInvokeAny()
141 private static List<Callable<String>> createTasks(int n) { in createTasks()
142 List<Callable<String>> callables = Lists.newArrayList(); in createTasks()
149 private static final class WrappedCallable<T> implements Callable<T> {
150 private final Callable<T> delegate;
152 public WrappedCallable(Callable<T> delegate) { in WrappedCallable()
181 protected <T> Callable<T> wrapTask(Callable<T> callable) { in wrapTask()
[all …]
DWrappingScheduledExecutorServiceTest.java23 import java.util.concurrent.Callable;
73 private static final class WrappedCallable<T> implements Callable<T> {
74 private final Callable<T> delegate;
76 public WrappedCallable(Callable<T> delegate) { in WrappedCallable()
105 protected <T> Callable<T> wrapTask(Callable<T> callable) { in wrapTask()
144 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule()
181 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll()
188 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAll()
194 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
200 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCallablesTest.java26 import java.util.concurrent.Callable;
42 Callable<Object> callable = Callables.returning(value); in testReturning()
51 Callable<String> callable = in testAsAsyncCallable()
52 new Callable<String>() { in testAsAsyncCallable()
69 Callable<String> callable = in testAsAsyncCallable_exception()
70 new Callable<String>() { in testAsAsyncCallable_exception()
93 Callable<Void> callable = in testRenaming()
94 new Callable<Void>() { in testRenaming()
110 Callable<Void> callable = in testRenaming_exceptionalReturn()
111 new Callable<Void>() { in testRenaming_exceptionalReturn()
[all …]
DWrappingExecutorServiceTest.java30 import java.util.concurrent.Callable;
87 Callable<String> task = Callables.returning(RESULT_VALUE); in testSubmit()
95 List<Callable<String>> tasks = createTasks(3); in testInvokeAll()
115 List<Callable<String>> tasks = createTasks(3); in testInvokeAny()
141 private static List<Callable<String>> createTasks(int n) { in createTasks()
142 List<Callable<String>> callables = Lists.newArrayList(); in createTasks()
149 private static final class WrappedCallable<T> implements Callable<T> {
150 private final Callable<T> delegate;
152 public WrappedCallable(Callable<T> delegate) { in WrappedCallable()
181 protected <T> Callable<T> wrapTask(Callable<T> callable) { in wrapTask()
[all …]
DWrappingScheduledExecutorServiceTest.java23 import java.util.concurrent.Callable;
73 private static final class WrappedCallable<T> implements Callable<T> {
74 private final Callable<T> delegate;
76 public WrappedCallable(Callable<T> delegate) { in WrappedCallable()
105 protected <T> Callable<T> wrapTask(Callable<T> callable) { in wrapTask()
144 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule()
181 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll()
188 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAll()
194 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
200 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DTaskQueue.h41 template <typename Callable> struct Task {
42 using ResultTy = typename std::result_of<Callable()>::type;
43 explicit Task(Callable C, TaskQueue &Parent) in Task()
63 Callable C;
81 template <typename Callable>
82 std::future<typename std::result_of<Callable()>::type> async(Callable &&C) { in async()
87 Task<Callable> T{std::move(C), *this}; in async()
88 using ResultTy = typename std::result_of<Callable()>::type; in async()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DScopeExit.h26 template <typename Callable> class scope_exit {
27 Callable ExitFunction;
57 template <typename Callable>
58 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type>
59 make_scope_exit(Callable &&F) { in make_scope_exit()
60 return detail::scope_exit<typename std::decay<Callable>::type>( in make_scope_exit()
61 std::forward<Callable>(F)); in make_scope_exit()
/external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/
DLambda.java17 import java.util.concurrent.Callable;
36 public static Callable<String> hello() { in hello()
37 return (Callable<String> & java.util.RandomAccess) () -> "hello"; in hello()
40 public static Function<Integer, Callable<Long>> mult(int x) { in mult()
41 return new Function<Integer, Callable<Long>>() { in mult()
43 public Callable<Long> apply(Integer y) { in mult()
DInnerClassLambda.java17 import java.util.concurrent.Callable;
35 public Function<List<String>, Callable<List<String>>> prefixFilter(String prefix) { in prefixFilter()
36 return new Function<List<String>, Callable<List<String>>>() { in prefixFilter()
38 public Callable<List<String>> apply(List<String> input) { in prefixFilter()
39 return new Callable<List<String>>() { in prefixFilter()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/perf/
DTimedScenario.java14 import java.util.concurrent.Callable;
31 final Callable<Void> refRunnable = getReferenceCallable(); in run()
49 private long getMinimumTime(final Callable<Void> subject) throws Exception { in getMinimumTime()
58 private long getTime(final Callable<Void> subject) throws Exception { in getTime()
64 protected abstract Callable<Void> getInstrumentedCallable() in getInstrumentedCallable()
67 protected Callable<Void> getReferenceCallable() throws Exception { in getReferenceCallable()
DExecuteInstrumentedCodeScenario.java14 import java.util.concurrent.Callable;
28 private final Class<? extends Callable<Void>> target;
31 Class<? extends Callable<Void>> target) { in ExecuteInstrumentedCodeScenario()
38 protected Callable<Void> getInstrumentedCallable() throws Exception { in getInstrumentedCallable()
46 return (Callable<Void>) loader.add(target, instrumentedBuffer) in getInstrumentedCallable()
51 protected Callable<Void> getReferenceCallable() throws Exception { in getReferenceCallable()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DCurrentSpanUtilsTest.java27 import java.util.concurrent.Callable;
58 private void executeCallableAndExpectError(Callable<Object> callable, Throwable error) { in executeCallableAndExpectError()
187 Callable<Object> callable = in withSpanCallable()
188 new Callable<Object>() { in withSpanCallable()
205 Callable<Object> callable = in withSpanCallable_EndSpan()
206 new Callable<Object>() { in withSpanCallable_EndSpan()
223 Callable<Object> callable = in withSpanCallable_WithException()
224 new Callable<Object>() { in withSpanCallable_WithException()
242 Callable<Object> callable = in withSpanCallable_WithExceptionNoMessage()
243 new Callable<Object>() { in withSpanCallable_WithExceptionNoMessage()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DScopeExitTest.cpp18 struct Callable { in TEST() struct
20 Callable(bool &Called) : Called(Called) {} in TEST() function
21 Callable(Callable &&RHS) : Called(RHS.Called) {} in TEST() argument
26 auto g = make_scope_exit(Callable(Called)); in TEST()
/external/mockito/src/test/java/org/mockitoutil/
DSimplePerRealmReloadingClassLoader.java12 import java.util.concurrent.Callable;
91 if (instance instanceof Callable) { in doInRealm()
92 Callable<?> callableInRealm = (Callable<?>) instance; in doInRealm()
107 if (instance instanceof Callable) { in doInRealm()
108 Callable<?> callableInRealm = (Callable<?>) instance; in doInRealm()
/external/guice/core/test/com/google/inject/
DPerformanceComparison.java25 import java.util.concurrent.Callable;
67 static final Callable<Foo> springFactory =
68 new Callable<Foo>() {
106 static final Callable<Foo> juiceFactory =
107 new Callable<Foo>() {
137 static final Callable<Foo> byHandFactory =
138 new Callable<Foo>() {
154 static void validate(Callable<Foo> t) throws Exception { in validate()
165 static void iterate(Callable<Foo> callable, String label) { in iterate()
183 static void concurrentlyIterate(final Callable<Foo> callable, String label) { in concurrentlyIterate()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/util/concurrent/
DRoboExecutorService.java7 import java.util.concurrent.Callable;
28 public AdvancingFutureTask(Scheduler scheduler, Callable<V> callable) { in AdvancingFutureTask()
85 public <T> Future<T> submit(Callable<T> tCallable) { in submit()
114 …public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables) throws Interrupt… in invokeAll()
119 …public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit… in invokeAll()
124 …public <T> T invokeAny(Collection<? extends Callable<T>> callables) throws InterruptedException, E… in invokeAny()
129 …public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) thr… in invokeAny()

12345678910>>...17