Home
last modified time | relevance | path

Searched refs:Functor (Results 1 – 5 of 5) sorted by relevance

/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 …Post(common::BindOnce(std::forward<Functor>(functor), common::Unretained(obj), std::forward<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 …]
/system/core/libutils/include/utils/
DFunctor.h28 class Functor {
30 Functor() {} in Functor() function
31 virtual ~Functor() {} in ~Functor()
/system/bt/gd/common/
Dbind.h34 template <typename T, typename Functor, typename... Args>
35 inline 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()
/system/libbase/include/android-base/
Dscopeguard.h35 template <typename Functor>
36 ScopeGuard(ScopeGuard<Functor>&& that) : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()
54 template <typename Functor>
/system/bt/gd/
Dmodule.h106 template <typename Functor, typename... Args>
107 void Call(Functor&& functor, Args&&... args) { in Call()
108 GetHandler()->Call(std::forward<Functor>(functor), std::forward<Args>(args)...); in Call()
111 template <typename T, typename Functor, typename... Args>
112 void CallOn(T* obj, Functor&& functor, Args&&... args) { in CallOn()
113 GetHandler()->CallOn(obj, std::forward<Functor>(functor), std::forward<Args>(args)...); in CallOn()