/external/chromium_org/extensions/browser/api/system_info/ |
D | system_info_api.cc | 38 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/ |
D | Core.py | 17 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/ |
D | Core.pm | 63 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/ |
D | check-perf-trace.py | 28 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/ |
D | event_router.cc | 55 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 …]
|
D | event_router.h | 88 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 …]
|
D | event_listener_map.cc | 21 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 …]
|
D | extension_message_filter.cc | 113 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 …]
|
D | event_listener_map.h | 53 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/ |
D | check-perf-trace.pl | 30 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);
|
D | wakeup-latency.pl | 30 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}++;
|
D | rw-by-file.pl | 30 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}++;
|
D | rwtop.pl | 37 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}++;
|
D | rw-by-pid.pl | 26 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/ |
D | event_router_forwarder.cc | 26 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 …]
|
D | event_router_forwarder.h | 37 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/ |
D | event_bindings.cc | 90 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/ |
D | test_plugin.cc | 575 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/ |
D | rules_registry_service.h | 43 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);
|
D | declarative_api.cc | 38 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/ |
D | service_process_util_win.cc | 58 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/ |
D | media_action.py | 28 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,
|
D | media_action.js | 30 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/ |
D | event_filter.cc | 57 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/ |
D | rendering_stats.py | 198 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):
|