/external/python/mobly/mobly/controllers/android_device_lib/ |
D | event_dispatcher.py | 62 event_name = None 76 event_name = event_obj['name'] 78 if event_name in self.handlers: 79 self.handle_subscribed_event(event_obj, event_name) 80 if event_name == "EventDispatcherShutdown": 85 if event_name in self.event_dict: # otherwise, cache event 86 self.event_dict[event_name].put(event_obj) 90 self.event_dict[event_name] = q 93 def register_handler(self, handler, event_name, args): argument 114 if event_name in self.handlers: [all …]
|
D | callback_handler.py | 78 def _callEventWaitAndGet(self, callback_id, event_name, timeout): argument 94 return self._event_client.eventWaitAndGet(callback_id, event_name, 97 def _callEventGetAll(self, callback_id, event_name): argument 110 return self._event_client.eventGetAll(callback_id, event_name) 112 def waitAndGet(self, event_name, timeout=DEFAULT_TIMEOUT): argument 134 raw_event = self._callEventWaitAndGet(self._id, event_name, timeout) 139 ' %s (%s).' % (timeout, event_name, self._method_name, self._id)) 143 def waitForEvent(self, event_name, predicate, timeout=DEFAULT_TIMEOUT): argument 179 event = self.waitAndGet(event_name, rpc_timeout) 189 'predicate "%s".' % (timeout, event_name, predicate.__name__)) [all …]
|
D | callback_handler_v2.py | 26 def callEventWaitAndGetRpc(self, callback_id, event_name, timeout_sec): argument 45 return self._event_client.eventWaitAndGet(callback_id, event_name, 55 def callEventGetAllRpc(self, callback_id, event_name): argument 67 return self._event_client.eventGetAll(callback_id, event_name)
|
/external/tensorflow/tensorflow/core/profiler/convert/ |
D | xplane_to_step_events.cc | 40 inline bool IsExplicitHostStepMarker(absl::string_view event_name) { in IsExplicitHostStepMarker() argument 41 return (absl::StartsWith(event_name, "train") || in IsExplicitHostStepMarker() 42 absl::StartsWith(event_name, "test") || in IsExplicitHostStepMarker() 43 absl::StartsWith(event_name, "TraceContext")) && in IsExplicitHostStepMarker() 44 !absl::StrContains(event_name, "/"); in IsExplicitHostStepMarker() 49 inline bool IsRealCpuCompute(absl::string_view event_name) { in IsRealCpuCompute() argument 50 bool not_real = absl::StartsWith(event_name, "EagerExecute") || in IsRealCpuCompute() 51 absl::StartsWith(event_name, "EagerLocalExecute") || in IsRealCpuCompute() 52 absl::StartsWith(event_name, "EagerKernelExecute") || in IsRealCpuCompute() 53 absl::StartsWith(event_name, "FunctionRun") || in IsRealCpuCompute() [all …]
|
/external/perfetto/src/trace_processor/importers/systrace/ |
D | systrace_line_parser.cc | 92 if (line.event_name == "sched_switch") { in ParseLine() 113 } else if (line.event_name == "tracing_mark_write" || in ParseLine() 114 line.event_name == "0" || line.event_name == "print") { in ParseLine() 117 } else if (line.event_name == "sched_waking") { in ParseLine() 131 } else if (line.event_name == "cpu_frequency") { in ParseLine() 144 } else if (line.event_name == "cpu_idle") { in ParseLine() 157 } else if (line.event_name == "binder_transaction") { in ParseLine() 183 } else if (line.event_name == "binder_transaction_received") { in ParseLine() 190 } else if (line.event_name == "binder_lock") { in ParseLine() 192 } else if (line.event_name == "binder_locked") { in ParseLine() [all …]
|
/external/python/mobly/mobly/snippet/ |
D | callback_handler_base.py | 100 def callEventWaitAndGetRpc(self, callback_id, event_name, timeout_sec): argument 126 def callEventGetAllRpc(self, callback_id, event_name): argument 143 def waitAndGet(self, event_name, timeout=None): argument 173 raw_event = self.callEventWaitAndGetRpc(self._id, event_name, timeout) 176 def waitForEvent(self, event_name, predicate, timeout=None): argument 215 event = self.waitAndGet(event_name, single_rpc_timeout) 228 def getAll(self, event_name): argument 239 raw_events = self.callEventGetAllRpc(self._id, event_name)
|
/external/bcc/tests/python/ |
D | test_percpu.py | 41 event_name = bpf_code.get_syscall_fnname("clone") 42 bpf_code.attach_kprobe(event=event_name, fn_name="hello_world") 56 bpf_code.detach_kprobe(event_name) 73 event_name = bpf_code.get_syscall_fnname("clone") 74 bpf_code.attach_kprobe(event=event_name, fn_name="hello_world") 88 bpf_code.detach_kprobe(event_name) 111 event_name = bpf_code.get_syscall_fnname("clone") 112 bpf_code.attach_kprobe(event=event_name, fn_name="hello_world") 122 bpf_code.detach_kprobe(event_name)
|
D | test_perf_event.py | 45 event_name = b.get_syscall_fnname("getuid") 46 b.attach_kprobe(event=event_name, fn_name="do_sys_getuid") 47 b.attach_kretprobe(event=event_name, fn_name="do_ret_sys_getuid")
|
D | test_lru.py | 38 event_name = b.get_syscall_fnname("clone") 39 b.attach_kprobe(event=event_name, fn_name="hello_world") 59 b.detach_kprobe(event_name)
|
/external/autotest/client/cros/graphics/ |
D | graphics_uinput.py | 92 def translate_name(event_name): argument 96 return getattr(uinput, event_name) 99 def emit(device, event_name, value, syn=True): argument 104 event = translate_name(event_name) 108 def emit_click(device, event_name, syn=True): argument 113 event = translate_name(event_name)
|
/external/libwebsockets/lib/drivers/button/ |
D | lws-button.c | 210 const char *event_name; in LWS_PLAT_TIMER_CB() local 274 event_name = "down"; in LWS_PLAT_TIMER_CB() 288 event_name = "longclick"; in LWS_PLAT_TIMER_CB() 313 event_name = "up"; in LWS_PLAT_TIMER_CB() 361 event_name = "click"; in LWS_PLAT_TIMER_CB() 368 event_name = "down"; in LWS_PLAT_TIMER_CB() 376 event_name = "doubleclick"; in LWS_PLAT_TIMER_CB() 389 event_name = "up"; in LWS_PLAT_TIMER_CB() 397 event_name = "stilldown"; in LWS_PLAT_TIMER_CB() 423 event_name); in LWS_PLAT_TIMER_CB()
|
/external/perfetto/src/tools/ftrace_proto_gen/ |
D | ftrace_proto_gen.cc | 58 std::string event_name = (name == "0") ? "zero" : name; in EventNameToProtoFieldName() local 63 event_name = group + "_" + event_name; in EventNameToProtoFieldName() 65 return event_name; in EventNameToProtoFieldName() 182 s += "\"" + proto.event_name + "\", "; in SingleEventInfo() 192 if (group == "ftrace" && proto.event_name == "print" && field->name == "ip") in SingleEventInfo() 196 if (group == "f2fs" && proto.event_name == "f2fs_truncate_partial_nodes" && in SingleEventInfo()
|
/external/perfetto/include/perfetto/tracing/internal/ |
D | track_event_data_source.h | 327 const EventNameType& event_name, 330 TraceForCategoryImpl(instances, category, event_name, type, 349 const EventNameType& event_name, 354 instances, category, event_name, type, std::forward<TrackType>(track), 367 const EventNameType& event_name, 371 TraceForCategoryImpl(instances, category, event_name, type, 389 const EventNameType& event_name, 394 TraceForCategoryImpl(instances, category, event_name, type, 473 const EventNameType& event_name, 479 TraceForCategoryImpl(instances, category, event_name, type, track, [all …]
|
/external/tensorflow/tensorflow/python/profiler/internal/ |
D | python_hooks.cc | 118 std::string event_name; in Name() local 252 absl::string_view event_name(event); in ProfileSlow() local 254 if (absl::ConsumePrefix(&event_name, "c_")) { in ProfileSlow() 255 if (event_name == "call") { in ProfileSlow() 257 } else if (event_name == "return") { in ProfileSlow() 259 } else if (event_name == "exception") { in ProfileSlow() 265 if (event_name == "call") { in ProfileSlow() 267 } else if (event_name == "return") { in ProfileSlow() 269 } else if (event_name == "exception") { in ProfileSlow()
|
/external/sonivox/jet_tools/JetCreator/ |
D | JetFile.py | 112 …def __init__(self, event_name, event_type, event_id, track_num, channel_num, event_start, event_en… argument 113 self.event_name = event_name 351 … event_name, event_id, track_num, channel_num, event_start, event_end = location.split(',', 5) 352 …jetevents.append(JetEvent(event_name, JetDefs.E_CLIP, int(event_id), int(track_num), int(channel_n… 357 … event_name, event_id, track_num, channel_num, event_start, event_end = location.split(',', 5) 358 …jetevents.append(JetEvent(event_name, JetDefs.E_APP, int(event_id), int(track_num), int(channel_nu… 529 if event.event_name == eventName: 533 …def AddEvent(self, segname, event_name, event_type, event_id, track_num, channel_num, event_start,… argument 537 …segment.jetevents.append(JetEvent(event_name, event_type, int(event_id), int(track_num), int(chann… 546 …def UpdateEvent(self, segname, orgeventname, event_name, event_type, event_id, track_num, channel_… argument [all …]
|
/external/autotest/client/site_tests/platform_BootPerf/ |
D | platform_BootPerf.py | 257 for keyval_name, event_name, required in self._EVENT_KEYVALS: 260 results[key] = self._parse_uptime(event_name, required=required) 275 for event_name in network_ready_events: 277 event_name.replace('-', '_')) 279 network_time = self._parse_uptime(event_name) 312 for keyval_name, event_name, required in self._EVENT_KEYVALS: 315 results[key] = 512 * self._parse_diskstat(event_name)
|
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/ |
D | perfetto_trace_writer.py | 62 def _intern_event_name(event_name, trace_packet, tid): argument 65 if event_name not in event_names: 67 event_names[event_name] = len(event_names) + 1 71 trace_packet.interned_data.legacy_event_name.iid = event_names[event_name] 72 trace_packet.interned_data.legacy_event_name.name = event_name 73 return event_names[event_name]
|
/external/ltp/testcases/kernel/sched/eas/ |
D | trace_parse.c | 35 static int parse_event_type(char *event_name) in parse_event_type() argument 37 if (!strcmp(event_name, "sched_process_exit")) in parse_event_type() 39 if (!strcmp(event_name, "sched_process_fork")) in parse_event_type() 41 if (!strcmp(event_name, "sched_switch")) in parse_event_type() 43 if (!strcmp(event_name, "sched_wakeup")) in parse_event_type() 45 if (!strcmp(event_name, "sugov_util_update")) in parse_event_type() 47 if (!strcmp(event_name, "sugov_next_freq")) in parse_event_type() 49 if (!strcmp(event_name, "cpu_frequency")) in parse_event_type() 51 if (!strcmp(event_name, "tracing_mark_write")) in parse_event_type()
|
/external/bcc/examples/tracing/ |
D | trace_perf_output.py | 44 event_name = b.get_syscall_fnname("clone") variable 45 b.attach_kprobe(event=event_name, fn_name="do_sys_clone") 54 printb(b"Tracing " + event_name + b", try `dd if=/dev/zero of=/dev/null`")
|
/external/cronet/components/metrics/structured/ |
D | event.cc | 43 Event::Event(const std::string& project_name, const std::string& event_name) in Event() argument 44 : project_name_(project_name), event_name_(event_name) {} in Event() 46 const std::string& event_name, in Event() argument 49 event_name_(event_name), in Event() 106 const std::string& Event::event_name() const { in event_name() function in metrics::structured::Event
|
/external/libtracefs/src/ |
D | tracefs-sqlhist.c | 45 const char *event_name; member 527 const char *event = field->event_name; in test_event_exists() 586 field->field, field->event_name); in test_field_exists() 601 const char *event_name; in update_vars() local 627 event_field->event_name = store_str(sb, p); in update_vars() 628 if (!event_field->event_name) in update_vars() 647 event_name = event_field->event_name; in update_vars() 648 event_len = strlen(event_name); in update_vars() 682 if (strncmp(raw, event_name, len) || in update_vars() 689 field->event_name = event_name; in update_vars() [all …]
|
/external/tensorflow/tensorflow/core/profiler/utils/ |
D | tf_op_utils.cc | 146 std::string event_name; in TfOpEventName() local 149 event_name = std::string(absl::StripTrailingAsciiWhitespace(tf_op.name)); in TfOpEventName() 151 event_name = DatasetOpEventName(tf_op.name); in TfOpEventName() 153 event_name = std::string(tf_op.type); in TfOpEventName() 155 return event_name; in TfOpEventName()
|
/external/bcc/tools/ |
D | biosnoop.lua | 148 local event_name = ffi.string(event.name) 158 if not event_name:match("%?") then 171 delta / 1000000, event_name, event_pid, event_disk_name, rwflg, val,
|
/external/perfetto/src/traced/probes/ftrace/ |
D | ftrace_config_utils.cc | 68 for (const std::string& event_name : config.ftrace_events()) { in ValidConfig() local 69 if (!IsValidFtraceEventName(event_name)) { in ValidConfig() 70 PERFETTO_ELOG("Bad event name '%s'", event_name.c_str()); in ValidConfig()
|
/external/perfetto/src/trace_processor/prelude/functions/ |
D | to_ftrace.cc | 62 NullTermStringView event_name, 144 NullTermStringView event_name, in ArgsSerializer() argument 149 event_name_(event_name), in ArgsSerializer() 166 auto* descriptor = GetMessageDescriptorForName(event_name); in ArgsSerializer() 574 NullTermStringView event_name = storage_->GetString(event_name_id); in SerializeToString() local 575 if (event_name.StartsWith("chrome_event.") || in SerializeToString() 576 event_name.StartsWith("track_event.")) { in SerializeToString() 583 if (event_name == "print" || event_name == "g2d_tracing_mark_write" || in SerializeToString() 584 event_name == "dpu_tracing_mark_write") { in SerializeToString() 587 writer.AppendString(event_name.c_str(), event_name.size()); in SerializeToString() [all …]
|