Home
last modified time | relevance | path

Searched refs:evt (Results 1 – 25 of 124) sorted by relevance

12345

/external/skia/src/animator/
DSkDisplayEvents.cpp62 SkDisplayEvent* evt = fEvents[index]; in doEvent() local
63 if (evt->disable) in doEvent()
65 if (evt->kind != kind) in doEvent()
67 if (evt->code != (SkKey) -1) { in doEvent()
68 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in doEvent()
70 evt->fLastCode = (SkKey) keyCode; in doEvent()
72 if (evt->fTarget != NULL && evt->fTarget != displayable) in doEvent()
76 evt->x = state->fX; in doEvent()
77 evt->y = state->fY; in doEvent()
79 if (evt->enableEvent(maker)) in doEvent()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/picogui/
DSDL_pgevents.c33 int PG_HandleClose(struct pgEvent *evt) in PG_HandleClose() argument
39 int PG_HandleResize(struct pgEvent *evt) in PG_HandleResize() argument
41 SDL_PrivateResize(evt->e.size.w, evt->e.size.h); in PG_HandleResize()
45 int PG_HandleKey(struct pgEvent *evt) in PG_HandleKey() argument
49 sym.sym = evt->e.kbd.key; in PG_HandleKey()
50 sym.mod = evt->e.kbd.mods; in PG_HandleKey()
51 SDL_PrivateKeyboard(evt->type == PG_WE_KBD_KEYDOWN, &sym); in PG_HandleKey()
55 int PG_HandleChar(struct pgEvent *evt) in PG_HandleChar() argument
59 sym.unicode = evt->e.kbd.key; in PG_HandleChar()
60 sym.mod = evt->e.kbd.mods; in PG_HandleChar()
[all …]
/external/skia/src/views/
DSkEvent.cpp313 bool SkEvent::Post(SkEvent* evt, SkEventSinkID sinkID, SkMSec delay) in Post() argument
316 return SkEvent::PostTime(evt, sinkID, SkTime::GetMSecs() + delay); in Post()
320 evt->fTargetID = sinkID; in Post()
325 str.append(evt->getType()); in Post()
336 bool wasEmpty = SkEvent::Enqueue(evt); in Post()
349 bool SkEvent::PostTime(SkEvent* evt, SkEventSinkID sinkID, SkMSec time) in PostTime() argument
356 evt->fTargetID = sinkID; in PostTime()
361 str.append(evt->getType()); in PostTime()
372 SkMSec queueDelay = SkEvent::EnqueueTime(evt, time); in PostTime()
381 bool SkEvent::Enqueue(SkEvent* evt) in Enqueue() argument
[all …]
DSkWidgetViews.cpp142 SkEvent evt(fEvent); // make a copy since onPrepareWidgetEvent may edit the event in postWidgetEvent() local
144 if (this->onPrepareWidgetEvent(&evt)) in postWidgetEvent()
146 SkDEBUGCODE(evt.dump("SkWidgetView::postWidgetEvent");) in postWidgetEvent()
148 this->postToListeners(evt); // wonder if this should return true if there are > 0 listeners... in postWidgetEvent()
174 /*virtual*/ bool SkWidgetView::onPrepareWidgetEvent(SkEvent* evt) in onPrepareWidgetEvent() argument
176 evt->setS32(gWidgetEventSinkIDSlotName, this->getSinkID()); in onPrepareWidgetEvent()
180 SkEventSinkID SkWidgetView::GetWidgetEventSinkID(const SkEvent& evt) in GetWidgetEventSinkID() argument
184 return evt.findS32(gWidgetEventSinkIDSlotName, &sinkID) ? (SkEventSinkID)sinkID : 0; in GetWidgetEventSinkID()
189 /*virtual*/ bool SkButtonView::onEvent(const SkEvent& evt) in onEvent() argument
191 if (evt.isType(SK_EventType_Key) && evt.getFast32() == kOK_SkKey) in onEvent()
[all …]
DSkBorderView.cpp33 SkEvent evt("user"); in onSizeChange() local
34 evt.setString("id", "setDim"); in onSizeChange()
35 evt.setScalar("dimX", this->width()); in onSizeChange()
36 evt.setScalar("dimY", this->height()); in onSizeChange()
37 fAnim.doUserEvent(evt); in onSizeChange()
55 /*virtual*/ bool SkBorderView::onEvent(const SkEvent& evt) in onEvent() argument
57 if (evt.isType(SK_EventType_Inval)) in onEvent()
62 if (evt.isType("recommendDim")) in onEvent()
64 evt.findScalar("leftMargin", &fLeft); in onEvent()
65 evt.findScalar("rightMargin", &fRight); in onEvent()
[all …]
DSkListView.cpp73 SkEvent* evt = new SkEvent();
77 evt->setString("name", label.c_str());
84 evt->setString("path", label.c_str());
85 evt->setS32("index", index);
86 evt->setS32("duration", 22);
87 evt->setType(fTarget);
88 return evt;
178 SkEvent* evt = new SkEvent();
179 evt->setType(fList[index].fTarget);
180 evt->setFast32(index);
[all …]
DSkProgressBarView.cpp40 /*virtual*/ bool SkProgressBarView::onEvent(const SkEvent& evt) in onEvent() argument
42 if (evt.isType(SK_EventType_Inval)) in onEvent()
47 if (evt.isType("recommendDim")) in onEvent()
51 if (evt.findScalar("y", &height)) in onEvent()
55 return this->INHERITED::onEvent(evt); in onEvent()
71 SkEvent evt("user"); in onSizeChange() local
72 evt.setString("id", "setDim"); in onSizeChange()
73 evt.setScalar("dimX", this->width()); in onSizeChange()
74 evt.setScalar("dimY", this->height()); in onSizeChange()
75 fAnim.doUserEvent(evt); in onSizeChange()
DSkScrollBarView.cpp72 SkEvent evt("user"); in onSizeChange() local
73 evt.setString("id", "setDim"); in onSizeChange()
74 evt.setScalar("dimX", this->width()); in onSizeChange()
75 evt.setScalar("dimY", this->height()); in onSizeChange()
76 fAnim.doUserEvent(evt); in onSizeChange()
94 /*virtual*/ bool SkScrollBarView::onEvent(const SkEvent& evt) in onEvent() argument
96 if (evt.isType(SK_EventType_Inval)) in onEvent()
101 if (evt.isType("recommendDim")) in onEvent()
105 if (evt.findScalar("x", &width)) in onEvent()
110 return this->INHERITED::onEvent(evt); in onEvent()
DSkWindow.cpp188 SkEvent evt(SK_EventType_Unichar); in handleChar() local
189 evt.setFast32(uni); in handleChar()
190 return focus->doEvent(evt); in handleChar()
207 SkEvent evt(SK_EventType_Key); in handleKey() local
208 evt.setFast32(key); in handleKey()
209 if (focus->doEvent(evt)) in handleKey()
237 SkEvent evt(SK_EventType_KeyUp); in handleKeyUp() local
238 evt.setFast32(key); in handleKeyUp()
239 if (focus->doEvent(evt)) in handleKeyUp()
263 SkEvent* evt = fMenus[i]->createEvent(cmd); in handleMenu() local
[all …]
DSkEventSink.cpp85 bool SkEventSink::doEvent(const SkEvent& evt) in doEvent() argument
87 return this->onEvent(evt); in doEvent()
90 bool SkEventSink::doQuery(SkEvent* evt) in doQuery() argument
92 SkASSERT(evt); in doQuery()
93 return this->onQuery(evt); in doQuery()
224 void SkEventSink::postToListeners(const SkEvent& evt, SkMSec delay) in postToListeners() argument
233 (SkNEW_ARGS(SkEvent, (evt)))->post(*iter++, delay); in postToListeners()
239 SkEventSink::EventResult SkEventSink::DoEvent(const SkEvent& evt, SkEventSinkID sinkID) in DoEvent() argument
246 if (evt.isDebugTrace()) in DoEvent()
249 evt.getType(&etype); in DoEvent()
[all …]
DSkListWidget.cpp252 SkEvent evt("user"); in ensureCache() local
253 evt.setString("id", "setFields"); in ensureCache()
254 evt.setS32("rowCount", fVisibleRowCount); in ensureCache()
263 evt.setS32("relativeIndex", i - fScrollIndex); in ensureCache()
268 evt.setString(fBindings[j].fSlotName.c_str(), str.c_str()); in ensureCache()
270 (void)fAnims[i % fVisibleRowCount].doUserEvent(evt); in ensureCache()
384 bool SkListView::onEvent(const SkEvent& evt) in onEvent() argument
386 if (evt.isType(SK_EventType_Key)) in onEvent()
388 switch (evt.getFast32()) { in onEvent()
401 return this->INHERITED::onEvent(evt); in onEvent()
[all …]
/external/webkit/WebCore/rendering/
DTextControlInnerElements.cpp116 void TextControlInnerTextElement::defaultEventHandler(Event* evt) in defaultEventHandler() argument
122 if (evt->isBeforeTextInsertedEvent()) { in defaultEventHandler()
124 static_cast<HTMLInputElement*>(shadowAncestor)->defaultEventHandler(evt); in defaultEventHandler()
126 static_cast<HTMLTextAreaElement*>(shadowAncestor)->defaultEventHandler(evt); in defaultEventHandler()
128 if (evt->type() == eventNames().webkitEditableContentChangedEvent) in defaultEventHandler()
131 if (!evt->defaultHandled()) in defaultEventHandler()
132 HTMLDivElement::defaultEventHandler(evt); in defaultEventHandler()
151 void SearchFieldResultsButtonElement::defaultEventHandler(Event* evt) in defaultEventHandler() argument
155 …if (evt->type() == eventNames().mousedownEvent && evt->isMouseEvent() && static_cast<MouseEvent*>( in defaultEventHandler()
163 evt->setDefaultHandled(); in defaultEventHandler()
[all …]
/external/webkit/WebCore/html/
DHTMLAnchorElement.cpp117 void HTMLAnchorElement::defaultEventHandler(Event* evt) in defaultEventHandler() argument
122 …if (isLink() && (evt->type() == eventNames().clickEvent || (evt->type() == eventNames().keydownEve… in defaultEventHandler()
124 if (evt->type() == eventNames().clickEvent && evt->isMouseEvent()) in defaultEventHandler()
125 e = static_cast<MouseEvent*>(evt); in defaultEventHandler()
128 if (evt->type() == eventNames().keydownEvent && evt->isKeyboardEvent()) in defaultEventHandler()
129 k = static_cast<KeyboardEvent*>(evt); in defaultEventHandler()
132 HTMLElement::defaultEventHandler(evt); in defaultEventHandler()
150 HTMLElement::defaultEventHandler(evt); in defaultEventHandler()
157 HTMLElement::defaultEventHandler(evt); in defaultEventHandler()
165 HTMLElement::defaultEventHandler(evt); in defaultEventHandler()
[all …]
DHTMLButtonElement.cpp101 void HTMLButtonElement::defaultEventHandler(Event* evt) in defaultEventHandler() argument
103 if (evt->type() == eventNames().DOMActivateEvent && !disabled()) { in defaultEventHandler()
106 form()->prepareSubmit(evt); in defaultEventHandler()
113 if (evt->isKeyboardEvent()) { in defaultEventHandler()
114 …if (evt->type() == eventNames().keydownEvent && static_cast<KeyboardEvent*>(evt)->keyIdentifier() … in defaultEventHandler()
119 if (evt->type() == eventNames().keypressEvent) { in defaultEventHandler()
120 switch (static_cast<KeyboardEvent*>(evt)->charCode()) { in defaultEventHandler()
122 dispatchSimulatedClick(evt); in defaultEventHandler()
123 evt->setDefaultHandled(); in defaultEventHandler()
127 evt->setDefaultHandled(); in defaultEventHandler()
[all …]
DHTMLInputElement.cpp1187 void* HTMLInputElement::preDispatchEventHandler(Event *evt) in preDispatchEventHandler() argument
1192 if ((inputType() == CHECKBOX || inputType() == RADIO) && evt->isMouseEvent() in preDispatchEventHandler()
1193 …&& evt->type() == eventNames().clickEvent && static_cast<MouseEvent*>(evt)->button() == LeftButton… in preDispatchEventHandler()
1223 void HTMLInputElement::postDispatchEventHandler(Event *evt, void* data) in postDispatchEventHandler() argument
1225 if ((inputType() == CHECKBOX || inputType() == RADIO) && evt->isMouseEvent() in postDispatchEventHandler()
1226 …&& evt->type() == eventNames().clickEvent && static_cast<MouseEvent*>(evt)->button() == LeftButton… in postDispatchEventHandler()
1229 if (evt->defaultPrevented() || evt->defaultHandled()) { in postDispatchEventHandler()
1237 if (evt->defaultPrevented() || evt->defaultHandled()) { in postDispatchEventHandler()
1252 evt->setDefaultHandled(); in postDispatchEventHandler()
1256 void HTMLInputElement::defaultEventHandler(Event* evt) in defaultEventHandler() argument
[all …]
/external/bluetooth/hcidump/parser/
Dhci.c2207 evt_cmd_complete *evt = frm->ptr; in cmd_complete_dump() local
2208 uint16_t opcode = btohs(evt->opcode); in cmd_complete_dump()
2217 opcode2str(opcode), ogf, ocf, evt->ncmd); in cmd_complete_dump()
2440 evt_cmd_status *evt = frm->ptr; in cmd_status_dump() local
2441 uint16_t opcode = btohs(evt->opcode); in cmd_status_dump()
2450 opcode2str(opcode), ogf, ocf, evt->status, evt->ncmd); in cmd_status_dump()
2452 if (evt->status > 0) { in cmd_status_dump()
2454 printf("Error: %s\n", status2str(evt->status)); in cmd_status_dump()
2460 evt_hardware_error *evt = frm->ptr; in hardware_error_dump() local
2463 printf("code %d\n", evt->code); in hardware_error_dump()
[all …]
/external/webkit/WebCore/svg/
DSVGAElement.cpp108 void SVGAElement::defaultEventHandler(Event* evt) in defaultEventHandler() argument
110 …if (isLink() && (evt->type() == eventNames().clickEvent || (evt->type() == eventNames().keydownEve… in defaultEventHandler()
112 if (evt->type() == eventNames().clickEvent && evt->isMouseEvent()) in defaultEventHandler()
113 e = static_cast<MouseEvent*>(evt); in defaultEventHandler()
116 if (evt->type() == eventNames().keydownEvent && evt->isKeyboardEvent()) in defaultEventHandler()
117 k = static_cast<KeyboardEvent*>(evt); in defaultEventHandler()
120 SVGStyledTransformableElement::defaultEventHandler(evt); in defaultEventHandler()
126 SVGStyledTransformableElement::defaultEventHandler(evt); in defaultEventHandler()
129 evt->setDefaultHandled(); in defaultEventHandler()
130 dispatchSimulatedClick(evt); in defaultEventHandler()
[all …]
/external/bluetooth/bluez/src/
Dsecurity.c350 evt_link_key_notify *evt = ptr; in link_key_notify() local
351 bdaddr_t *dba = &evt->bdaddr; in link_key_notify()
359 evt->key_type); in link_key_notify()
369 err = hcid_dbus_link_key_notify(sba, dba, evt->link_key, in link_key_notify()
370 evt->key_type, in link_key_notify()
400 evt_return_link_keys *evt = ptr; in return_link_keys() local
401 uint8_t num = evt->num_keys; in return_link_keys()
482 evt_io_capability_response *evt = ptr; in io_capa_response() local
485 ba2str(sba, sa); ba2str(&evt->bdaddr, da); in io_capa_response()
488 hcid_dbus_set_io_cap(sba, &evt->bdaddr, in io_capa_response()
[all …]
/external/ipsec-tools/src/racoon/
Devt.c64 struct evt *evt; local
98 if ((evt = racoon_malloc(sizeof(*evt))) == NULL) {
116 evt->dump = evtdump;
117 TAILQ_INSERT_TAIL(&evtlist, evt, next);
127 struct evt *evt; in evt_pop() local
129 if ((evt = TAILQ_FIRST(&evtlist)) == NULL) in evt_pop()
132 evtdump = evt->dump; in evt_pop()
133 TAILQ_REMOVE(&evtlist, evt, next); in evt_pop()
134 racoon_free(evt); in evt_pop()
/external/webkit/WebCore/plugins/android/
DPluginViewAndroid.cpp223 ANPEvent evt; in handleTouchEvent() local
224 SkANP::InitEvent(&evt, kTouch_ANPEventType); in handleTouchEvent()
228 evt.data.touch.action = kDown_ANPTouchAction; in handleTouchEvent()
230 evt.data.touch.action = kUp_ANPTouchAction; in handleTouchEvent()
232 evt.data.touch.action = kMove_ANPTouchAction; in handleTouchEvent()
234 evt.data.touch.action = kCancel_ANPTouchAction; in handleTouchEvent()
238 evt.data.touch.modifiers = 0; // todo in handleTouchEvent()
243 evt.data.touch.x = event->pageX() - m_npWindow.x; in handleTouchEvent()
244 evt.data.touch.y = event->pageY() - m_npWindow.y; in handleTouchEvent()
246 if (m_plugin->pluginFuncs()->event(m_instance, &evt)) { in handleTouchEvent()
[all …]
/external/webkit/WebCore/xml/
DXMLHttpRequestUpload.cpp91 bool XMLHttpRequestUpload::dispatchEvent(PassRefPtr<Event> evt, ExceptionCode& ec) in dispatchEvent() argument
94 if (!evt || evt->type().isEmpty()) { in dispatchEvent()
99 ListenerVector listenersCopy = m_eventListeners.get(evt->type()); in dispatchEvent()
101 evt->setTarget(this); in dispatchEvent()
102 evt->setCurrentTarget(this); in dispatchEvent()
103 listenerIter->get()->handleEvent(evt.get(), false); in dispatchEvent()
106 return !evt->defaultPrevented(); in dispatchEvent()
111 …RefPtr<XMLHttpRequestProgressEvent> evt = XMLHttpRequestProgressEvent::create(type, lengthComputab… in dispatchXMLHttpRequestProgressEvent() local
113 evt->setTarget(this); in dispatchXMLHttpRequestProgressEvent()
114 evt->setCurrentTarget(this); in dispatchXMLHttpRequestProgressEvent()
[all …]
/external/webkit/WebCore/wml/
DWMLInputElement.cpp247 void WMLInputElement::defaultEventHandler(Event* evt) in defaultEventHandler() argument
251 if (evt->type() == eventNames().textInputEvent && evt->isTextEvent()) { in defaultEventHandler()
252 TextEvent* textEvent = static_cast<TextEvent*>(evt); in defaultEventHandler()
260 …if (evt->type() == eventNames().keydownEvent && evt->isKeyboardEvent() && focused() && document()-… in defaultEventHandler()
261 … && document()->frame()->doTextFieldCommandFromEvent(this, static_cast<KeyboardEvent*>(evt))) { in defaultEventHandler()
262 evt->setDefaultHandled(); in defaultEventHandler()
268 WMLElement::defaultEventHandler(evt); in defaultEventHandler()
269 if (evt->defaultHandled()) in defaultEventHandler()
275 if (evt->type() == eventNames().keypressEvent && evt->isKeyboardEvent()) { in defaultEventHandler()
277 if (static_cast<KeyboardEvent*>(evt)->charCode() == '\r') in defaultEventHandler()
[all …]
/external/sonivox/jet_tools/JetCreator/
DJetDebug.py25 def DumpEvent(evt): argument
26 print("event_name: %s" % evt.event_name)
27 print("event_type: %s" % evt.event_type)
28 print("event_id: %d" % evt.event_id)
29 print("track_num: %d" % evt.track_num)
30 print("channel_num: %d" % evt.channel_num)
31 print("event_start: %s" % evt.event_start)
32 print("event_end: %s" % evt.event_end)
/external/qemu/distrib/sdl-1.2.12/src/video/aalib/
DSDL_aaevents.c46 int evt; in AA_PumpEvents() local
104 evt = aa_getevent(AA_context, 0); in AA_PumpEvents()
106 if ( (evt > AA_NONE) && (evt < AA_RELEASE) && (evt != AA_MOUSE) && (evt != AA_RESIZE) ) { in AA_PumpEvents()
109 posted += SDL_PrivateKeyboard(SDL_PRESSED, TranslateKey(evt, &keysym)); in AA_PumpEvents()
110 } else if ( evt >= AA_RELEASE ) { in AA_PumpEvents()
112 evt &= ~AA_RELEASE; in AA_PumpEvents()
114 posted += SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(evt, &keysym)); in AA_PumpEvents()
/external/qemu/distrib/sdl-1.2.12/src/video/directfb/
DSDL_DirectFB_events.c51 DFBInputEvent evt; in DirectFB_PumpEvents() local
54 DFB_EVENT (&evt)) == DFB_OK) in DirectFB_PumpEvents()
58 switch (evt.type) in DirectFB_PumpEvents()
62 DirectFB_TranslateButton (&evt), 0, 0); in DirectFB_PumpEvents()
66 DirectFB_TranslateButton (&evt), 0, 0); in DirectFB_PumpEvents()
69 posted += SDL_PrivateKeyboard(SDL_PRESSED, DirectFB_TranslateKey(&evt, &keysym)); in DirectFB_PumpEvents()
72 posted += SDL_PrivateKeyboard(SDL_RELEASED, DirectFB_TranslateKey(&evt, &keysym)); in DirectFB_PumpEvents()
75 if (evt.flags & DIEF_AXISREL) in DirectFB_PumpEvents()
77 if (evt.axis == DIAI_X) in DirectFB_PumpEvents()
78 posted += SDL_PrivateMouseMotion(0, 1, evt.axisrel, 0); in DirectFB_PumpEvents()
[all …]

12345