Home
last modified time | relevance | path

Searched refs:function (Results 1 – 25 of 259) sorted by relevance

1234567891011

/system/tools/hidl/utils/include/hidl-util/
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<void(void)>& block);
[all …]
/system/netd/client/
DNetdClient.cpp167 extern "C" void netdClientInitAccept4(Accept4FunctionType* function) { in netdClientInitAccept4() argument
168 if (function && *function) { in netdClientInitAccept4()
169 libcAccept4 = *function; in netdClientInitAccept4()
170 *function = netdClientAccept4; in netdClientInitAccept4()
174 extern "C" void netdClientInitConnect(ConnectFunctionType* function) { in netdClientInitConnect() argument
175 if (function && *function) { in netdClientInitConnect()
176 libcConnect = *function; in netdClientInitConnect()
177 *function = netdClientConnect; in netdClientInitConnect()
181 extern "C" void netdClientInitSocket(SocketFunctionType* function) { in netdClientInitSocket() argument
182 if (function && *function) { in netdClientInitSocket()
[all …]
/system/core/init/
Dtest_function_map.h32 using BuiltinFunctionNoArgs = std::function<void(void)>;
33 void Add(const std::string& name, const BuiltinFunctionNoArgs function) { in Add() argument
34 Add(name, 0, 0, false, [function](const BuiltinArguments&) { in Add()
35 function(); in Add()
41 bool run_in_subcontext, const BuiltinFunction function) { in Add() argument
43 make_tuple(min_parameters, max_parameters, make_pair(run_in_subcontext, function)); in Add()
Daction.cpp36 Result<Success> RunBuiltinFunction(const BuiltinFunction& function, in RunBuiltinFunction() argument
49 return function(builtin_arguments); in RunBuiltinFunction()
93 auto function = function_map_->FindFunction(args); in AddCommand() local
94 if (!function) return Error() << function.error(); in AddCommand()
96 commands_.emplace_back(function->second, function->first, args, line); in AddCommand()
/system/extras/simpleperf/
Dworkload.h39 static std::unique_ptr<Workload> CreateWorkload(const std::function<void ()>& function);
55 void SetKillFunction(const std::function<void (pid_t)>& kill_function) { in SetKillFunction()
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_;
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);
81 const std::function<bool()>& callback);
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_;
DIOEventLoop.cpp27 std::function<bool()> callback;
30 IOEvent(IOEventLoop* loop, const std::function<bool()>& callback) in IOEvent()
93 const std::function<bool()>& callback) { in AddReadEvent()
101 const std::function<bool()>& callback) { in AddWriteEvent()
109 const std::function<bool()>& callback) { in AddSignalEvent()
114 const std::function<bool()>& callback) { in AddSignalEvents()
124 const std::function<bool()>& callback) { in AddPeriodicEvent()
129 const std::function<bool()>& callback) { in AddEvent()
Dworkload.cpp29 std::unique_ptr<Workload> workload(new Workload(args, std::function<void ()>())); in CreateWorkload()
36 std::unique_ptr<Workload> Workload::CreateWorkload(const std::function<void ()>& function) { in CreateWorkload() argument
37 std::unique_ptr<Workload> workload(new Workload(std::vector<std::string>(), function)); in CreateWorkload()
54 Workload::Workload(const std::vector<std::string>& args, const std::function<void ()>& function) in Workload() argument
57 child_proc_function_(function), in Workload()
/system/extras/simpleperf/scripts/
Dreport_html.py136 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)
172 function = self.functions.get(func_id)
173 if not function:
174 function = self.functions[func_id] = FunctionScope(func_id)
175 return function
339 function = self.name_to_func.get(key)
340 if function is None:
[all …]
Dpprof_proto_generator.py85 for i in range(len(p.function)):
87 self.show_function(p.function[i], sub_space)
158 function = self.profile.function[function_id - 1]
159 self.show_function(function, space)
161 def show_function(self, function, space=''): argument
162 print('%sid: %d' % (space, function.id))
163 print('%sname: %s' % (space, self.string(function.name)))
164 print('%ssystem_name: %s' % (space, self.string(function.system_name)))
165 print('%sfilename: %s' % (space, self.string(function.filename)))
166 print('%sstart_line: %d' % (space, function.start_line))
[all …]
/system/tools/hidl/utils/
DFormatter.cpp49 Formatter& Formatter::indent(size_t level, const std::function<void(void)>& func) { in indent()
56 Formatter& Formatter::indent(const std::function<void(void)>& func) { in indent()
60 Formatter& Formatter::block(const std::function<void(void)>& func) { in block()
78 Formatter& Formatter::sIf(const std::string& cond, const std::function<void(void)>& block) { in sIf()
83 Formatter& Formatter::sElseIf(const std::string& cond, const std::function<void(void)>& block) { in sElseIf()
88 Formatter& Formatter::sElse(const std::function<void(void)>& block) { in sElse()
93 Formatter& Formatter::sFor(const std::string& stmts, const std::function<void(void)>& block) { in sFor()
98 Formatter& Formatter::sTry(const std::function<void(void)>& block) { in sTry()
103 Formatter& Formatter::sCatch(const std::string& exception, const std::function<void(void)>& block) { in sCatch()
108 Formatter& Formatter::sFinally(const std::function<void(void)>& block) { in sFinally()
[all …]
/system/core/libbacktrace/testdata/arm/
Doffline_testdata_for_libart5 function: start: 3a2121 end: 3a217a name: art_quick_invoke_stub_internal
6 function: start: 3a66a5 end: 3a6787 name: art_quick_invoke_static_stub
7 function: start: a7129 end: a72f1 name: art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigne…
8 function: start: 2fbd35 end: 2fc789 name: art::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRun…
9 function: start: 2fcf75 end: 2fd88d name: art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable …
10 function: start: 2a089d end: 2a08bb name: art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobje…
Doffline_testdata_for_libandroid_runtime5 function: start: 6dbf9 end: 6dce5 name: android::AndroidRuntime::javaThreadShell
6 function: start: 6dce5 end: 6dd79 name: android::AndroidRuntime::javaCreateThreadEtc
/system/connectivity/wificond/
Dlooper_backed_event_loop.cpp27 explicit EventLoopCallback(const std::function<void()>& callback) in EventLoopCallback()
38 const std::function<void()> callback_;
45 explicit WatchFdCallback(const std::function<void(int)>& callback) in WatchFdCallback()
60 const std::function<void(int)> callback_;
79 void LooperBackedEventLoop::PostTask(const std::function<void()>& callback) { in PostTask()
86 const std::function<void()>& callback, in PostDelayedTask()
95 const std::function<void(int)>& callback) { in WatchFileDescriptor()
Devent_loop.h37 virtual void PostTask(const std::function<void()>& callback) = 0;
42 virtual void PostDelayedTask(const std::function<void()>& callback,
53 const std::function<void(int)>& callback_) = 0;
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;
/system/bt/vendor_libs/test_vendor_lib/include/
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<void(std::unique_ptr<AclPacket>)> send_acl_;
[all …]
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>&)>
Dasync_manager.h19 using TaskCallback = std::function<void(void)>;
20 using ReadCallback = std::function<void(int)>;
21 using CriticalCallback = std::function<void(void)>;
/system/connectivity/wificond/scanning/offload/
Dhidl_call_util.h38 struct functionArgSaver<std::function<void(ArgT)>> final {
42 std::function<void(ArgT)> saveArgs = [this](ArgT arg) {
54 struct functionArgSaver<std::function<void(Arg1T, Arg2T)>> final {
61 std::function<void(Arg1T, Arg2T)> saveArgs = [this](Arg1T arg1, Arg2T arg2) {
73 struct functionArgSaver<std::function<void(ArgT...)>> final {
77 std::function<void(ArgT...)> saveArgs = [this](ArgT... arg) {
/system/extras/perfprofd/
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/connectivity/wificond/net/
Dnetlink_manager.h59 typedef std::function<void(
72 typedef std::function<void(
84 typedef std::function<void(
101 typedef std::function<void(
114 typedef std::function<void(
139 std::function<void(std::unique_ptr<const NL80211Packet>)> handler);
288 std::function<void(std::unique_ptr<const NL80211Packet>)>> message_handlers_;
/system/core/libmemunreachable/
DPtracerThread.h37 explicit PtracerThread(const std::function<int()>& func);
48 std::function<int()> func_;
/system/core/libbacktrace/testdata/arm64/
Doffline_testdata_for_libskia5 function: start: 568970 end: 568c08 name: SkScalerContext_FreeType::generateImage(SkGlyph const&)
6 function: start: 30330c end: 3044b0 name: SkScalerContext::getImage(SkGlyph const&)

1234567891011