Home
last modified time | relevance | path

Searched refs:Args (Results 1 – 25 of 71) sorted by relevance

123

/system/bt/gd/os/
Dhandler.h55 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 …]
Dalarm_benchmark.cc133 ->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/
Dcontextual_callback.h31 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 …]
Dbind.h34 template <typename T, typename Functor, typename... Args>
35 …nline base::Callback<MakeUnboundRunType<Functor, T, Args...>> BindOn(T* obj, Functor&& functor, Ar… in BindOn()
36 …return common::Bind(std::forward<Functor>(functor), common::Unretained(obj), std::forward<Args>(ar… in BindOn()
Dcallback_list.h66 template <typename... Args>
67 class CallbackList<void(Args...)> : public base::internal::CallbackListBase<CallbackWithHandler<voi…
69 using CallbackType = CallbackWithHandler<void(Args...)>;
Dlist_map.h122 template <class... Args>
123 std::pair<iterator, bool> try_emplace(const_iterator pos, const Key& key, Args&&... args) { in try_emplace()
128 auto list_iterator = node_list_.emplace(pos, key, std::forward<Args>(args)...); in try_emplace()
136 template <class... Args>
137 std::pair<iterator, bool> try_emplace_back(const Key& key, Args&&... args) { in try_emplace_back()
138 return try_emplace(end(), key, std::forward<Args>(args)...); in try_emplace_back()
Dtype_helper.h27 template <template <typename...> class TemplateType, typename... Args>
28 struct is_specialization_of<TemplateType<Args...>, TemplateType> : std::true_type {};
/system/libbase/include/android-base/
Dcollections.h40 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()
Dcmsg.h66 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()
Dresult.h160 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()
Dexpected.h228 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 …]
Dno_destructor.h65 template <typename... Args>
66 explicit NoDestructor(Args&&... args) { in NoDestructor()
67 new (storage_) T(std::forward<Args>(args)...); in NoDestructor()
/system/bt/common/benchmark/
Dtimer_performance_benchmark.cc195 ->Args({2000, 1, 5})
196 ->Args({2000, 3, 5})
197 ->Args({2000, 1, 7})
198 ->Args({2000, 3, 7})
199 ->Args({2000, 1, 20})
200 ->Args({2000, 5, 20})
201 ->Args({2000, 10, 20})
202 ->Args({2000, 15, 20})
260 ->Args({2000, 1, 5})
261 ->Args({2000, 3, 5})
[all …]
/system/memory/libmemunreachable/
DAllocator.h78 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/linkerconfig/modules/include/linkerconfig/
Dlink.h38 template <typename... Args>
39 void AddSharedLib(const std::string& lib_name, Args&&... lib_names);
59 template <typename... Args>
60 void Link::AddSharedLib(const std::string& lib_name, Args&&... lib_names) { in AddSharedLib()
63 if constexpr (sizeof...(Args) > 0) { in AddSharedLib()
64 AddSharedLib(std::forward<Args>(lib_names)...); in AddSharedLib()
/system/security/keystore/
Dkeymaster_worker.h63 template <typename Ret, typename... Args> class NonCopyableFunction<Ret(Args...)> {
69 virtual Ret operator()(Args... args) = 0;
82 Ret operator()(Args... args) override { return f_(std::move(args)...); } in operator()
99 Ret operator()(Args... args) { in operator()
118 template <typename... Args> struct MakeKeymasterWorkerCB;
120 template <typename ErrorType, typename... Args>
121 struct MakeKeymasterWorkerCB<ErrorType, std::function<void(Args...)>> {
122 using type = std::function<void(ErrorType, std::tuple<std::decay_t<Args>...>&&)>;
129 template <typename... Args>
130 using MakeKeymasterWorkerCB_t = typename MakeKeymasterWorkerCB<Args...>::type;
[all …]
Dkeystore_aidl_hidl_marshalling_utils.h29 template <typename Fn, typename... Args>
30 inline auto nullable(Fn fn, const android::Parcel& in, Args&&... args)
31 -> NullOr<decltype(fn(in, std::forward<Args>(args)...))> {
36 return fn(in, std::forward<Args>(args)...);
/system/iorap/src/binder/
Diiorap_impl.cc41 template<typename ... Args>
42 Status Send(const char* function_name, Args&& ... args);
214 template <typename ... Args>
218 Args&&... /*rest*/) { in SendArgs() argument
228 template <typename ... Args>
229 Status SendArgs(const char* function_name, Impl* self, Args&&... rest) { in SendArgs()
232 self->SetTaskListener(std::forward<Args&&>(rest)...); in SendArgs()
237 template <typename ... Args>
262 template <typename ... Args>
263 Status Send(const char* function_name, Args&&... args) { in Send()
[all …]
/system/update_engine/update_manager/
Dpolicy_test_utils.h57 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()
Dupdate_manager.h129 template <typename R, typename... Args>
133 EvaluationContext*, State*, std::string*, R*, Args...) const,
135 Args... args);
143 template <typename R, typename... Args>
148 EvaluationContext*, State*, std::string*, R*, Args...) const,
149 Args... args);
Dupdate_manager-inl.h31 template <typename R, typename... Args>
35 EvaluationContext*, State*, std::string*, R*, Args...) const, in EvaluatePolicy()
37 Args... args) { in EvaluatePolicy()
79 template <typename R, typename... Args>
84 EvaluationContext*, State*, std::string*, R*, Args...) const, in OnPolicyReadyToEvaluate()
85 Args... args) { in OnPolicyReadyToEvaluate()
98 base::Bind(&UpdateManager::OnPolicyReadyToEvaluate<R, Args...>, in OnPolicyReadyToEvaluate()
/system/bt/btif/include/
Dbtif_common.h186 template <typename R, typename... Args>
187 base::Callback<R(Args...)> jni_thread_wrapper(const base::Location& from_here, in jni_thread_wrapper()
188 base::Callback<R(Args...)> cb) { in jni_thread_wrapper()
190 [](const base::Location& from_here, base::Callback<R(Args...)> cb, in jni_thread_wrapper()
191 Args... args) { in jni_thread_wrapper()
193 base::Bind(cb, std::forward<Args>(args)...)); in jni_thread_wrapper()
/system/core/fs_mgr/libdm/include/libdm/
Ddm_table.h49 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/
Dsingleton_impl.h35 template<typename... Args>
36 void Singleton<ObjectType>::init(Args&&... args) { in init()
39 new (get()) ObjectType(std::forward<Args>(args)...); in init()
Dsynchronized_memory_pool.h40 template<typename... Args>
41 ElementType *allocate(Args&&... args);

123