Home
last modified time | relevance | path

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

12345678910>>...70

/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/mesa3d/src/gallium/drivers/swr/rasterizer/archrast/
Darchrast.cpp91 virtual void Handle(Start& event) {} in Handle() argument
92 virtual void Handle(End& event) {} in Handle() argument
94 virtual void Handle(EarlyDepthStencilInfoSingleSample& event) in Handle() argument
97 DSSingleSample.earlyZTestPassCount += _mm_popcnt_u32(event.data.depthPassMask); in Handle()
98 …DSSingleSample.earlyZTestFailCount += _mm_popcnt_u32((!event.data.depthPassMask) & event.data.cove… in Handle()
99 …e.earlyZTestCount += (_mm_popcnt_u32(event.data.depthPassMask) + _mm_popcnt_u32((!event.data.depth… in Handle()
102 DSSingleSample.earlyStencilTestPassCount += _mm_popcnt_u32(event.data.stencilPassMask); in Handle()
103 …SingleSample.earlyStencilTestFailCount += _mm_popcnt_u32((!event.data.stencilPassMask) & event.dat… in Handle()
104 …tencilTestCount += (_mm_popcnt_u32(event.data.stencilPassMask) + _mm_popcnt_u32((!event.data.stenc… in Handle()
115 virtual void Handle(EarlyDepthStencilInfoSampleRate& event) in Handle() argument
[all …]
Devents.proto88 event Start
94 event End
100 event ThreadStartApiEvent
104 event ThreadStartWorkerEvent
108 event DrawInstancedEvent
118 event DrawIndexedInstancedEvent
129 event DispatchEvent
137 event FrameEndEvent
143 event FrontendStatsEvent
165 event BackendStatsEvent
[all …]
/external/v8/src/heap/
Dmemory-reducer.cc30 Event event; in RunInternal() local
42 event.type = kTimer; in RunInternal()
43 event.time_ms = time_ms; in RunInternal()
47 event.should_start_incremental_gc = in RunInternal()
49 event.can_start_incremental_gc = in RunInternal()
52 event.committed_memory = heap->CommittedOldGenerationMemory(); in RunInternal()
53 memory_reducer_->NotifyTimer(event); in RunInternal()
57 void MemoryReducer::NotifyTimer(const Event& event) { in NotifyTimer() argument
58 DCHECK_EQ(kTimer, event.type); in NotifyTimer()
60 state_ = Step(state_, event); in NotifyTimer()
[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/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/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/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/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/mesa3d/src/gallium/state_trackers/clover/core/
Devent.cpp28 event::event(clover::context &ctx, const ref_vector<event> &deps, in event() function in event
36 event::~event() { in ~event()
39 std::vector<intrusive_ref<event>>
40 event::trigger_self() { in trigger_self()
42 std::vector<intrusive_ref<event>> evs; in trigger_self()
51 event::trigger() { in trigger()
59 for (event &ev : evs) in trigger()
63 std::vector<intrusive_ref<event>>
64 event::abort_self(cl_int status) { in abort_self()
66 std::vector<intrusive_ref<event>> evs; in abort_self()
[all …]
Devent.hpp53 class event : public ref_counter, public _cl_event { class
55 typedef std::function<void (event &)> action;
57 event(clover::context &ctx, const ref_vector<event> &deps,
59 virtual ~event();
61 event(const event &ev) = delete;
62 event &
63 operator=(const event &ev) = delete;
81 void chain(event &ev);
83 std::vector<intrusive_ref<event>> deps;
86 std::vector<intrusive_ref<event>> trigger_self();
[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/python/cpython2/Lib/lib-tk/
DTkdnd.py108 def dnd_start(source, event): argument
109 h = DndHandler(source, event)
122 def __init__(self, source, event): argument
123 if event.num > 5:
125 root = event.widget._root()
134 self.initial_button = button = event.num
135 self.initial_widget = widget = event.widget
151 def on_motion(self, event): argument
152 x, y = event.x_root, event.y_root
162 new_target = attr(source, event)
[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/linux-kselftest/tools/testing/selftests/powerpc/pmu/
Devent.h15 struct event { struct
27 void event_init(struct event *e, u64 config); argument
28 void event_init_named(struct event *e, u64 config, char *name);
29 void event_init_opts(struct event *e, u64 config, int type, char *name);
30 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd);
31 int event_open_with_group(struct event *e, int group_fd);
32 int event_open_with_pid(struct event *e, pid_t pid);
33 int event_open_with_cpu(struct event *e, int cpu);
34 int event_open(struct event *e);
35 void event_close(struct event *e);
[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 …]

12345678910>>...70