/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | argument_encoder.h | 25 template <typename... Args> 26 class ArgumentEncoder<void(Args...)> { 31 void EncodeArguments(Args... args) { in EncodeArguments() 40 template <typename Return, typename... Args> 41 class ArgumentEncoder<Return(Args...)> { 49 void EncodeArguments(Args... args) { in EncodeArguments() 64 template <typename Return, typename... Args> 65 inline ArgumentEncoder<Return(Args...)> MakeArgumentEncoder( in MakeArgumentEncoder() 66 Return (*)(Args...), MessageWriter* writer) { in MakeArgumentEncoder() argument 67 return ArgumentEncoder<Return(Args...)>(writer); in MakeArgumentEncoder() [all …]
|
D | remote_method.h | 84 template <typename Class, typename Return, typename... Args> 85 class UnpackArguments<Class, Return(Args...)> { 87 using ArgsTupleType = std::tuple<typename std::decay<Args>::type...>; 88 using MethodType = Return (Class::*)(Message&, Args...); 99 constexpr auto Arity = sizeof...(Args); 178 template <typename RemoteMethodType, typename Class, typename... Args, 181 void (Class::*method)(Message&, Args...), 184 using Signature = typename RemoteMethodType::template RewriteArgs<Args...>; 214 typename... Args, typename = EnableIfNotVoidMethod<RemoteMethodType>> 216 Return (Class::*method)(Message&, Args...), [all …]
|
D | variant.h | 47 template <typename T, typename... Args> 48 struct IsConstructible<T, Args...> : std::is_constructible<T, Args...> {}; 51 template <typename R, typename T, typename... Args> 53 typename std::enable_if<IsConstructible<T, Args...>::value, R>::type; 55 template <typename R, typename T, typename... Args> 57 typename std::enable_if<!IsConstructible<T, Args...>::value, R>::type; 167 template <typename... Args> 168 std::int32_t Construct(TypeTag<Type>, Args&&... args) { 169 new (&first_) Type(std::forward<Args>(args)...); 172 template <typename... Args> [all …]
|
/frameworks/native/include/ftl/details/ |
D | function.h | 37 template <typename Class, typename Ret, typename... Args> 38 struct remove_member_function_pointer<Ret (Class::*)(Args...)> { 39 using type = Ret(Args...); 42 template <typename Class, typename Ret, typename... Args> 43 struct remove_member_function_pointer<Ret (Class::*)(Args...) const> { 44 using type = Ret(Args...); 53 template <typename Ret, typename... Args> 54 auto bind_opaque_no_op() -> Ret (*)(void*, Args...) { 55 return [](void*, Args...) -> Ret { 62 template <typename F, typename Ret, typename... Args> [all …]
|
/frameworks/compile/slang/ |
D | rs_cc_options.cpp | 112 llvm::opt::InputArgList Args = in ParseArguments() local 118 << Args.getArgString(MissingArgIndex) << MissingArgCount; in ParseArguments() 122 for (llvm::opt::arg_iterator it = Args.filtered_begin(OPT_UNKNOWN), in ParseArguments() 123 ie = Args.filtered_end(); in ParseArguments() 126 << (*it)->getAsString(Args); in ParseArguments() 129 DiagOpts.IgnoreWarnings = Args.hasArg(OPT_w); in ParseArguments() 130 DiagOpts.Warnings = Args.getAllArgValues(OPT_W); in ParseArguments() 141 for (llvm::opt::ArgList::const_iterator it = Args.begin(), ie = Args.end(); in ParseArguments() 148 Opts.mIncludePaths = Args.getAllArgValues(OPT_I); in ParseArguments() 150 Opts.mBitcodeOutputDir = Args.getLastArgValue(OPT_o); in ParseArguments() [all …]
|
/frameworks/native/include/ftl/ |
D | initializer_list.h | 57 template <typename... Args> 58 [[nodiscard]] constexpr auto operator()(Args&&... args) && -> InitializerList< 59 T, std::index_sequence<Sizes..., sizeof...(Args)>, Types..., Args&&...> { 60 return {std::tuple_cat(std::move(tuple), std::forward_as_tuple(std::forward<Args>(args)...))}; 78 template <typename... Args> 79 [[nodiscard]] constexpr auto operator()(K&& k, Args&&... args) && -> InitializerList< 81 std::tuple<K&&>, std::tuple<Args&&...>> { 85 std::forward_as_tuple(std::forward<Args>(args)...)))}; 93 template <typename T, typename... Args> 94 [[nodiscard]] constexpr auto list(Args&&... args) { [all …]
|
D | function.h | 155 template <typename Ret, typename... Args, std::size_t N> 156 class Function<Ret(Args...), N> final { 176 Function(NoOpTag) : function_(details::bind_opaque_no_op<Ret, Args...>()) {} 184 template <typename F, typename = std::enable_if_t<std::is_invocable_r_v<Ret, F, Args...>>> 187 function_(details::bind_opaque_function_object<F, Ret, Args...>(f)) {} 189 template <typename F, typename = std::enable_if_t<std::is_invocable_r_v<Ret, F, Args...>>> 192 details::bind_opaque_function_object<F, Ret, Args...>(f)}; 198 Function(const Function<Ret(Args...), M>& other) 202 auto& operator=(const Function<Ret(Args...), M>& other) { 220 Ret operator()(Args... args) const { [all …]
|
D | future.h | 88 template <typename V, typename... Args> 89 friend Future<V> yield(Args&&...); 91 template <typename... Args> 92 Future(details::ValueTag, Args&&... args) in Future() 93 : future_(std::in_place_type<T>, std::forward<Args>(args)...) {} in Future() 119 template <typename V, typename... Args> 120 inline Future<V> yield(Args&&... args) { in yield() 121 return {details::ValueTag{}, std::forward<Args>(args)...}; in yield() 129 template <typename F, typename... Args> 130 inline auto defer(F&& f, Args&&... args) { in defer() [all …]
|
D | small_vector.h | 103 template <typename Arg, typename... Args, 105 SmallVector(Arg&& arg, Args&&... args) in SmallVector() 106 : vector_(std::in_place_type<Static>, std::forward<Arg>(arg), std::forward<Args>(args)...) {} in SmallVector() 168 template <typename... Args> 169 reference replace(const_iterator it, Args&&... args) { in replace() 171 return std::get<Dynamic>(vector_).replace(it, std::forward<Args>(args)...); in replace() 173 return std::get<Static>(vector_).replace(it, std::forward<Args>(args)...); in replace() 182 template <typename... Args> 183 reference emplace_back(Args&&... args) { in emplace_back() 184 constexpr auto kInsertStatic = &Static::template emplace_back<Args...>; in emplace_back() [all …]
|
D | small_map.h | 176 template <typename... Args> 177 std::pair<iterator, bool> try_emplace(const key_type& key, Args&&... args) { in try_emplace() 184 std::forward_as_tuple(std::forward<Args>(args)...)); in try_emplace() 203 template <typename... Args> 204 iterator try_replace(const key_type& key, Args&&... args) { in try_replace() 208 std::forward_as_tuple(std::forward<Args>(args)...)); in try_replace() 222 template <typename... Args> 223 std::pair<iterator, bool> emplace_or_replace(const key_type& key, Args&&... args) { in emplace_or_replace() 224 const auto [it, ok] = try_emplace(key, std::forward<Args>(args)...); in emplace_or_replace() 227 std::forward_as_tuple(std::forward<Args>(args)...)); in emplace_or_replace()
|
/frameworks/libs/binary_translation/guest_abi/include/berberis/guest_abi/ |
D | function_wrappers.h | 45 typename... Args, 47 struct GetGuestArgumentClass<Res (*)(Args...), kCallingConventionsVariant> { 49 decltype(auto) operator()(GuestType<Res (*)(Args...)> func) const { 67 typename... Args, 69 struct GetGuestResultClass<Res (*)(Args...), kCallingConventionsVariant> { 71 decltype(auto) operator()(Res (*func)(Args...)) const { 73 TrampolineFuncGenerator<Res(Args...), kCallingConventionsVariant>::Func, 84 typename... Args, 86 class TrampolineFuncGenerator<Res(Args...), kCallingConventionsVariant> { 89 using Func = Res (*)(Args...); [all …]
|
/frameworks/native/services/surfaceflinger/FrontEnd/ |
D | LayerSnapshotBuilder.h | 45 struct Args { struct 66 LayerSnapshotBuilder(Args); argument 72 void update(const Args&); 97 bool tryFastUpdate(const Args& args); 99 void updateSnapshots(const Args& args); 101 const LayerSnapshot& updateSnapshotsInHierarchy(const Args&, const LayerHierarchy& hierarchy, 104 void updateSnapshot(LayerSnapshot&, const Args&, const RequestedLayerState&, 107 bool parentIsRelative, const Args& args); 110 const LayerSnapshot& parentSnapshot, const Args& args); 117 const Args& args); [all …]
|
/frameworks/libs/binary_translation/assembler/include/berberis/assembler/ |
D | common.h | 65 template <typename... Args> 66 void Byte(Args... args) { in Byte() 67 static_assert((std::is_same_v<Args, uint8_t> && ...)); in Byte() 71 template <typename... Args> 72 void TwoByte(Args... args) { in TwoByte() 73 static_assert((std::is_same_v<Args, uint16_t> && ...)); in TwoByte() 77 template <typename... Args> 78 void FourByte(Args... args) { in FourByte() 79 static_assert((std::is_same_v<Args, uint32_t> && ...)); in FourByte() 83 template <typename... Args> [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/tests/ |
D | AsyncCallRecorder.h | 75 template <typename... Args> 76 class AsyncCallRecorder<void (*)(Args...)> { 90 using ArgTuple = std::tuple<std::remove_cv_t<std::remove_reference_t<Args>>...>; 92 void recordCall(Args... args) { in recordCall() 101 return [this](Args... args) { recordCall(args...); }; in getInvocable() 150 template <typename Ret, typename... Args> 151 class AsyncCallRecorderWithCannedReturn<Ret (*)(Args...)> 152 : public AsyncCallRecorder<void (*)(Args...)> { 157 return [this](Args... args) { in getInvocable()
|
/frameworks/libs/binary_translation/backend/include/berberis/backend/x86_64/ |
D | machine_insn_intrinsics.h | 112 template <typename AsmCallInfo, auto kMnemo, auto kOpcode, typename Args, typename... Bindings> 171 typename... Args> 172 void ProcessArgs(T arg, Args... args) { 175 ProcessArgs<reg_idx, mem_idx, false, BindingsRest..., Args...>(args...); 183 ProcessArgs<reg_idx + 1, mem_idx, true, B, BindingsRest..., Args...>(args...); 192 ProcessArgs<reg_idx, mem_idx + 1, false, BindingsRest..., Args...>(args...); 195 ProcessArgs<reg_idx + 1, mem_idx, false, BindingsRest..., Args...>(args...); 230 template <typename... Args> 233 " " + ProcessDebugStringArgs<0 /* arg_idx */, 0 /* reg_idx */, 0 /* mem_idx */, Args...>(); 243 template <size_t arg_idx, size_t reg_idx, size_t mem_idx, typename T, typename... Args> [all …]
|
/frameworks/libs/binary_translation/intrinsics/common_to_x86/include/berberis/intrinsics/common_to_x86/ |
D | text_assembler_common.h | 255 template <typename... Args> 256 void Byte(Args... args) { in Byte() 257 static_assert((std::is_same_v<Args, uint8_t> && ...)); in Byte() 264 template <typename... Args> 265 void TwoByte(Args... args) { in TwoByte() 266 static_assert((std::is_same_v<Args, uint16_t> && ...)); in TwoByte() 273 template <typename... Args> 274 void FourByte(Args... args) { in FourByte() 275 static_assert((std::is_same_v<Args, uint32_t> && ...)); in FourByte() 282 template <typename... Args> [all …]
|
/frameworks/av/media/utils/include/mediautils/ |
D | InPlaceFunction.h | 28 template <typename Ret, typename... Args> 33 Ret (*invoke)(void* storage, Args&&...) = nullptr; 75 template <typename Ret, typename... Args, size_t BufferSize> 76 class InPlaceFunction<Ret(Args...), BufferSize> { 89 [[noreturn]] Ret operator()(Args...) { std::abort(); } in operator() 114 constexpr static detail::ICallableTable<Ret, Args...> table = { 117 .invoke = [](void* storage, Args&&... args) -> Ret { 119 std::invoke(getRef(storage), std::forward<Args>(args)...); 121 return std::invoke(getRef(storage), std::forward<Args>(args)...); 143 struct IsInPlaceFunction<InPlaceFunction<Ret(Args...), BufferSize_>> : std::true_type {}; [all …]
|
/frameworks/av/services/mediametrics/include/mediametricsservice/ |
D | Wrap.h | 49 template <typename... Args> 50 explicit SharedPtrWrap(Args&&... args) in SharedPtrWrap() 51 : mPtr(std::make_shared<T>(std::forward<Args>(args)...)) in SharedPtrWrap() 188 template <typename... Args> 189 explicit LockWrap(Args&&... args) : mT(std::forward<Args>(args)...) {} in LockWrap()
|
/frameworks/av/media/codec2/core/include/ |
D | C2ParamDef.h | 263 template<typename ...Args> \ 264 inline static std::ptr##_ptr<_Type> Alloc##Ptr(size_t flexCount, const Args(&... args)) { \ 267 template<typename ...Args, typename U=typename S::FlexType> \ 269 const std::initializer_list<U> &init, const Args(&... args)) { \ 272 template<typename ...Args, typename U=typename S::FlexType> \ 274 const std::vector<U> &init, const Args(&... args)) { \ 277 template<typename ...Args, typename U=typename S::FlexType, unsigned N> \ 278 inline static std::ptr##_ptr<_Type> Alloc##Ptr(const U(&init)[N], const Args(&... args)) { \ 347 template<typename ...Args> 348 … inline C2GlobalParam(const Args(&... args)) : T(sizeof(_Type), _Type::PARAM_TYPE), S(args...) { } [all …]
|
/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/ |
D | host_code.h | 43 template <typename Result, typename... Args> 44 using MakeFunctionType = Result (*)(Args...); 47 template <typename Result, typename... Args> 48 operator MakeFunctionType<Result, Args...>() { 49 return reinterpret_cast<MakeFunctionType<Result, Args...>>(ptr_);
|
/frameworks/native/cmds/lshal/ |
D | Timeout.h | 32 template<class R, class P, class Function, class I, class... Args> 33 typename std::invoke_result<Function, I *, Args...>::type 35 Args &&... args) { in timeoutIPC() 40 std::async(std::launch::async, func, interfaceObject, std::forward<Args>(args)...); in timeoutIPC()
|
/frameworks/native/cmds/dumpstate/ |
D | DumpPool.h | 111 template<class F, class... Args> 112 std::future<std::string> enqueueTask(const std::string& duration_title, F&& f, Args&&... args) { in enqueueTask() 114 std::forward<Args>(args)...); in enqueueTask() 131 template<class F, class... Args> std::future<std::string> enqueueTaskWithFd( in enqueueTaskWithFd() 132 const std::string& duration_title, F&& f, Args&&... args) { in enqueueTaskWithFd() 134 std::forward<Args>(args)...); in enqueueTaskWithFd()
|
D | TaskQueue.h | 48 template<class F, class... Args> void add(F&& f, Args&&... args) { in add() 49 auto func = std::bind(std::forward<F>(f), std::forward<Args>(args)...); in add()
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
D | trace.h | 21 template <typename... Args> 22 ScopedTraceArgs(uint64_t tag, const char* format, Args&&... args) in ScopedTraceArgs() 27 std::forward<Args>(args)...); 44 template <typename... Args>
|
/frameworks/native/libs/binder/include/binder/ |
D | RpcThreads.h | 74 template <typename Function, typename... Args> 75 RpcMaybeThread(Function&& f, Args&&... args) { in RpcMaybeThread() 81 std::tuple<std::decay_t<Args>...> args; in RpcMaybeThread() 83 explicit Vars(Function&& f, Args&&... args) in RpcMaybeThread() 86 auto vars = std::make_shared<Vars>(std::forward<Function>(f), std::forward<Args>(args)...); in RpcMaybeThread()
|