/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | TransferRequestIntegrationTest.java | 26 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/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | AvoidBindCheck.cpp | 104 CallableInfo Callable; member 257 const CallableInfo &Callable) { in buildBindArguments() argument 271 if (Callable.Type == CT_MemberFunction) in buildBindArguments() 274 bool IsObjectPtr = (I == 1 && Callable.Type == CT_MemberFunction); in buildBindArguments() 278 if (!Callable.Decl || ArgIndex < Callable.Decl->getNumParams() || in buildBindArguments() 462 const FunctionDecl *getCallOperator(const CXXRecordDecl *Callable, in getCallOperator() argument 465 findCandidateCallOperators(Callable, NumArgs); in getCallOperator() 558 LP.Callable.Type = getCallableType(Result); in getLambdaProperties() 559 LP.Callable.Materialization = getCallableMaterialization(Result); in getLambdaProperties() 560 LP.Callable.Decl = in getLambdaProperties() [all …]
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | WrappingExecutorService.java | 25 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 …]
|
/external/guava/android/guava/src/com/google/common/util/concurrent/ |
D | WrappingExecutorService.java | 25 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 …]
|
/external/abseil-cpp/absl/base/ |
D | call_once.h | 76 template <typename Callable, typename... Args> 77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args); 105 template <typename Callable, typename... Args> 106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args); 145 template <typename Callable, typename... Args> 148 base_internal::SchedulingMode scheduling_mode, Callable&& fn, in CallOnceImpl() 178 base_internal::Invoke(std::forward<Callable>(fn), in CallOnceImpl() 199 template <typename Callable, typename... Args> 200 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args) { in LowLevelCallOnce() 205 std::forward<Callable>(fn), in LowLevelCallOnce() [all …]
|
/external/angle/third_party/abseil-cpp/absl/base/ |
D | call_once.h | 76 template <typename Callable, typename... Args> 77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args); 105 template <typename Callable, typename... Args> 106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args); 145 template <typename Callable, typename... Args> 148 base_internal::SchedulingMode scheduling_mode, Callable&& fn, in CallOnceImpl() 178 base_internal::invoke(std::forward<Callable>(fn), in CallOnceImpl() 192 template <typename Callable, typename... Args> 193 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args) { in LowLevelCallOnce() 198 std::forward<Callable>(fn), in LowLevelCallOnce() [all …]
|
/external/libtextclassifier/abseil-cpp/absl/base/ |
D | call_once.h | 76 template <typename Callable, typename... Args> 77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args); 105 template <typename Callable, typename... Args> 106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args); 145 template <typename Callable, typename... Args> 148 base_internal::SchedulingMode scheduling_mode, Callable&& fn, in CallOnceImpl() 178 base_internal::invoke(std::forward<Callable>(fn), in CallOnceImpl() 199 template <typename Callable, typename... Args> 200 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args) { in LowLevelCallOnce() 205 std::forward<Callable>(fn), in LowLevelCallOnce() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/base/ |
D | call_once.h | 76 template <typename Callable, typename... Args> 77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args); 105 template <typename Callable, typename... Args> 106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args); 145 template <typename Callable, typename... Args> 148 base_internal::SchedulingMode scheduling_mode, Callable&& fn, in CallOnceImpl() 178 base_internal::Invoke(std::forward<Callable>(fn), in CallOnceImpl() 199 template <typename Callable, typename... Args> 200 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args) { in LowLevelCallOnce() 205 std::forward<Callable>(fn), in LowLevelCallOnce() [all …]
|
/external/openscreen/third_party/abseil/src/absl/base/ |
D | call_once.h | 76 template <typename Callable, typename... Args> 77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args); 105 template <typename Callable, typename... Args> 106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args); 145 template <typename Callable, typename... Args> 148 base_internal::SchedulingMode scheduling_mode, Callable&& fn, in CallOnceImpl() 178 base_internal::invoke(std::forward<Callable>(fn), in CallOnceImpl() 199 template <typename Callable, typename... Args> 200 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args) { in LowLevelCallOnce() 205 std::forward<Callable>(fn), in LowLevelCallOnce() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/ |
D | call_once.h | 76 template <typename Callable, typename... Args> 77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args); 105 template <typename Callable, typename... Args> 106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args); 145 template <typename Callable, typename... Args> 148 base_internal::SchedulingMode scheduling_mode, Callable&& fn, in CallOnceImpl() 178 base_internal::invoke(std::forward<Callable>(fn), in CallOnceImpl() 199 template <typename Callable, typename... Args> 200 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args) { in LowLevelCallOnce() 205 std::forward<Callable>(fn), in LowLevelCallOnce() [all …]
|
/external/openscreen/third_party/abseil/src/absl/strings/internal/ |
D | string_constant_test.cc | 25 struct Callable { struct 32 constexpr auto str = MakeStringConstant(Callable{}); in TEST() 44 constexpr auto str = MakeStringConstant(Callable{}); in TEST() 46 EXPECT_EQ(Callable{}(), T::value); in TEST() 47 EXPECT_EQ(Callable{}(), str()); in TEST() 53 constexpr auto str = MakeStringConstant(Callable{}); in TEST() 56 EXPECT_EQ(Callable{}(), T::value); in TEST() 57 EXPECT_EQ(Callable{}(), str2()); in TEST()
|
/external/angle/third_party/abseil-cpp/absl/strings/internal/ |
D | string_constant_test.cc | 25 struct Callable { struct 32 constexpr auto str = MakeStringConstant(Callable{}); in TEST() 44 constexpr auto str = MakeStringConstant(Callable{}); in TEST() 46 EXPECT_EQ(Callable{}(), T::value); in TEST() 47 EXPECT_EQ(Callable{}(), str()); in TEST() 53 constexpr auto str = MakeStringConstant(Callable{}); in TEST() 56 EXPECT_EQ(Callable{}(), T::value); in TEST() 57 EXPECT_EQ(Callable{}(), str2()); in TEST()
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | TaskQueue.h | 40 template <typename Callable> struct Task { 41 using ResultTy = std::result_of_t<Callable()>; 42 explicit Task(Callable C, TaskQueue &Parent) in Task() 62 Callable C; 80 template <typename Callable> 81 std::future<std::result_of_t<Callable()>> async(Callable &&C) { in async() 86 Task<Callable> T{std::move(C), *this}; in async() 87 using ResultTy = std::result_of_t<Callable()>; in async()
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | CallablesTest.java | 26 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 …]
|
D | WrappingExecutorServiceTest.java | 30 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 …]
|
D | WrappingScheduledExecutorServiceTest.java | 23 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/ |
D | CallablesTest.java | 26 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 …]
|
D | WrappingExecutorServiceTest.java | 30 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 …]
|
D | WrappingScheduledExecutorServiceTest.java | 23 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-10.0/llvm/include/llvm/Support/ |
D | TaskQueue.h | 40 template <typename Callable> struct Task { 41 using ResultTy = typename std::result_of<Callable()>::type; 42 explicit Task(Callable C, TaskQueue &Parent) in Task() 62 Callable C; 80 template <typename Callable> 81 std::future<typename std::result_of<Callable()>::type> async(Callable &&C) { in async() 86 Task<Callable> T{std::move(C), *this}; in async() 87 using ResultTy = typename std::result_of<Callable()>::type; in async()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | ScopeExit.h | 25 template <typename Callable> class scope_exit { 26 Callable ExitFunction; 56 template <typename Callable> 57 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type> 58 make_scope_exit(Callable &&F) { in make_scope_exit() 59 return detail::scope_exit<typename std::decay<Callable>::type>( in make_scope_exit() 60 std::forward<Callable>(F)); in make_scope_exit()
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | ScopeExit.h | 25 template <typename Callable> class scope_exit { 26 Callable ExitFunction; 56 template <typename Callable> 57 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type> 58 make_scope_exit(Callable &&F) { in make_scope_exit() 59 return detail::scope_exit<typename std::decay<Callable>::type>( in make_scope_exit() 60 std::forward<Callable>(F)); in make_scope_exit()
|
/external/llvm-project/clang/test/Analysis/ |
D | cxx-uninitialized-object.cpp | 748 template <class Callable> 750 Callable functor; 752 LambdaThisTest(const Callable &functor, int) : functor(functor) { in LambdaThisTest() 764 template <class Callable> 766 Callable functor; 768 LambdaTest1(const Callable &functor, int) : functor(functor) { in LambdaTest1() 779 template <class Callable> 781 Callable functor; 783 …LambdaTest2(const Callable &functor, int) : functor(functor) {} // expected-warning{{1 uninitializ… in LambdaTest2() 792 template <class Callable> [all …]
|
/external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/ |
D | Lambda.java | 17 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()
|
/external/pigweed/pw_hdlc/py/pw_hdlc/ |
D | rpc.py | 21 from typing import (Any, BinaryIO, Callable, Dict, Iterable, List, NoReturn, 37 def channel_output(writer: Callable[[bytes], Any], 39 delay_s: float = 0) -> Callable[[bytes], None]: 65 FrameHandlers = Dict[int, Callable[[Frame], Any]] 68 def read_and_process_data(read: Callable[[], bytes], argument 69 on_read_error: Callable[[Exception], Any], 71 error_handler: Callable[[Frame], 118 def default_channels(write: Callable[[bytes], Any]) -> List[pw_rpc.Channel]: 125 read: Callable[[], bytes], argument 129 output: Callable[[bytes], Any] = write_to_file,
|