Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 1799) sorted by relevance

12345678910>>...72

/external/chromium-trace/catapult/telemetry/telemetry/timeline/
Dtrace_event_importer.py59 def _ProcessAsyncEvent(self, event): argument
63 thread = (self._GetOrCreateProcess(event['pid'])
64 .GetOrCreateThread(event['tid']))
66 'event': event,
69 def _ProcessCounterEvent(self, event): argument
73 if 'id' in event:
74 ctr_name = event['name'] + '[' + str(event['id']) + ']'
76 ctr_name = event['name']
78 ctr = (self._GetOrCreateProcess(event['pid'])
79 .GetOrCreateCounter(event['cat'], ctr_name))
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/
Devent_attributes_test.c17 struct event event, leader; in event_attributes() local
21 event_init(&event, 0x1001e); in event_attributes()
22 event_leader_ebb_init(&event); in event_attributes()
24 FAIL_IF(event_open(&event)); in event_attributes()
25 event_close(&event); in event_attributes()
28 event_init(&event, 0x001e); /* CYCLES - no PMC specified */ in event_attributes()
29 event_leader_ebb_init(&event); in event_attributes()
31 FAIL_IF(event_open(&event) == 0); in event_attributes()
34 event_init(&event, 0x2001e); in event_attributes()
35 event_leader_ebb_init(&event); in event_attributes()
[all …]
Dinstruction_count_test.c25 static int do_count_loop(struct event *event, uint64_t instructions, in do_count_loop() argument
45 event->result.value = ebb_state.stats.pmc_count[4-1]; in do_count_loop()
47 difference = event->result.value - expected; in do_count_loop()
48 percentage = (double)difference / event->result.value * 100; in do_count_loop()
53 printf("Actual %llu\n", event->result.value); in do_count_loop()
63 if (difference / event->result.value) in do_count_loop()
70 static uint64_t determine_overhead(struct event *event) in determine_overhead() argument
75 do_count_loop(event, 0, 0, false); in determine_overhead()
76 overhead = event->result.value; in determine_overhead()
79 do_count_loop(event, 0, 0, false); in determine_overhead()
[all …]
Dtask_event_pinned_vs_ebb_test.c22 static int setup_child_event(struct event *event, pid_t child_pid) in setup_child_event() argument
24 event_init_named(event, 0x400FA, "PM_RUN_INST_CMPL"); in setup_child_event()
26 event->attr.pinned = 1; in setup_child_event()
28 event->attr.exclude_kernel = 1; in setup_child_event()
29 event->attr.exclude_hv = 1; in setup_child_event()
30 event->attr.exclude_idle = 1; in setup_child_event()
32 FAIL_IF(event_open_with_pid(event, child_pid)); in setup_child_event()
33 FAIL_IF(event_enable(event)); in setup_child_event()
41 struct event event; in task_event_pinned_vs_ebb() local
57 rc = setup_child_event(&event, pid); in task_event_pinned_vs_ebb()
[all …]
Dcpu_event_pinned_vs_ebb_test.c22 static int setup_cpu_event(struct event *event, int cpu) in setup_cpu_event() argument
24 event_init_named(event, 0x400FA, "PM_RUN_INST_CMPL"); in setup_cpu_event()
26 event->attr.pinned = 1; in setup_cpu_event()
28 event->attr.exclude_kernel = 1; in setup_cpu_event()
29 event->attr.exclude_hv = 1; in setup_cpu_event()
30 event->attr.exclude_idle = 1; in setup_cpu_event()
33 FAIL_IF(event_open_with_cpu(event, cpu)); in setup_cpu_event()
34 FAIL_IF(event_enable(event)); in setup_cpu_event()
42 struct event event; in cpu_event_pinned_vs_ebb() local
62 rc = setup_cpu_event(&event, cpu); in cpu_event_pinned_vs_ebb()
[all …]
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
DPropertyChangeEventTest.java40 PropertyChangeEvent event = new PropertyChangeEvent(src, "myPropName", in testConstructor_Normal() local
42 assertSame(src, event.getSource()); in testConstructor_Normal()
43 assertEquals("myPropName", event.getPropertyName()); in testConstructor_Normal()
44 assertSame(oldValue, event.getOldValue()); in testConstructor_Normal()
45 assertSame(newValue, event.getNewValue()); in testConstructor_Normal()
46 assertNull(event.getPropagationId()); in testConstructor_Normal()
54 PropertyChangeEvent event = new PropertyChangeEvent(src, null, null, in testConstructor_Null() local
56 assertSame(src, event.getSource()); in testConstructor_Null()
57 assertNull(event.getPropertyName()); in testConstructor_Null()
58 assertSame(null, event.getOldValue()); in testConstructor_Null()
[all …]
/external/v8/src/heap/
Dmemory-reducer.cc28 Event event; in RunInternal() local
40 event.type = kTimer; in RunInternal()
41 event.time_ms = time_ms; in RunInternal()
45 event.should_start_incremental_gc = in RunInternal()
47 event.can_start_incremental_gc = in RunInternal()
50 memory_reducer_->NotifyTimer(event); in RunInternal()
54 void MemoryReducer::NotifyTimer(const Event& event) { in NotifyTimer() argument
55 DCHECK_EQ(kTimer, event.type); in NotifyTimer()
57 state_ = Step(state_, event); in NotifyTimer()
83 ScheduleTimer(event.time_ms, state_.next_gc_start_ms - event.time_ms); in NotifyTimer()
[all …]
/external/libmojo/mojo/converters/blink/
Dblink_input_events_type_converters.cc67 const ui::PointerEvent& event) { in BuildWebMouseEventFrom() argument
71 SetWebMouseEventLocation(event, web_event.get()); in BuildWebMouseEventFrom()
73 web_event->modifiers = EventFlagsToWebEventModifiers(event.flags()); in BuildWebMouseEventFrom()
74 web_event->timeStampSeconds = ui::EventTimeStampToSeconds(event.time_stamp()); in BuildWebMouseEventFrom()
77 if (event.flags() & ui::EF_LEFT_MOUSE_BUTTON) in BuildWebMouseEventFrom()
79 if (event.flags() & ui::EF_MIDDLE_MOUSE_BUTTON) in BuildWebMouseEventFrom()
81 if (event.flags() & ui::EF_RIGHT_MOUSE_BUTTON) in BuildWebMouseEventFrom()
84 switch (event.type()) { in BuildWebMouseEventFrom()
98 NOTIMPLEMENTED() << "Received unexpected event: " << event.type(); in BuildWebMouseEventFrom()
102 web_event->clickCount = GetClickCount(event.flags()); in BuildWebMouseEventFrom()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddtmf_buffer.cc72 DtmfEvent* event) { in ParseEvent() argument
74 RTC_CHECK(event); in ParseEvent()
80 event->event_no = payload[0]; in ParseEvent()
81 event->end_bit = ((payload[1] & 0x80) != 0); in ParseEvent()
82 event->volume = (payload[1] & 0x3F); in ParseEvent()
83 event->duration = payload[2] << 8 | payload[3]; in ParseEvent()
84 event->timestamp = rtp_timestamp; in ParseEvent()
100 int DtmfBuffer::InsertEvent(const DtmfEvent& event) { in InsertEvent() argument
101 if (event.event_no < 0 || event.event_no > 15 || in InsertEvent()
102 event.volume < 0 || event.volume > 36 || in InsertEvent()
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.equinox.event_1.2.0.v20100503.jar ... public void postEvent (org.osgi.service.event.Event) org.osgi.service.event ...
/external/v8/src/base/platform/
Dcondition-variable.cc152 Event* event = freelist_;
153 freelist_ = event->next_;
154 delete event;
163 Event* event = freelist_;
164 if (event != NULL) {
165 freelist_ = event->next_;
167 event = new Event;
169 event->thread_ = GetCurrentThread();
170 event->notified_ = false;
175 DCHECK_NE(event, we);
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/
Dmtb.py54 for event in packet:
57 pretty_event.append('time %.6f,' % event[MTB.EV_TIME])
58 if event.get(MTB.SYN_REPORT):
61 ev_type = event[MTB.EV_TYPE]
63 ev_code = event[MTB.EV_CODE]
66 pretty_event.append('value %d' % event[MTB.EV_VALUE])
77 for event in packet:
78 if event.get(MTB.SYN_REPORT):
79 evemu_event = evemu_format_syn_report % event[MTB.EV_TIME]
81 evemu_event = evemu_format % (event[MTB.EV_TIME],
[all …]
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/
DCTableCombo.java73 public void handleEvent(Event event) { in init()
74 if (m_popup == event.widget) { in init()
75 handlePopupEvent(event); in init()
78 if (m_text == event.widget) { in init()
79 handleTextEvent(event); in init()
82 if (m_table == event.widget) { in init()
83 handleTableEvent(event); in init()
86 if (m_arrow == event.widget) { in init()
87 handleArrowEvent(event); in init()
90 if (CTableCombo.this == event.widget) { in init()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DMotionEventTest.java16 private MotionEvent event; field in MotionEventTest
21 event = MotionEvent.obtain(100, 200, MotionEvent.ACTION_MOVE, 5.0f, 10.0f, 0); in setUp()
22 shadowMotionEvent = shadowOf(event); in setUp()
27 assertThat(event.getX(0), equalTo(5.0f)); in addingSecondPointerSetsCount()
28 assertThat(event.getY(0), equalTo(10.0f)); in addingSecondPointerSetsCount()
29 assertThat(event.getPointerCount(), equalTo(1)); in addingSecondPointerSetsCount()
31 shadowOf(event).setPointer2( 20.0f, 30.0f ); in addingSecondPointerSetsCount()
33 assertThat(event.getX(1), equalTo(20.0f)); in addingSecondPointerSetsCount()
34 assertThat(event.getY(1), equalTo(30.0f)); in addingSecondPointerSetsCount()
35 assertThat(event.getPointerCount(), equalTo(2)); in addingSecondPointerSetsCount()
[all …]
/external/droiddriver/src/io/appium/droiddriver/scroll/
DAccessibilityEventScrollStepStrategy.java80 public boolean accept(AccessibilityEvent event) { in accept() argument
81 if ((event.getEventType() & AccessibilityEvent.TYPE_VIEW_SCROLLED) != 0) { in accept()
86 lastEvent = AccessibilityEvent.obtain(event); in accept()
118 AccessibilityEvent event = doScrollAndReturnEvent(driver.on(containerFinder), direction); in scroll() local
119 if (detectEnd(event, direction.axis())) { in scroll()
121 Logs.log(Log.DEBUG, "reached scroll end with event: " + event); in scroll()
125 if (event != null) { in scroll()
126 event.recycle(); in scroll()
136 protected boolean detectEnd(AccessibilityEvent event, Axis axis) { in detectEnd() argument
137 if (event == null) { in detectEnd()
[all …]
/external/ltp/testcases/kernel/syscalls/inotify/
Dinotify02.c194 struct inotify_event *event; in main() local
195 event = (struct inotify_event *)&event_buf[i]; in main()
199 event->mask) in main()
215 "name=\"%.*s\"", event->wd, event->mask, in main()
216 event->cookie, event->len, event->len, in main()
217 event->name); in main()
219 } else if ((event_set[test_num].mask == event->mask) in main()
222 (event_set[test_num].name, event->name, in main()
223 event->len))) { in main()
226 if (event->mask == IN_MOVED_FROM) { in main()
[all …]
Dinotify04.c206 struct inotify_event *event; in main() local
207 event = (struct inotify_event *)&event_buf[i]; in main()
210 && event_set[TST_TOTAL - 1].mask == event->mask) in main()
226 "name=\"%.*s\"", event->wd, event->mask, in main()
227 event->cookie, event->len, event->len, event->name); in main()
229 } else if ((event_set[test_num].mask == event->mask) in main()
232 (event_set[test_num].name, event->name, in main()
233 event->len))) { in main()
237 event->wd, event->mask, event->cookie, in main()
238 event->len, event->len, event->name); in main()
[all …]
Dinotify05.c105 struct inotify_event *event; in main() local
107 event = (struct inotify_event *)&event_buf[i]; in main()
108 if (event->mask != IN_ACCESS && in main()
109 event->mask != IN_MODIFY && in main()
110 event->mask != IN_OPEN && in main()
111 event->mask != IN_Q_OVERFLOW) { in main()
115 event->wd, event->mask, in main()
116 event->cookie, event->len); in main()
120 if (event->mask == IN_Q_OVERFLOW) { in main()
121 if (event->len != 0 || in main()
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/web_perf/metrics/
Drendering_stats.py56 for event in itertools.chain(
59 if event.start >= timeline_range.min and event.end <= timeline_range.max:
60 for ss in event.sub_slices:
87 for event in input_events:
88 data = event.args['data']
102 input_event_latencies.append((start_time, event.name, latency))
113 for event in process.IterAllSlicesOfName('DrmEventFlipComplete'):
114 if 'data' in event.args and event.args['data']['frame_count'] == 1:
124 for event in process.IterAllSlicesOfName(
126 if 'data' in event.args and event.args['data']['frame_count'] == 1:
[all …]
Dblob_timeline.py26 def IsWriteEvent(event): argument
27 return event.name == WRITE_EVENT_NAME
30 def IsReadEvent(event): argument
31 return event.name == READ_EVENT_NAME
34 def IsEventInInteraction(event, interaction): argument
35 return interaction.start <= event.start <= interaction.end
38 def ThreadDurationIfPresent(event): argument
39 if event.thread_duration:
40 return event.thread_duration
42 return event.duration
[all …]
/external/jmdns/src/javax/jmdns/impl/
DListenerStatus.java57 void serviceAdded(ServiceEvent event) { in serviceAdded() argument
58 String qualifiedName = event.getName() + "." + event.getType(); in serviceAdded()
59 if (null == _addedServices.putIfAbsent(qualifiedName, event.getInfo().clone())) { in serviceAdded()
60 this.getListener().serviceAdded(event); in serviceAdded()
61 ServiceInfo info = event.getInfo(); in serviceAdded()
63 this.getListener().serviceResolved(event); in serviceAdded()
66 logger.finer("Service Added called for a service already added: " + event); in serviceAdded()
76 void serviceRemoved(ServiceEvent event) { in serviceRemoved() argument
77 String qualifiedName = event.getName() + "." + event.getType(); in serviceRemoved()
79 this.getListener().serviceRemoved(event); in serviceRemoved()
[all …]
/external/libchrome/base/synchronization/
Dwaitable_event_unittest.cc18 WaitableEvent event(WaitableEvent::ResetPolicy::MANUAL, in TEST() local
21 EXPECT_FALSE(event.IsSignaled()); in TEST()
23 event.Signal(); in TEST()
24 EXPECT_TRUE(event.IsSignaled()); in TEST()
25 EXPECT_TRUE(event.IsSignaled()); in TEST()
27 event.Reset(); in TEST()
28 EXPECT_FALSE(event.IsSignaled()); in TEST()
29 EXPECT_FALSE(event.TimedWait(TimeDelta::FromMilliseconds(10))); in TEST()
31 event.Signal(); in TEST()
32 event.Wait(); in TEST()
[all …]
/external/skia/tools/viewer/sk_app/mac/
DWindow_mac.cpp126 static uint32_t get_modifiers(const SDL_Event& event) { in get_modifiers() argument
138 switch (event.type) { in get_modifiers()
143 if (event.key.keysym.mod & gModifiers[i].fSDLMask) { in get_modifiers()
147 if (0 == event.key.repeat) { in get_modifiers()
166 bool Window_mac::HandleWindowEvent(const SDL_Event& event) { in HandleWindowEvent() argument
167 Window_mac* win = gWindowMap.find(event.window.windowID); in HandleWindowEvent()
168 if (win && win->handleEvent(event)) { in HandleWindowEvent()
175 bool Window_mac::handleEvent(const SDL_Event& event) { in handleEvent() argument
176 switch (event.type) { in handleEvent()
178 if (SDL_WINDOWEVENT_EXPOSED == event.window.event) { in handleEvent()
[all …]
/external/pdfium/fpdfsdk/javascript/
Devent.h12 class event : public CJS_EmbedObj {
14 explicit event(CJS_Object* pJSObject);
15 ~event() override;
68 JS_STATIC_PROP(change, event);
69 JS_STATIC_PROP(changeEx, event);
70 JS_STATIC_PROP(commitKey, event);
71 JS_STATIC_PROP(fieldFull, event);
72 JS_STATIC_PROP(keyDown, event);
73 JS_STATIC_PROP(modifier, event);
74 JS_STATIC_PROP(name, event);
[all …]
/external/wpa_supplicant_8/src/drivers/
Drfkill.c58 struct rfkill_event event; in rfkill_receive() local
62 len = read(rfkill->fd, &event, sizeof(event)); in rfkill_receive()
74 if (event.op != RFKILL_OP_CHANGE || event.idx != rfkill->idx) in rfkill_receive()
79 event.idx, event.type, event.op, event.soft, in rfkill_receive()
80 event.hard); in rfkill_receive()
82 if (event.hard) { in rfkill_receive()
85 } else if (event.soft) { in rfkill_receive()
106 struct rfkill_event event; in rfkill_init() local
140 len = read(rfkill->fd, &event, sizeof(event)); in rfkill_init()
154 if (event.op != RFKILL_OP_ADD || in rfkill_init()
[all …]

12345678910>>...72