Home
last modified time | relevance | path

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

12345678910

/external/libvncserver/webclients/novnc/include/
Dkeyboard.js99 function sync(evt, keysym) { argument
105 if (evt.ctrlKey !== undefined && evt.ctrlKey !== state[ctrl] && keysym !== ctrl) {
106 state[ctrl] = evt.ctrlKey;
109 if (evt.altKey !== undefined && evt.altKey !== state[alt] && keysym !== alt) {
110 state[alt] = evt.altKey;
113 … if (evt.altGraphKey !== undefined && evt.altGraphKey !== state[altGr] && keysym !== altGr) {
114 state[altGr] = evt.altGraphKey;
117 if (evt.shiftKey !== undefined && evt.shiftKey !== state[shift] && keysym !== shift) {
118 state[shift] = evt.shiftKey;
121 if (evt.metaKey !== undefined && evt.metaKey !== state[meta] && keysym !== meta) {
[all …]
Dinput.js207 var evt = (e ? e : window.event);
240 } else if (evt.which) {
242 bmask = 1 << evt.button;
245 bmask = (evt.button & 0x1) + // Left
246 (evt.button & 0x2) * 2 + // Right
247 (evt.button & 0x4) / 2; // Middle
278 var evt = (e ? e : window.event);
280 var wheelData = evt.detail ? evt.detail * -1 : evt.wheelDelta / 40;
303 var evt = (e ? e : window.event);
315 var evt = (e ? e : window.event);
/external/skia/src/views/
DSkOSMenu.cpp93 const char slotName[], SkEvent* evt) { in Item() argument
97 fEvent = evt; in Item()
137 SkEvent* evt) { in appendItem() argument
138 SkOSMenu::Item* item = new Item(label, type, slotName, evt); in appendItem()
144 SkEvent* evt = new SkEvent(gMenuEventType, target); in appendAction() local
146 evt->setString(label, label); in appendAction()
147 return appendItem(label, SkOSMenu::kAction_Type, "", evt); in appendAction()
152 SkEvent* evt = new SkEvent(gMenuEventType, target); in appendList() local
164 evt->setString(gList_Items_Str, str); in appendList()
165 evt->setS32(gList_ItemCount_S32, count); in appendList()
[all …]
DSkEvent.cpp335 bool SkEvent::Enqueue(SkEvent* evt) { in Enqueue() argument
339 SkASSERT(evt); in Enqueue()
344 globals.fEventQTail->fNextEvent = evt; in Enqueue()
345 globals.fEventQTail = evt; in Enqueue()
347 globals.fEventQHead = evt; in Enqueue()
348 evt->fNextEvent = nullptr; in Enqueue()
359 SkEvent* evt = globals.fEventQHead; in Dequeue() local
360 if (evt) { in Dequeue()
363 globals.fEventQHead = evt->fNextEvent; in Dequeue()
370 return evt; in Dequeue()
[all …]
DSkEventSink.cpp72 bool SkEventSink::doEvent(const SkEvent& evt) { in doEvent() argument
73 return this->onEvent(evt); in doEvent()
76 bool SkEventSink::doQuery(SkEvent* evt) { in doQuery() argument
77 SkASSERT(evt); in doQuery()
78 return this->onQuery(evt); in doQuery()
205 void SkEventSink::postToListeners(const SkEvent& evt, SkMSec delay) { in postToListeners() argument
212 SkEvent* copy = new SkEvent(evt); in postToListeners()
220 SkEventSink::EventResult SkEventSink::DoEvent(const SkEvent& evt) { in DoEvent() argument
221 SkEvent::Proc proc = evt.getTargetProc(); in DoEvent()
223 return proc(evt) ? kHandled_EventResult : kNotHandled_EventResult; in DoEvent()
[all …]
DSkWindow.cpp152 SkEvent evt(SK_EventType_Unichar); in handleChar() local
153 evt.setFast32(uni); in handleChar()
154 return focus->doEvent(evt); in handleChar()
170 SkEvent evt(SK_EventType_Key); in handleKey() local
171 evt.setFast32(key); in handleKey()
172 if (focus->doEvent(evt)) in handleKey()
198 SkEvent evt(SK_EventType_KeyUp); in handleKeyUp() local
199 evt.setFast32(key); in handleKeyUp()
200 if (focus->doEvent(evt)) in handleKeyUp()
219 bool SkWindow::onEvent(const SkEvent& evt) { in onEvent() argument
[all …]
/external/skia/src/animator/
DSkDisplayEvents.cpp54 SkDisplayEvent* evt = fEvents[index]; in doEvent() local
55 if (evt->disable) in doEvent()
57 if (evt->kind != kind) in doEvent()
59 if (evt->code != (SkKey) -1) { in doEvent()
60 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in doEvent()
62 evt->fLastCode = (SkKey) keyCode; in doEvent()
64 if (evt->fTarget != nullptr && evt->fTarget != displayable) in doEvent()
68 evt->x = state->fX; in doEvent()
69 evt->y = state->fY; in doEvent()
71 if (evt->enableEvent(maker)) in doEvent()
[all …]
/external/skia/src/views/animated/
DSkWidgetViews.cpp135 SkEvent evt(fEvent); // make a copy since onPrepareWidgetEvent may edit the event in postWidgetEvent() local
137 if (this->onPrepareWidgetEvent(&evt)) in postWidgetEvent()
139 SkDEBUGCODE(evt.dump("SkWidgetView::postWidgetEvent");) in postWidgetEvent()
141 … this->postToListeners(evt); // wonder if this should return true if there are > 0 listeners... in postWidgetEvent()
167 /*virtual*/ bool SkWidgetView::onPrepareWidgetEvent(SkEvent* evt) in onPrepareWidgetEvent() argument
169 evt->setS32(gWidgetEventSinkIDSlotName, this->getSinkID()); in onPrepareWidgetEvent()
173 SkEventSinkID SkWidgetView::GetWidgetEventSinkID(const SkEvent& evt) in GetWidgetEventSinkID() argument
177 return evt.findS32(gWidgetEventSinkIDSlotName, &sinkID) ? (SkEventSinkID)sinkID : 0; in GetWidgetEventSinkID()
182 /*virtual*/ bool SkButtonView::onEvent(const SkEvent& evt) in onEvent() argument
184 if (evt.isType(SK_EventType_Key) && evt.getFast32() == kOK_SkKey) in onEvent()
[all …]
DSkBorderView.cpp42 SkEvent evt("user"); in onSizeChange() local
43 evt.setString("id", "setDim"); in onSizeChange()
44 evt.setScalar("dimX", this->width()); in onSizeChange()
45 evt.setScalar("dimY", this->height()); in onSizeChange()
46 fAnim.doUserEvent(evt); in onSizeChange()
64 /*virtual*/ bool SkBorderView::onEvent(const SkEvent& evt) in onEvent() argument
66 if (evt.isType(SK_EventType_Inval)) in onEvent()
71 if (evt.isType("recommendDim")) in onEvent()
73 evt.findScalar("leftMargin", &fLeft); in onEvent()
74 evt.findScalar("rightMargin", &fRight); in onEvent()
[all …]
DSkProgressBarView.cpp47 /*virtual*/ bool SkProgressBarView::onEvent(const SkEvent& evt) in onEvent() argument
49 if (evt.isType(SK_EventType_Inval)) in onEvent()
54 if (evt.isType("recommendDim")) in onEvent()
58 if (evt.findScalar("y", &height)) in onEvent()
62 return this->INHERITED::onEvent(evt); in onEvent()
78 SkEvent evt("user"); in onSizeChange() local
79 evt.setString("id", "setDim"); in onSizeChange()
80 evt.setScalar("dimX", this->width()); in onSizeChange()
81 evt.setScalar("dimY", this->height()); in onSizeChange()
82 fAnim.doUserEvent(evt); in onSizeChange()
DSkScrollBarView.cpp79 SkEvent evt("user"); in onSizeChange() local
80 evt.setString("id", "setDim"); in onSizeChange()
81 evt.setScalar("dimX", this->width()); in onSizeChange()
82 evt.setScalar("dimY", this->height()); in onSizeChange()
83 fAnim.doUserEvent(evt); in onSizeChange()
101 /*virtual*/ bool SkScrollBarView::onEvent(const SkEvent& evt) in onEvent() argument
103 if (evt.isType(SK_EventType_Inval)) in onEvent()
108 if (evt.isType("recommendDim")) in onEvent()
112 if (evt.findScalar("x", &width)) in onEvent()
117 return this->INHERITED::onEvent(evt); in onEvent()
/external/skia/src/views/unix/
DSkOSWindow_Unix.cpp152 static unsigned getModi(const XEvent& evt) { in getModi() argument
165 if (evt.xkey.state & gModi[i].fXMask) { in getModi()
174 static bool MyXNextEventWithDelay(Display* dsp, XEvent* evt) { in MyXNextEventWithDelay() argument
178 XNextEvent(dsp, evt); in MyXNextEventWithDelay()
199 XNextEvent(dsp, evt); in MyXNextEventWithDelay()
206 XEvent evt; in nextXEvent() local
209 if (!MyXNextEventWithDelay(dsp, &evt)) { in nextXEvent()
213 switch (evt.type) { in nextXEvent()
215 if (0 == evt.xexpose.count) { in nextXEvent()
220 this->resize(evt.xconfigure.width, evt.xconfigure.height); in nextXEvent()
[all …]
/external/skia/samplecode/
DGMSampleView.cpp17 SkEvent* evt = new SkEvent("GMSampleView::showSize"); in NewShowSizeEvt() local
18 evt->setFast32(doShowSize); in NewShowSizeEvt()
19 return evt; in NewShowSizeEvt()
22 bool GMSampleView::onQuery(SkEvent* evt) { in onQuery() argument
23 if (SampleCode::TitleQ(*evt)) { in onQuery()
26 SampleCode::TitleR(evt, name.c_str()); in onQuery()
29 return this->INHERITED::onQuery(evt); in onQuery()
32 bool GMSampleView::onEvent(const SkEvent& evt) { in onEvent() argument
33 if (evt.isType("GMSampleView::showSize")) { in onEvent()
34 fShowSize = SkToBool(evt.getFast32()); in onEvent()
[all …]
DSampleXfer.cpp39 SkEvent evt; in postWidgetEvent() local
40 this->onPrepareWidEvent(&evt); in postWidgetEvent()
41 this->postToListeners(evt, 0); in postWidgetEvent()
62 void onPrepareWidEvent(SkEvent* evt) override { in onPrepareWidEvent() argument
63 evt->setType("push-button"); in onPrepareWidEvent()
64 evt->setFast32(fFast32); in onPrepareWidEvent()
65 evt->setString("label", fLabel.c_str()); in onPrepareWidEvent()
190 bool onEvent(const SkEvent& evt) override { in onEvent() argument
191 if (evt.isType("push-button")) { in onEvent()
193 fSelected->fMode = (SkXfermode::Mode)evt.getFast32(); in onEvent()
[all …]
DOverView.cpp52 bool onQuery(SkEvent* evt) override { in onQuery() argument
53 if (SampleCode::TitleQ(*evt)) { in onQuery()
54 SampleCode::TitleR(evt, "Overview"); in onQuery()
57 if (evt->isType(gIsOverview)) { in onQuery()
61 if (SampleCode::CharQ(*evt, &uni)) { in onQuery()
66 return this->INHERITED::onQuery(evt); in onQuery()
81 SkEvent evt("set-curr-index"); in onFindClickHandler() local
82 evt.setFast32(i); in onFindClickHandler()
83 this->sendEventToParents(evt); in onFindClickHandler()
155 bool OverView::onEvent(const SkEvent& evt) { in onEvent() argument
[all …]
DSampleApp.cpp113 static void post_event_to_sink(SkEvent* evt, SkEventSink* sink) { in post_event_to_sink() argument
114 evt->setTargetID(sink->getSinkID())->post(); in post_event_to_sink()
372 static bool isInvalEvent(const SkEvent& evt) { in isInvalEvent() argument
373 return evt.isType(view_inval_msg); in isInvalEvent()
542 bool SampleCode::CharQ(const SkEvent& evt, SkUnichar* outUni) { in CharQ() argument
543 if (evt.isType(gCharEvtName, sizeof(gCharEvtName) - 1)) { in CharQ()
545 *outUni = evt.getFast32(); in CharQ()
552 bool SampleCode::KeyQ(const SkEvent& evt, SkKey* outKey) { in KeyQ() argument
553 if (evt.isType(gKeyEvtName, sizeof(gKeyEvtName) - 1)) { in KeyQ()
555 *outKey = (SkKey)evt.getFast32(); in KeyQ()
[all …]
DSamplePdfFileViewer.cpp64 virtual bool onQuery(SkEvent* evt) { in onQuery() argument
65 if (SampleCode::TitleQ(*evt)) { in onQuery()
69 SampleCode::TitleR(evt, name.c_str()); in onQuery()
72 return this->INHERITED::onQuery(evt); in onQuery()
75 virtual bool onEvent(const SkEvent& evt) { in onEvent() argument
79 return this->INHERITED::onEvent(evt); in onEvent()
DSampleMegaStroke.cpp30 bool onQuery(SkEvent* evt) override { in onQuery() argument
31 if (SampleCode::TitleQ(*evt)) { in onQuery()
32 SampleCode::TitleR(evt, "MegaStroke"); in onQuery()
37 if (SampleCode::CharQ(*evt, &uni)) { in onQuery()
41 evt->getType(&str); in onQuery()
45 return this->INHERITED::onQuery(evt); in onQuery()
/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/skia/include/views/
DSkOSMenu.h57 SkEvent* evt);
122 SkEvent* evt);
148 static bool FindListItemCount(const SkEvent& evt, int* count);
153 static bool FindListItems(const SkEvent& evt, SkString items[]);
154 static bool FindSliderMin(const SkEvent& evt, SkScalar* min);
155 static bool FindSliderMax(const SkEvent& evt, SkScalar* max);
160 static bool FindAction(const SkEvent& evt, const char label[]);
167 static bool FindListIndex(const SkEvent& evt, const char slotName[], int* value);
168 static bool FindSliderValue(const SkEvent& evt, const char slotName[], SkScalar* value);
169 static bool FindSwitchState(const SkEvent& evt, const char slotName[], bool* value);
[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/skia/experimental/DrawingBoard/
DSampleDrawingClient.cpp96 bool onQuery(SkEvent* evt) { in onQuery() argument
97 if (SampleCode::TitleQ(*evt)) { in onQuery()
98 SampleCode::TitleR(evt, "Drawing Client"); in onQuery()
102 return this->INHERITED::onQuery(evt); in onQuery()
105 bool onEvent(const SkEvent& evt) {; in onEvent() argument
106 if (SkOSMenu::FindSliderValue(evt, "Brush Size", &fBrushSize)) in onEvent()
110 if (SkOSMenu::FindText(evt, "Server IP", &s)) { in onEvent()
123 if (SkOSMenu::FindSwitchState(evt, "AA", &fAA) || in onEvent()
124 SkOSMenu::FindSwitchState(evt, "Sync", &fSync)) in onEvent()
126 if (SkOSMenu::FindSwitchState(evt, "Vector", &fVector)) { in onEvent()
[all …]
/external/skia/experimental/Networking/
DSampleNetPipeReader.cpp56 bool onQuery(SkEvent* evt) { in onQuery() argument
57 if (SampleCode::TitleQ(*evt)) { in onQuery()
58 SampleCode::TitleR(evt, "Net Pipe Reader"); in onQuery()
61 return this->INHERITED::onQuery(evt); in onQuery()
64 bool onEvent(const SkEvent& evt) { in onEvent() argument
66 if (SkOSMenu::FindText(evt, "Server IP", &s)) { in onEvent()
75 if (SkOSMenu::FindSwitchState(evt, "Sync", &fSync)) in onEvent()
77 return this->INHERITED::onEvent(evt); in onEvent()
/external/libvncserver/webclients/java-applet/ssl/
Dtightvnc-1.3dev7_javasrc-vncviewer-cursor-colors+no-tab-traversal.patch57 public void mouseDragged(MouseEvent evt) {
58 processLocalMouseEvent(evt, true);
60 + public void mouseWheelMoved(MouseWheelEvent evt) {
61 + processLocalMouseWheelEvent(evt);
64 public void processLocalKeyEvent(KeyEvent evt) {
67 evt.consume();
70 + public void processLocalMouseWheelEvent(MouseWheelEvent evt) {
74 + rfb.writeWheelEvent(evt);
83 public void processLocalMouseEvent(MouseEvent evt, boolean moved) {
/external/valgrind/lackey/
Dlk_main.c529 Event* evt; in addEvent_Ir() local
536 evt = &events[events_used]; in addEvent_Ir()
537 evt->ekind = Event_Ir; in addEvent_Ir()
538 evt->addr = iaddr; in addEvent_Ir()
539 evt->size = isize; in addEvent_Ir()
540 evt->guard = NULL; in addEvent_Ir()
548 Event* evt; in addEvent_Dr_guarded() local
555 evt = &events[events_used]; in addEvent_Dr_guarded()
556 evt->ekind = Event_Dr; in addEvent_Dr_guarded()
557 evt->addr = daddr; in addEvent_Dr_guarded()
[all …]

12345678910