Home
last modified time | relevance | path

Searched refs:f_ (Results 1 – 6 of 6) sorted by relevance

/system/libbase/include/android-base/
Dscopeguard.h29 ScopeGuard(F&& f) : f_(std::forward<F>(f)), active_(true) {} in ScopeGuard()
31 ScopeGuard(ScopeGuard&& that) noexcept : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()
36 ScopeGuard(ScopeGuard<Functor>&& that) : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()
41 if (active_) f_(); in ~ScopeGuard()
57 F f_; variable
/system/teeui/libteeui/include/secure_input/
Devdev.h50 Fn f_;
54 explicit NonCopyableFunctionTypeEraser(Fn f) : f_(std::move(f)) {} in NonCopyableFunctionTypeEraser()
55 Ret operator()(Args... args) override { return f_(std::move(args)...); } in operator()
59 std::unique_ptr<NonCopyableFunctionBase> f_;
64 f_ = std::make_unique<NonCopyableFunctionTypeEraser<F>>(std::move(f)); in NonCopyableFunction()
72 if (f_) return (*f_)(std::move(args)...); in operator()
/system/security/keystore/
Dkeymaster_worker.h77 Fn f_;
81 explicit NonCopyableFunctionTypeEraser(Fn f) : f_(std::move(f)) {} in NonCopyableFunctionTypeEraser()
82 Ret operator()(Args... args) override { return f_(std::move(args)...); } in operator()
86 std::unique_ptr<NonCopyableFunctionBase> f_;
92 f_ = std::make_unique<NonCopyableFunctionTypeEraser<F>>(std::move(f)); in NonCopyableFunction()
100 if (f_) return (*f_)(std::move(args)...); in operator()
Dkeymaster_worker.cpp578 std::function<void()> f_; member in keystore::__anon8a628fbe0911::Finalize
581 explicit Finalize(std::function<void()> f) : f_(f) {} in Finalize()
583 if (f_) f_(); in ~Finalize()
585 void release() { f_ = {}; } in release()
/system/core/trusty/confirmationui/
DTrustyConfirmationUI.cpp80 std::function<void()> f_; member in android::hardware::confirmationui::V1_0::implementation::__anone52fd07e0111::Finalize
83 Finalize(std::function<void()> f) : f_(f) {} in Finalize()
85 if (f_) f_(); in ~Finalize()
87 void release() { f_ = {}; } in release()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h452 explicit final_action(F f) : f_(move(f)) {}
453 ~final_action() { f_(); }
456 F f_;