/system/bt/gd/os/ |
D | handler.h | 55 template <typename Functor, typename... Args> 56 void Call(Functor&& functor, Args&&... args) { in Call() 57 Post(common::BindOnce(std::forward<Functor>(functor), std::forward<Args>(args)...)); in Call() 60 template <typename T, typename Functor, typename... Args> 61 void CallOn(T* obj, Functor&& functor, Args&&... args) { in CallOn() 62 …n::BindOnce(std::forward<Functor>(functor), common::Unretained(obj), std::forward<Args>(args)...)); in CallOn() 65 template <typename Functor, typename... Args> 66 common::ContextualOnceCallback<common::MakeUnboundRunType<Functor, Args...>> BindOnce( in BindOnce() 67 Functor&& functor, Args&&... args) { in BindOnce() 68 return common::ContextualOnceCallback<common::MakeUnboundRunType<Functor, Args...>>( in BindOnce() [all …]
|
D | alarm_benchmark.cc | 133 ->Args({2000, 1, 5}) 134 ->Args({2000, 3, 5}) 135 ->Args({2000, 1, 7}) 136 ->Args({2000, 3, 7}) 137 ->Args({2000, 1, 20}) 138 ->Args({2000, 5, 20}) 139 ->Args({2000, 10, 20}) 140 ->Args({2000, 15, 20})
|
/system/bt/gd/common/ |
D | contextual_callback.h | 31 template <typename R, typename... Args> 35 template <typename R, typename... Args> 36 class ContextualOnceCallback<R(Args...)> { 38 ContextualOnceCallback(common::OnceCallback<R(Args...)>&& callback, IPostableContext* context) in ContextualOnceCallback() 48 void Invoke(Args... args) { in Invoke() 49 context_->Post(common::BindOnce(std::move(callback_), std::forward<Args>(args)...)); in Invoke() 52 void InvokeIfNotEmpty(Args... args) { in InvokeIfNotEmpty() 54 context_->Post(common::BindOnce(std::move(callback_), std::forward<Args>(args)...)); in InvokeIfNotEmpty() 63 common::OnceCallback<R(Args...)> callback_; 67 template <typename R, typename... Args> [all …]
|
D | bind.h | 33 template <typename T, typename Functor, typename... Args> 34 …nline base::Callback<MakeUnboundRunType<Functor, T, Args...>> BindOn(T* obj, Functor&& functor, Ar… in BindOn() 35 …return common::Bind(std::forward<Functor>(functor), common::Unretained(obj), std::forward<Args>(ar… in BindOn()
|
D | callback_list.h | 66 template <typename... Args> 67 class CallbackList<void(Args...)> : public base::internal::CallbackListBase<CallbackWithHandler<voi… 69 using CallbackType = CallbackWithHandler<void(Args...)>;
|
D | type_helper.h | 27 template <template <typename...> class TemplateType, typename... Args> 28 struct is_specialization_of<TemplateType<Args...>, TemplateType> : std::true_type {};
|
/system/libbase/include/android-base/ |
D | function_ref.h | 83 template <class Ret, class... Args> 84 class function_ref<Ret(Args...)> final { 91 std::is_invocable_r<Ret, Callable, Args...>::value && 94 : mTypeErasedFunction([](const function_ref* self, Args... args) -> Ret { in function_ref() 98 std::forward<Args>(args)...); in function_ref() 103 std::is_invocable_r<Ret, Callable, Args...>::value && 106 mTypeErasedFunction = [](const function_ref* self, Args... args) -> Ret { 110 std::forward<Args>(args)...); 116 Ret operator()(Args... args) const { in operator() 117 return mTypeErasedFunction(this, std::forward<Args>(args)...); in operator() [all …]
|
D | collections.h | 40 template <typename CollectionType, typename T, typename... Args> 41 void Append(CollectionType& collection, T&& arg, Args&&... args) { in Append() 43 return Append(collection, std::forward<Args>(args)...); in Append() 48 template <typename T, typename Arg, typename... Args> 53 template <typename T, typename Arg, typename... Args> 54 void AssertType(Arg&&, Args&&... args) { in AssertType() 56 AssertType<T>(std::forward<Args>(args)...); in AssertType()
|
D | cmsg.h | 66 template <typename... Args> 67 ssize_t SendFileDescriptors(borrowed_fd sock, const void* data, size_t len, Args&&... sent_fds) { in SendFileDescriptors() 71 AssertType<int>(std::forward<Args>(sent_fds)...); in SendFileDescriptors() 73 Append(fds, std::forward<Args>(sent_fds)...); in SendFileDescriptors() 81 template <typename... Args> 82 ssize_t ReceiveFileDescriptors(borrowed_fd sock, void* data, size_t len, Args&&... received_fds) { in ReceiveFileDescriptors() 84 Append(fds, std::forward<Args>(received_fds)...); in ReceiveFileDescriptors()
|
D | result.h | 160 template <typename T, typename... Args> 161 friend Error ErrorfImpl(const T&& fmt, const Args&... args); 163 template <typename T, typename... Args> 164 friend Error ErrnoErrorfImpl(const T&& fmt, const Args&... args); 187 template <typename T, typename... Args> 188 inline int ErrorCode(int code, T&& t, const Args&... args) { in ErrorCode() 195 template <typename T, typename... Args> 196 inline Error ErrorfImpl(const T&& fmt, const Args&... args) { in ErrorfImpl() 200 template <typename T, typename... Args> 201 inline Error ErrnoErrorfImpl(const T&& fmt, const Args&... args) { in ErrnoErrorfImpl()
|
D | no_destructor.h | 65 template <typename... Args> 66 explicit NoDestructor(Args&&... args) { in NoDestructor() 67 new (storage_) T(std::forward<Args>(args)...); in NoDestructor()
|
D | expected.h | 228 template<class... Args _ENABLE_IF( 229 std::is_constructible_v<T, Args&&...> 231 constexpr explicit expected(std::in_place_t, Args&&... args) in expected() 232 : var_(std::in_place_index<0>, std::forward<Args>(args)...) {} in expected() 234 template<class U, class... Args _ENABLE_IF( 235 std::is_constructible_v<T, std::initializer_list<U>&, Args...> 237 constexpr explicit expected(std::in_place_t, std::initializer_list<U> il, Args&&... args) in expected() 238 : var_(std::in_place_index<0>, il, std::forward<Args>(args)...) {} in expected() 240 template<class... Args _ENABLE_IF( 241 std::is_constructible_v<E, Args...> [all …]
|
/system/bt/common/benchmark/ |
D | timer_performance_benchmark.cc | 194 ->Args({2000, 1, 5}) 195 ->Args({2000, 3, 5}) 196 ->Args({2000, 1, 7}) 197 ->Args({2000, 3, 7}) 198 ->Args({2000, 1, 20}) 199 ->Args({2000, 5, 20}) 200 ->Args({2000, 10, 20}) 201 ->Args({2000, 15, 20}) 259 ->Args({2000, 1, 5}) 260 ->Args({2000, 3, 5}) [all …]
|
/system/linkerconfig/modules/include/linkerconfig/ |
D | link.h | 38 template <typename... Args> 39 void AddSharedLib(const std::string& lib_name, Args&&... lib_names); 66 template <typename... Args> 67 void Link::AddSharedLib(const std::string& lib_name, Args&&... lib_names) { in AddSharedLib() 70 if constexpr (sizeof...(Args) > 0) { in AddSharedLib() 71 AddSharedLib(std::forward<Args>(lib_names)...); in AddSharedLib()
|
/system/memory/libmemunreachable/ |
D | Allocator.h | 78 template <class T, class... Args> 79 unique_ptr<T> make_unique(Args&&... args) { in make_unique() 81 return unique_ptr<T>(new (allocate<T>()) T(std::forward<Args>(args)...), [impl](void* ptr) { in make_unique() 92 template <class T, class... Args> 93 shared_ptr<T> make_shared(Args&&... args); 170 template <class... Args> 171 shared_ptr make_shared(Args&&... args) { in make_shared() 172 return heap_.template make_shared<T>(std::forward<Args>(args)...); in make_shared() 177 template <class... Args> 178 unique_ptr make_unique(Args&&... args) { in make_unique() [all …]
|
/system/iorap/src/serialize/ |
D | arena_ptr.h | 39 template <typename... Args> 40 static ArenaPtr<T> Make(Args&& ... args) { in Make() 43 std::forward<Args>(args)...)); in Make() 56 template <typename... Args> 57 static ArenaSharedPtr<T> Make(Args&& ... args) { in Make() 60 std::forward<Args>(args)...)); in Make()
|
/system/update_engine/update_manager/ |
D | policy_test_utils.h | 57 template <typename T, typename R, typename... Args> 58 void ExpectStatus(EvalStatus expected, T method, R* result, Args... args) { in ExpectStatus() 70 template <typename T, typename R, typename... Args> 71 EvalStatus CallMethodWithContext(T method, R* result, Args... args) { in CallMethodWithContext() 79 template <typename T, typename R, typename... Args> 83 Args... args) { in ExpectPolicyStatus()
|
D | update_manager.h | 128 template <typename R, typename... Args> 132 EvaluationContext*, State*, std::string*, R*, Args...) const, 134 Args... args); 142 template <typename R, typename... Args> 147 EvaluationContext*, State*, std::string*, R*, Args...) const, 148 Args... args);
|
D | update_manager-inl.h | 31 template <typename R, typename... Args> 35 EvaluationContext*, State*, std::string*, R*, Args...) const, in EvaluatePolicy() 37 Args... args) { in EvaluatePolicy() 76 template <typename R, typename... Args> 81 EvaluationContext*, State*, std::string*, R*, Args...) const, in OnPolicyReadyToEvaluate() 82 Args... args) { in OnPolicyReadyToEvaluate() 95 base::Bind(&UpdateManager::OnPolicyReadyToEvaluate<R, Args...>, in OnPolicyReadyToEvaluate()
|
/system/chre/platform/shared/include/chre/platform/shared/ |
D | memory.h | 100 template <typename T, typename... Args> 101 inline T *memoryAllocDram(Args &&... args) { in memoryAllocDram() 104 new (storage) T(std::forward<Args>(args)...); in memoryAllocDram()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm_table.h | 49 template <typename T, typename... Args> 50 bool Emplace(Args&&... args) { in Emplace() 51 return AddTarget(std::make_unique<T>(std::forward<Args>(args)...)); in Emplace()
|
/system/chre/util/include/chre/util/ |
D | singleton_impl.h | 35 template <typename... Args> 36 void Singleton<ObjectType>::init(Args &&... args) { in init() 39 new (get()) ObjectType(std::forward<Args>(args)...); in init()
|
/system/iorap/src/binder/ |
D | iiorap_impl.cc | 46 template<typename ... Args> 47 Status Send(const char* function_name, Args&& ... args); 392 template <typename ... Args> 396 Args&&... /*rest*/) { in SendArgs() argument 406 template <typename ... Args> 407 Status SendArgs(const char* function_name, Impl* self, Args&&... rest) { in SendArgs() 410 self->SetTaskListener(std::forward<Args&&>(rest)...); in SendArgs() 415 template <typename ... Args> 440 template <typename ... Args> 457 template <typename ... Args> [all …]
|
/system/bt/btif/include/ |
D | btif_common.h | 162 template <typename R, typename... Args> 163 base::Callback<R(Args...)> jni_thread_wrapper(const base::Location& from_here, in jni_thread_wrapper() 164 base::Callback<R(Args...)> cb) { in jni_thread_wrapper() 166 [](const base::Location& from_here, base::Callback<R(Args...)> cb, in jni_thread_wrapper() 167 Args... args) { in jni_thread_wrapper() 169 base::Bind(cb, std::forward<Args>(args)...)); in jni_thread_wrapper()
|
/system/core/trusty/keymaster/keymint/ |
D | service.cpp | 32 template <typename T, class... Args> 33 std::shared_ptr<T> addService(Args&&... args) { in addService() 34 std::shared_ptr<T> service = std::make_shared<T>(std::forward<Args>(args)...); in addService()
|