Home
last modified time | relevance | path

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

1234567

/external/v8/src/
Dcode-factory.cc15 Callable CodeFactory::LoadIC(Isolate* isolate, TypeofMode typeof_mode, in LoadIC()
17 return Callable( in LoadIC()
25 Callable CodeFactory::LoadICInOptimizedCode( in LoadICInOptimizedCode()
31 return Callable(code, LoadWithVectorDescriptor(isolate)); in LoadICInOptimizedCode()
36 Callable CodeFactory::KeyedLoadIC(Isolate* isolate, in KeyedLoadIC()
40 return Callable(KeyedLoadIC::initialize_stub(isolate, state), in KeyedLoadIC()
46 Callable CodeFactory::KeyedLoadICInOptimizedCode( in KeyedLoadICInOptimizedCode()
54 return Callable(code, LoadWithVectorDescriptor(isolate)); in KeyedLoadICInOptimizedCode()
56 return Callable(code, LoadDescriptor(isolate)); in KeyedLoadICInOptimizedCode()
61 Callable CodeFactory::CallIC(Isolate* isolate, int argc, in CallIC()
[all …]
Dcode-factory.h18 class Callable final BASE_EMBEDDED {
20 Callable(Handle<Code> code, CallInterfaceDescriptor descriptor) in Callable() function
35 static Callable LoadIC(Isolate* isolate, TypeofMode typeof_mode,
37 static Callable LoadICInOptimizedCode(Isolate* isolate,
41 static Callable KeyedLoadIC(Isolate* isolate, LanguageMode language_mode);
42 static Callable KeyedLoadICInOptimizedCode(
45 static Callable CallIC(Isolate* isolate, int argc,
47 static Callable CallICInOptimizedCode(
50 static Callable StoreIC(Isolate* isolate, LanguageMode mode);
51 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode,
[all …]
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DTransferRequestIntegrationTest.java29 import java.util.concurrent.Callable;
42 private final Callable<Boolean> FALSE_CALLABLE = new Callable<Boolean>() {
73 Callable<Callable<Boolean>> callable = new Callable<Callable<Boolean>>() { in testTransferNonHttpRequest()
74 @Override public Callable<Boolean> call() { in testTransferNonHttpRequest()
76 return ServletScopes.transferRequest(new Callable<Boolean>() { in testTransferNonHttpRequest()
85 Callable<Boolean> transfer = ServletScopes.scopeRequest(callable, seedMap).call(); in testTransferNonHttpRequest()
93 Callable<Boolean> callable = new Callable<Boolean>() { in testTransferNonHttpRequest_concurrentUseBlocks()
114 Callable<Boolean> callable = new Callable<Boolean>() { in testTransferNonHttpRequest_concurrentUseSameThreadOk()
/external/guava/guava/src/com/google/common/util/concurrent/
DWrappingExecutorService.java26 import java.util.concurrent.Callable;
58 protected abstract <T> Callable<T> wrapTask(Callable<T> callable); in wrapTask()
65 final Callable<Object> wrapped = wrapTask( in wrapTask()
83 private final <T> ImmutableList<Callable<T>> wrapTasks(
84 Collection<? extends Callable<T>> tasks) {
85 ImmutableList.Builder<Callable<T>> builder = ImmutableList.builder();
86 for (Callable<T> task : tasks) {
99 public final <T> Future<T> submit(Callable<T> task) {
115 Collection<? extends Callable<T>> tasks) throws InterruptedException {
121 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
[all …]
DCallables.java23 import java.util.concurrent.Callable;
40 public static <T> Callable<T> returning(final @Nullable T value) { in returning()
41 return new Callable<T>() { in returning()
57 static <T> Callable<T> threadRenaming(final Callable<T> callable,
61 return new Callable<T>() {
DForwardingExecutorService.java23 import java.util.concurrent.Callable;
55 Collection<? extends Callable<T>> tasks) throws InterruptedException { in invokeAll()
61 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAll()
67 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
74 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny()
104 public <T> Future<T> submit(Callable<T> task) { in submit()
DListeningExecutorService.java21 import java.util.concurrent.Callable;
41 <T> ListenableFuture<T> submit(Callable<T> task); in submit()
74 <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll()
96 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAll()
/external/guice/extensions/servlet/src/com/google/inject/servlet/
DServletScopes.java32 import java.util.concurrent.Callable;
214 public static <T> Callable<T> continueRequest(final Callable<T> callable, in continueRequest()
228 return new Callable<T>() { in continueRequest()
261 public static <T> Callable<T> transferRequest(Callable<T> callable) {
267 private static <T> Callable<T> transferHttpRequest(final Callable<T> callable) {
272 return new Callable<T>() {
279 private static <T> Callable<T> transferNonHttpRequest(final Callable<T> callable) {
284 return new Callable<T>() {
323 public static <T> Callable<T> scopeRequest(final Callable<T> callable,
338 return new Callable<T>() {
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DWrappingExecutorServiceTest.java32 import java.util.concurrent.Callable;
88 Callable<String> task = Callables.returning(RESULT_VALUE); in testSubmit()
96 List<Callable<String>> tasks = createTasks(3); in testInvokeAll()
116 List<Callable<String>> tasks = createTasks(3); in testInvokeAny()
142 private static List<Callable<String>> createTasks(int n) { in createTasks()
143 List<Callable<String>> callables = Lists.newArrayList(); in createTasks()
150 private static final class WrappedCallable<T> implements Callable<T> {
151 private final Callable<T> delegate;
153 public WrappedCallable(Callable<T> delegate) { in WrappedCallable()
182 protected <T> Callable<T> wrapTask(Callable<T> callable) { in wrapTask()
[all …]
DWrappingScheduledExecutorServiceTest.java23 import java.util.concurrent.Callable;
65 private static final class WrappedCallable<T> implements Callable<T> {
66 private final Callable<T> delegate;
68 public WrappedCallable(Callable<T> delegate) { in WrappedCallable()
97 protected <T> Callable<T> wrapTask(Callable<T> callable) { in wrapTask()
134 Callable<V> callable, long delay, TimeUnit unit) { in schedule()
169 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll()
176 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAll()
182 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
188 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny()
[all …]
DCallablesTest.java25 import java.util.concurrent.Callable;
38 Callable<Object> callable = Callables.returning(value); in testReturning()
47 Callable<Void> callable = new Callable<Void>() { in testRenaming()
61 Callable<Void> callable = new Callable<Void>() { in testRenaming_exceptionalReturn()
86 Callable<Void> callable = new Callable<Void>() { in testRenaming_noPermissions()
/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;
29 private final Class<? extends Callable<Void>> target;
32 Class<? extends Callable<Void>> target) { in ExecuteInstrumentedCodeScenario()
39 protected Callable<Void> getInstrumentedCallable() throws Exception { in getInstrumentedCallable()
47 return (Callable<Void>) loader.add(target, instrumentedBuffer) in getInstrumentedCallable()
52 protected Callable<Void> getReferenceCallable() throws Exception { in getReferenceCallable()
/external/v8/src/interpreter/
Dinterpreter.h21 class Callable; variable
70 void DoLoadGlobal(Callable ic, compiler::InterpreterAssembler* assembler);
73 void DoStoreGlobal(Callable ic, compiler::InterpreterAssembler* assembler);
76 void DoLoadIC(Callable ic, compiler::InterpreterAssembler* assembler);
79 void DoKeyedLoadIC(Callable ic, compiler::InterpreterAssembler* assembler);
82 void DoStoreIC(Callable ic, compiler::InterpreterAssembler* assembler);
85 void DoKeyedStoreIC(Callable ic, compiler::InterpreterAssembler* assembler);
Dinterpreter.cc238 void Interpreter::DoLoadGlobal(Callable ic, in DoLoadGlobal()
265 Callable ic = CodeFactory::LoadICInOptimizedCode(isolate_, NOT_INSIDE_TYPEOF, in DoLdaGlobalSloppy()
276 Callable ic = CodeFactory::LoadICInOptimizedCode(isolate_, NOT_INSIDE_TYPEOF, in DoLdaGlobalStrict()
288 Callable ic = CodeFactory::LoadICInOptimizedCode(isolate_, INSIDE_TYPEOF, in DoLdaGlobalInsideTypeofSloppy()
300 Callable ic = CodeFactory::LoadICInOptimizedCode(isolate_, INSIDE_TYPEOF, in DoLdaGlobalInsideTypeofStrict()
312 Callable ic = CodeFactory::LoadICInOptimizedCode(isolate_, NOT_INSIDE_TYPEOF, in DoLdaGlobalSloppyWide()
324 Callable ic = CodeFactory::LoadICInOptimizedCode(isolate_, NOT_INSIDE_TYPEOF, in DoLdaGlobalStrictWide()
336 Callable ic = CodeFactory::LoadICInOptimizedCode(isolate_, INSIDE_TYPEOF, in DoLdaGlobalInsideTypeofSloppyWide()
348 Callable ic = CodeFactory::LoadICInOptimizedCode(isolate_, INSIDE_TYPEOF, in DoLdaGlobalInsideTypeofStrictWide()
354 void Interpreter::DoStoreGlobal(Callable ic, in DoStoreGlobal()
[all …]
/external/guava/guava-bootstrap/src/java/util/concurrent/
DExecutorService.java28 <T> Future<T> submit(Callable<T> task); in submit()
34 <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll()
38 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAll()
41 <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
45 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny()
DAbstractExecutorService.java31 public <T> Future<T> submit(Callable<T> task) { in submit()
38 private <T> T doInvokeAny(Collection<? extends Callable<T>> tasks, in doInvokeAny()
53 Iterator<? extends Callable<T>> it = tasks.iterator(); in doInvokeAny()
104 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
114 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, in invokeAny()
120 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll()
127 for (Callable<T> t : tasks) { in invokeAll()
150 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, in invokeAll()
159 for (Callable<T> t : tasks) in invokeAll()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/util/
DRobolectricBackgroundExecutorService.java7 import java.util.concurrent.Callable;
42 public <T> Future<T> submit(Callable<T> tCallable) { in submit()
68 …public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables) throws Interrupt… in invokeAll()
73 …public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit… in invokeAll()
78 …public <T> T invokeAny(Collection<? extends Callable<T>> callables) throws InterruptedException, E… in invokeAny()
83 …public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) thr… in invokeAny()
/external/guice/core/test/com/google/inject/
DPerformanceComparison.java31 import java.util.concurrent.Callable;
69 static final Callable<Foo> springFactory = new Callable<Foo>() {
106 static final Callable<Foo> juiceFactory = new Callable<Foo>() {
131 static final Callable<Foo> byHandFactory = new Callable<Foo>() {
145 static void validate(Callable<Foo> t) throws Exception { in validate()
156 static void iterate(Callable<Foo> callable, String label) { in iterate()
176 static void concurrentlyIterate(final Callable<Foo> callable, String label) { in concurrentlyIterate()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DFuturesCombineBenchmark.java26 import java.util.concurrent.Callable;
39 @Override <V> ListenableFuture<V> combine(final Callable<V> combiner, Executor executor, in combine()
59 <V> ListenableFuture<V> combine(Callable<V> combiner, final Executor executor,
66 Callable<V> combiner, Executor executor,
86 Callable<Integer> callable = Callables.returning(12);
101 Callable<Integer> callable = Callables.returning(12);
111 Callable<Integer> callable = Callables.returning(12);
126 Callable<Integer> callable = Callables.returning(12);
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DSameThreadScheduledExecutorService.java31 import java.util.concurrent.Callable;
81 public <T> ListenableFuture<T> submit(Callable<T> task) { in submit()
101 Collection<? extends Callable<T>> tasks) throws InterruptedException { in invokeAll()
108 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAll()
116 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
123 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, in invokeAny()
176 public <V> ListenableScheduledFuture<V> schedule(final Callable<V> callable, in schedule()
/external/guice/jdk8-tests/test/com/google/inject/jdk8/
DJava8LanguageFeatureBindingTest.java34 import java.util.concurrent.Callable;
67 public Callable<String> provideCallable() { in testProviderMethod_returningLambda()
72 Callable<String> callable = injector.getInstance(new Key<Callable<String>>() {}); in testProviderMethod_returningLambda()
82 public Callable<String> provideCallable() { in testProviderMethod_containingLambda_throwingException()
92 injector.getInstance(new Key<Callable<String>>() {}); in testProviderMethod_containingLambda_throwingException()
/external/guava/guava-testlib/test/com/google/common/util/concurrent/testing/
DTestingExecutorsTest.java26 import java.util.concurrent.Callable;
67 Callable<Boolean> task = new Callable<Boolean>() { in testNoOpScheduledExecutorInvokeAll()
88 Callable<Integer> task = new Callable<Integer>() { in testSameThreadScheduledExecutor()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
DRuntimeDataTest.java20 import java.util.concurrent.Callable;
117 new String[] { Type.getInternalName(Callable.class) }); in testGenerateArgumentArray()
141 Callable<?> callable = (Callable<?>) loader.add("Sample", in testGenerateArgumentArray()
158 new String[] { Type.getInternalName(Callable.class) }); in testGenerateAccessCall()
192 Callable<?> callable = (Callable<?>) loader in testGenerateAccessCall()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DProgressDialogTest.java13 import java.util.concurrent.Callable;
80 … assertLatestDialogsSet("Title", "Message", false, false, null, new Callable<ProgressDialog>() { in show_setsLatestAlertDialogAndLatestDialog_3args()
91 … assertLatestDialogsSet("Title", "Message", true, false, null, new Callable<ProgressDialog>() { in show_setsLatestAlertDialogAndLatestDialog_4args()
101 … assertLatestDialogsSet("Title", "Message", true, true, null, new Callable<ProgressDialog>() { in show_setsLatestAlertDialogAndLatestDialog_5args()
117 …assertLatestDialogsSet("Title", "Message", true, true, cancelListener, new Callable<ProgressDialog… in show_setsLatestAlertDialogAndLatestDialog_6args()
127 Callable<ProgressDialog> callable) throws Exception { in assertLatestDialogsSet()

1234567