Searched refs:function (Results 1 - 25 of 208) sorted by relevance

123456789

/system/core/init/
H A Dtest_function_map.h32 using BuiltinFunctionNoArgs = std::function<void(void)>;
33 void Add(const std::string& name, const BuiltinFunctionNoArgs function) { argument
34 Add(name, 0, 0, false, [function](const BuiltinArguments&) {
35 function();
41 bool run_in_subcontext, const BuiltinFunction function) {
43 make_tuple(min_parameters, max_parameters, make_pair(run_in_subcontext, function));
40 Add(const std::string& name, std::size_t min_parameters, std::size_t max_parameters, bool run_in_subcontext, const BuiltinFunction function) argument
H A Dbuiltins.h32 using BuiltinFunction = std::function<Result<Success>(const BuiltinArguments&)>;
/system/extras/simpleperf/
H A DIOEventLoop.h44 IOEventRef AddReadEvent(int fd, const std::function<bool()>& callback);
48 IOEventRef AddWriteEvent(int fd, const std::function<bool()>& callback);
52 bool AddSignalEvent(int sig, const std::function<bool()>& callback);
56 const std::function<bool()>& callback);
61 const std::function<bool()>& callback);
64 // in a callback function of registered Events.
81 const std::function<bool()>& callback);
H A Dworkload.h39 static std::unique_ptr<Workload> CreateWorkload(const std::function<void ()>& function);
54 // Set the function used to kill the workload process in ~Workload().
55 void SetKillFunction(const std::function<void (pid_t)>& kill_function) {
60 explicit Workload(const std::vector<std::string>& args, const std::function<void ()>& function);
69 std::function<void ()> child_proc_function_;
73 std::function<void (pid_t)> kill_function_;
H A DInplaceSamplerClient.h36 bool StartPolling(IOEventLoop& loop, const std::function<bool(Record*)>& record_callback,
37 const std::function<bool()>& close_callback);
38 bool StopProfiling(IOEventLoop& loop, const std::function<bool()>& close_callback);
51 std::function<bool(Record*)> record_callback_;
H A DIOEventLoop.cpp27 std::function<bool()> callback;
30 IOEvent(IOEventLoop* loop, const std::function<bool()>& callback)
93 const std::function<bool()>& callback) {
101 const std::function<bool()>& callback) {
109 const std::function<bool()>& callback) {
114 const std::function<bool()>& callback) {
124 const std::function<bool()>& callback) {
129 const std::function<bool()>& callback) {
/system/connectivity/wificond/
H A Devent_loop.h36 // This function can be called on any thread.
37 virtual void PostTask(const std::function<void()>& callback) = 0;
41 // This function can be called on any thread.
42 virtual void PostDelayedTask(const std::function<void()>& callback,
48 // This function can be called on any thread.
53 const std::function<void(int)>& callback_) = 0;
56 // This function can be called on any thread.
H A Dlooper_backed_event_loop.h34 void PostTask(const std::function<void()>& callback) override;
37 void PostDelayedTask(const std::function<void()>& callback,
43 const std::function<void(int)>& callback) override;
H A Dlooper_backed_event_loop.cpp27 explicit EventLoopCallback(const std::function<void()>& callback)
38 const std::function<void()> callback_;
45 explicit WatchFdCallback(const std::function<void(int)>& callback)
60 const std::function<void(int)> callback_;
79 void LooperBackedEventLoop::PostTask(const std::function<void()>& callback) {
86 const std::function<void()>& callback,
95 const std::function<void(int)>& callback) {
/system/bt/vendor_libs/test_vendor_lib/include/
H A Dtest_channel_transport.h50 const std::function<void(const std::string&,
53 void OnCommandReady(int fd, std::function<void(void)> unwatch);
56 std::function<void(const std::string&, const std::vector<std::string>&)>
H A Dasync_manager.h19 using TaskCallback = std::function<void(void)>;
20 using ReadCallback = std::function<void(int)>;
21 using CriticalCallback = std::function<void(void)>;
43 // Synchronize(const CriticalCallback&) member function to execute code inside
52 // it is perfectly possible to have it called before this function returns. A
81 // given on (possibly)concurrent calls to this member function on the same
H A Ddual_mode_controller.h69 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)>
73 std::function<AsyncTaskId(std::chrono::milliseconds,
77 void RegisterTaskCancel(std::function<void(AsyncTaskId)> cancel);
81 const std::function<void(std::unique_ptr<EventPacket>)>& send_event);
84 const std::function<void(std::unique_ptr<AclPacket>)>& send_acl);
87 const std::function<void(std::unique_ptr<ScoPacket>)>& send_sco);
410 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)>
412 std::function<AsyncTaskId(std::chrono::milliseconds,
416 std::function<void(AsyncTaskId)> cancel_task_;
419 std::function<voi
[all...]
/system/core/libmemunreachable/
H A DPtracerThread.h37 explicit PtracerThread(const std::function<int()>& func);
48 std::function<int()> func_;
/system/tools/hidl/utils/include/hidl-util/
H A DFormatter.h46 Formatter& indent(size_t level, const std::function<void(void)>& func);
52 Formatter& indent(const std::function<void(void)>& func);
66 Formatter& block(const std::function<void(void)>& func);
79 Formatter& sIf(const std::string& cond, const std::function<void(void)>& block);
80 Formatter& sElseIf(const std::string& cond, const std::function<void(void)>& block);
81 Formatter& sElse(const std::function<void(void)>& block);
86 Formatter& sFor(const std::string& stmts, const std::function<void(void)>& block);
96 Formatter& sTry(const std::function<void(void)>& block);
97 Formatter& sCatch(const std::string& exception, const std::function<void(void)>& block);
98 Formatter& sFinally(const std::function<voi
[all...]
/system/extras/perfprofd/
H A Dperfprofdcore.h71 using HandlerFn = std::function<bool(android::perfprofd::PerfprofdRecord* proto,
75 void ProfilingLoop(std::function<Config*()> config_fn,
76 std::function<void()> update_fn,
/system/netd/client/
H A DNetdClient.cpp167 extern "C" void netdClientInitAccept4(Accept4FunctionType* function) { argument
168 if (function && *function) {
169 libcAccept4 = *function;
170 *function = netdClientAccept4;
174 extern "C" void netdClientInitConnect(ConnectFunctionType* function) { argument
175 if (function && *function) {
176 libcConnect = *function;
177 *function
181 netdClientInitSocket(SocketFunctionType* function) argument
188 netdClientInitNetIdForResolv(NetIdForResolvFunctionType* function) argument
[all...]
/system/tools/hidl/utils/
H A DFormatter.cpp49 Formatter& Formatter::indent(size_t level, const std::function<void(void)>& func) {
56 Formatter& Formatter::indent(const std::function<void(void)>& func) {
60 Formatter& Formatter::block(const std::function<void(void)>& func) {
78 Formatter& Formatter::sIf(const std::string& cond, const std::function<void(void)>& block) {
83 Formatter& Formatter::sElseIf(const std::string& cond, const std::function<void(void)>& block) {
88 Formatter& Formatter::sElse(const std::function<void(void)>& block) {
93 Formatter& Formatter::sFor(const std::string& stmts, const std::function<void(void)>& block) {
98 Formatter& Formatter::sTry(const std::function<void(void)>& block) {
103 Formatter& Formatter::sCatch(const std::string& exception, const std::function<void(void)>& block) {
108 Formatter& Formatter::sFinally(const std::function<voi
[all...]
/system/tools/hidl/
H A Dhidl-gen_l.h30 status_t parseFile(AST* ast, std::unique_ptr<FILE, std::function<void(FILE*)>> file);
/system/extras/simpleperf/scripts/
H A Dreport_html.py128 # When a callstack contains recursive function, only add for each function once.
136 function = lib.get_function(func_id)
139 function.sample_count += 1
140 function.add_reverse_callchain(callstack, i + 1, len(callstack), event_count)
143 function.build_addr_hit_map(addr, event_count if i == 0 else 0, event_count)
148 # When a callstack contains recursive function, only add for each function once.
172 function = self.functions.get(func_id)
173 if not function
[all...]
/system/connectivity/wificond/scanning/offload/
H A Dhidl_call_util.h33 // Provides a std::function that takes one argument, and a buffer
34 // wherein the function will store its argument. The buffer has
38 struct functionArgSaver<std::function<void(ArgT)>> final {
42 std::function<void(ArgT)> saveArgs = [this](ArgT arg) {
49 // Provides a std::function that takes two arguments, and a buffer
50 // wherein the function will store its arguments. The buffer is a
54 struct functionArgSaver<std::function<void(Arg1T, Arg2T)>> final {
61 std::function<void(Arg1T, Arg2T)> saveArgs = [this](Arg1T arg1, Arg2T arg2) {
68 // Provides a std::function that takes three or more arguments, and a
69 // buffer wherein the function wil
[all...]
/system/bt/vendor_libs/linux/interface/
H A Dasync_fd_watcher.h28 using ReadCallback = std::function<void(int)>;
29 using TimeoutCallback = std::function<void(void)>;
/system/libhidl/transport/include/hidl/
H A DStatic.h43 using BnConstructorMap = ConcurrentMap<std::string, std::function<sp<IBinder>(void*)>>;
45 // value function receives reinterpret_cast<void *>(static_cast<IFoo *>(foo)),
52 std::function<sp<::android::hidl::base::V1_0::IBase>(void*)>>;
54 // value function receives reinterpret_cast<void *>(static_cast<IFoo *>(foo)),
/system/netd/libnetdutils/include/netdutils/
H A DNetlink.h35 const std::function<void(const nlmsghdr&, const Slice)>& onMsg);
43 const std::function<void(const nlattr&, const Slice)>& onAttr);
/system/core/libunwindstack/tests/
H A DElfTestUtils.h25 typedef std::function<void(uint64_t, const void*, size_t)> TestCopyFuncType;
/system/libhidl/base/include/hidl/
H A DTaskRunner.h26 using Task = std::function<void(void)>;
50 * This function is named start for legacy reasons and to maintain ABI

Completed in 639 milliseconds

123456789