Home
last modified time | relevance | path

Searched refs:event_name (Results 1 – 25 of 210) sorted by relevance

123456789

/external/chromium_org/extensions/browser/api/system_info/
Dsystem_info_api.cc38 bool IsDisplayChangedEvent(const std::string& event_name) { in IsDisplayChangedEvent() argument
39 return event_name == system_display::OnDisplayChanged::kEventName; in IsDisplayChangedEvent()
42 bool IsSystemStorageEvent(const std::string& event_name) { in IsSystemStorageEvent() argument
43 return (event_name == system_storage::OnAttached::kEventName || in IsSystemStorageEvent()
44 event_name == system_storage::OnDetached::kEventName); in IsSystemStorageEvent()
58 void AddEventListener(const std::string& event_name);
59 void RemoveEventListener(const std::string& event_name);
76 void DispatchEvent(const std::string& event_name,
110 void SystemInfoEventRouter::AddEventListener(const std::string& event_name) { in AddEventListener() argument
113 watching_event_set_.insert(event_name); in AddEventListener()
[all …]
/external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DCore.py17 def define_flag_field(event_name, field_name, delim): argument
18 flag_fields[event_name][field_name]['delim'] = delim
20 def define_flag_value(event_name, field_name, value, field_str): argument
21 flag_fields[event_name][field_name]['values'][value] = field_str
23 def define_symbolic_field(event_name, field_name): argument
27 def define_symbolic_value(event_name, field_name, value, field_str): argument
28 symbolic_fields[event_name][field_name]['values'][value] = field_str
30 def flag_str(event_name, field_name, value): argument
33 if flag_fields[event_name][field_name]:
35 keys = flag_fields[event_name][field_name]['values'].keys()
[all …]
/external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
DCore.pm63 my ($event_name, $field_name, $value) = @_;
67 if ($flag_fields{$event_name}{$field_name}) {
69 foreach my $idx (sort {$a <=> $b} keys %{$flag_fields{$event_name}{$field_name}{"values"}}) {
71 $string .= "$flag_fields{$event_name}{$field_name}{'values'}{$idx}";
75 if ($print_delim && $flag_fields{$event_name}{$field_name}{'delim'}) {
76 $string .= " $flag_fields{$event_name}{$field_name}{'delim'} ";
78 $string .= "$flag_fields{$event_name}{$field_name}{'values'}{$idx}";
90 my ($event_name, $field_name, $delim) = @_;
92 $flag_fields{$event_name}{$field_name}{"delim"} = $delim;
97 my ($event_name, $field_name, $value, $field_str) = @_;
[all …]
/external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/python/
Dcheck-perf-trace.py28 def irq__softirq_entry(event_name, context, common_cpu, argument
31 print_header(event_name, common_cpu, common_secs, common_nsecs,
39 def kmem__kmalloc(event_name, context, common_cpu, argument
43 print_header(event_name, common_cpu, common_secs, common_nsecs,
54 def trace_unhandled(event_name, context, event_fields_dict): argument
56 unhandled[event_name] += 1
58 unhandled[event_name] = 1
60 def print_header(event_name, cpu, secs, nsecs, pid, comm): argument
62 (event_name, cpu, secs, nsecs, pid, comm),
81 for event_name in keys:
[all …]
/external/chromium_org/extensions/browser/
Devent_router.cc55 const std::string& event_name, in NotifyApiEventDispatched() argument
65 event_name, in NotifyApiEventDispatched()
77 monitor->OnApiEventDispatched(extension_id, event_name, args.Pass()); in NotifyApiEventDispatched()
105 const std::string& event_name, in DispatchExtensionMessage() argument
111 event_name, in DispatchExtensionMessage()
115 args.Set(0, new base::StringValue(event_name)); in DispatchExtensionMessage()
148 const std::string& event_name, in DispatchEvent() argument
155 event_name, in DispatchEvent()
186 void EventRouter::AddEventListener(const std::string& event_name, in AddEventListener() argument
190 event_name, extension_id, process, scoped_ptr<DictionaryValue>())); in AddEventListener()
[all …]
Devent_router.h88 const std::string& event_name,
104 void AddEventListener(const std::string& event_name,
107 void RemoveEventListener(const std::string& event_name,
112 void AddEventListenerForURL(const std::string& event_name,
115 void RemoveEventListenerForURL(const std::string& event_name,
125 const std::string& event_name);
134 void AddLazyEventListener(const std::string& event_name,
136 void RemoveLazyEventListener(const std::string& event_name,
140 void AddFilteredEventListener(const std::string& event_name,
148 void RemoveFilteredEventListener(const std::string& event_name,
[all …]
Devent_listener_map.cc21 const std::string& event_name, in ForExtension() argument
26 event_name, extension_id, GURL(), process, filter.Pass())); in ForExtension()
31 const std::string& event_name, in ForURL() argument
36 new EventListener(event_name, "", listener_url, process, filter.Pass())); in ForURL()
72 EventListener::EventListener(const std::string& event_name, in EventListener() argument
77 : event_name_(event_name), in EventListener()
97 event_filter_.AddEventMatcher(listener->event_name(), matcher.Pass()); in AddListener()
100 filtered_events_.insert(listener->event_name()); in AddListener()
103 listeners_[listener_ptr->event_name()].push_back(listener_ptr); in AddListener()
117 ListenerList& listeners = listeners_[listener->event_name()]; in RemoveListener()
[all …]
Dextension_message_filter.cc113 const std::string& event_name) { in OnExtensionAddListener() argument
122 router->AddEventListener(event_name, process, extension_id); in OnExtensionAddListener()
124 router->AddEventListenerForURL(event_name, process, listener_url); in OnExtensionAddListener()
134 const std::string& event_name) { in OnExtensionRemoveListener() argument
143 router->RemoveEventListener(event_name, process, extension_id); in OnExtensionRemoveListener()
145 router->RemoveEventListenerForURL(event_name, process, listener_url); in OnExtensionRemoveListener()
153 const std::string& extension_id, const std::string& event_name) { in OnExtensionAddLazyListener() argument
157 router->AddLazyEventListener(event_name, extension_id); in OnExtensionAddLazyListener()
214 const std::string& extension_id, const std::string& event_name) { in OnExtensionRemoveLazyListener() argument
218 router->RemoveLazyEventListener(event_name, extension_id); in OnExtensionRemoveLazyListener()
[all …]
Devent_listener_map.h53 const std::string& event_name,
58 const std::string& event_name,
79 const std::string& event_name() const { return event_name_; } in event_name() function
88 EventListener(const std::string& event_name,
134 const ListenerList& GetEventListenersByName(const std::string& event_name) { in GetEventListenersByName() argument
135 return listeners_[event_name]; in GetEventListenersByName()
142 bool HasListenerForEvent(const std::string& event_name);
147 const std::string& event_name);
/external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/perl/
Dcheck-perf-trace.pl30 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
34 print_header($event_name, $common_cpu, $common_secs, $common_nsecs,
45 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
50 print_header($event_name, $common_cpu, $common_secs, $common_nsecs,
87 foreach my $event_name (keys %unhandled) {
88 printf("%-40s %10d\n", $event_name, $unhandled{$event_name});
94 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
97 $unhandled{$event_name}++;
102 my ($event_name, $cpu, $secs, $nsecs, $pid, $comm) = @_;
105 $event_name, $cpu, $secs, $nsecs, $pid, $comm);
Dwakeup-latency.pl30 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
53 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
96 foreach my $event_name (keys %unhandled) {
97 printf("%-40s %10d\n", $event_name, $unhandled{$event_name});
103 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
106 $unhandled{$event_name}++;
Drw-by-file.pl30 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
41 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
93 foreach my $event_name (keys %unhandled) {
94 printf("%-40s %10d\n", $event_name, $unhandled{$event_name});
100 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
103 $unhandled{$event_name}++;
Drwtop.pl37 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
55 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
68 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
81 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
192 foreach my $event_name (keys %unhandled) {
193 printf("%-40s %10d\n", $event_name, $unhandled{$event_name});
199 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
202 $unhandled{$event_name}++;
Drw-by-pid.pl26 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
42 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
53 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
64 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
173 foreach my $event_name (keys %unhandled) {
174 printf("%-40s %10d\n", $event_name, $unhandled{$event_name});
180 my ($event_name, $context, $common_cpu, $common_secs, $common_nsecs,
183 $unhandled{$event_name}++;
/external/chromium_org/chrome/browser/extensions/
Devent_router_forwarder.cc26 const std::string& event_name, in BroadcastEventToRenderers() argument
29 HandleEvent(std::string(), event_name, event_args.Pass(), 0, true, event_url); in BroadcastEventToRenderers()
33 const std::string& event_name, in DispatchEventToRenderers() argument
41 event_name, in DispatchEventToRenderers()
50 const std::string& event_name, in BroadcastEventToExtension() argument
53 HandleEvent(extension_id, event_name, event_args.Pass(), 0, true, event_url); in BroadcastEventToExtension()
58 const std::string& event_name, in DispatchEventToExtension() argument
65 HandleEvent(extension_id, event_name, event_args.Pass(), profile, in DispatchEventToExtension()
70 const std::string& event_name, in HandleEvent() argument
79 extension_id, event_name, base::Passed(&event_args), in HandleEvent()
[all …]
Devent_router_forwarder.h37 void BroadcastEventToRenderers(const std::string& event_name,
47 const std::string& event_name,
55 void DispatchEventToRenderers(const std::string& event_name,
66 const std::string& event_name,
79 const std::string& event_name,
91 const std::string& event_name,
/external/chromium_org/extensions/renderer/
Devent_bindings.cc90 bool AddFilter(const std::string& event_name, in AddFilter() argument
95 FilteredEventListenerCounts::iterator it = counts.find(event_name); in AddFilter()
97 counts[event_name].reset(new ValueCounter); in AddFilter()
99 int result = counts[event_name]->Add(*filter); in AddFilter()
105 bool RemoveFilter(const std::string& event_name, in RemoveFilter() argument
110 FilteredEventListenerCounts::iterator it = counts.find(event_name); in RemoveFilter()
145 std::string event_name = *v8::String::Utf8Value(args[0]->ToString()); in AttachEvent() local
147 if (!dispatcher_->CheckContextAccessToExtensionAPI(event_name, context())) in AttachEvent()
152 if (++listener_counts[event_name] == 1) { in AttachEvent()
154 extension_id, context()->GetURL(), event_name)); in AttachEvent()
[all …]
/external/chromium_org/content/shell/renderer/test_runner/
Dtest_plugin.cc575 const char* event_name = 0; in handleInputEvent() local
578 event_name = "unknown"; in handleInputEvent()
582 event_name = "MouseDown"; in handleInputEvent()
585 event_name = "MouseUp"; in handleInputEvent()
588 event_name = "MouseMove"; in handleInputEvent()
591 event_name = "MouseEnter"; in handleInputEvent()
594 event_name = "MouseLeave"; in handleInputEvent()
597 event_name = "ContextMenu"; in handleInputEvent()
601 event_name = "MouseWheel"; in handleInputEvent()
605 event_name = "RawKeyDown"; in handleInputEvent()
[all …]
/external/chromium_org/extensions/browser/api/declarative/
Drules_registry_service.h43 std::string event_name; member
45 RulesRegistryKey(const std::string event_name, in RulesRegistryKey()
47 : event_name(event_name), in RulesRegistryKey()
50 return (event_name < other.event_name) ||
51 ((event_name == other.event_name) &&
80 const std::string& event_name);
Ddeclarative_api.cc38 bool IsWebViewEvent(const std::string& event_name) { in IsWebViewEvent() argument
42 return event_name.compare(0, in IsWebViewEvent()
47 std::string GetWebRequestEventName(const std::string& event_name) { in GetWebRequestEventName() argument
48 std::string web_request_event_name(event_name); in GetWebRequestEventName()
122 std::string event_name; in HasPermission() local
123 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &event_name)); in HasPermission()
124 if (IsWebViewEvent(event_name) && in HasPermission()
130 event_name, in HasPermission()
138 std::string event_name; in RunAsync() local
139 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &event_name)); in RunAsync()
[all …]
/external/chromium_org/chrome/common/
Dservice_process_util_win.cc58 base::string16 event_name = GetServiceProcessTerminateEventName(); in Start() local
59 DCHECK(event_name.length() <= MAX_PATH); in Start()
60 terminate_event_.Set(CreateEvent(NULL, TRUE, FALSE, event_name.c_str())); in Start()
90 base::string16 event_name = in ForceServiceProcessShutdown() local
92 terminate_event.Set(OpenEvent(EVENT_MODIFY_STATE, FALSE, event_name.c_str())); in ForceServiceProcessShutdown()
100 base::string16 event_name = GetServiceProcessReadyEventName(); in CheckServiceProcessReady() local
102 OpenEvent(SYNCHRONIZE | READ_CONTROL, false, event_name.c_str())); in CheckServiceProcessReady()
122 base::string16 event_name = GetServiceProcessReadyEventName(); in TakeSingletonLock() local
123 DCHECK(event_name.length() <= MAX_PATH); in TakeSingletonLock()
126 CreateEvent(NULL, TRUE, FALSE, event_name.c_str())); in TakeSingletonLock()
/external/chromium_org/tools/telemetry/telemetry/page/actions/
Dmedia_action.py28 def WaitForEvent(self, tab, selector, event_name, timeout_in_seconds): argument
39 self.HasEventCompletedOrError(tab, selector, event_name),
42 def HasEventCompletedOrError(self, tab, selector, event_name): argument
44 'window.__hasEventCompleted("%s", "%s");' % (selector, event_name)):
48 logging.error('Detected media error while waiting for %s: %s', event_name,
Dmedia_action.js30 window.__hasEventCompleted = function(selector, event_name) { argument
34 if (!mediaElements[i][event_name + '_completed'])
50 window.__registerHTML5EventCompleted = function(element, event_name) { argument
54 element.removeEventListener(event_name, logEventHappened);
56 element.addEventListener(event_name, logEventHappened);
/external/chromium_org/extensions/common/
Devent_filter.cc57 EventFilter::AddEventMatcher(const std::string& event_name, in AddEventMatcher() argument
69 id_to_event_name_[id] = event_name; in AddEventMatcher()
70 event_matchers_[event_name][id] = linked_ptr<EventMatcherEntry>( in AddEventMatcher()
77 const std::string& event_name = id_to_event_name_[id]; in GetEventMatcher() local
78 return event_matchers_[event_name][id]->event_matcher(); in GetEventMatcher()
127 std::string event_name = it->second; in RemoveEventMatcher() local
130 event_matchers_[event_name].erase(id); in RemoveEventMatcher()
132 return event_name; in RemoveEventMatcher()
136 const std::string& event_name, const EventFilteringInfo& event_info, in MatchEvent() argument
140 EventMatcherMultiMap::iterator it = event_matchers_.find(event_name); in MatchEvent()
/external/chromium_org/tools/telemetry/telemetry/web_perf/metrics/
Drendering_stats.py198 def _GatherEvents(self, event_name, process, timeline_range): argument
200 for event in process.IterAllSlicesOfName(event_name):
220 event_name = 'BenchmarkInstrumentation::MainThreadRenderingStats'
221 for event in self._GatherEvents(event_name, process, timeline_range):
224 event_name = 'BenchmarkInstrumentation::ImplThreadRenderingStats'
225 for event in self._GatherEvents(event_name, process, timeline_range):
229 event_name = 'BenchmarkInstrumentation::MainThreadRenderingStats'
230 for event in self._GatherEvents(event_name, process, timeline_range):
238 event_name = 'BenchmarkInstrumentation::ImplThreadRenderingStats'
239 for event in self._GatherEvents(event_name, process, timeline_range):

123456789