/external/webkit/Source/WebCore/page/chromium/ |
EventHandlerChromium.cpp | 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR 61 IntPoint p = m_frame->view()->windowToContents(mev.event().pos()); 70 subframe->eventHandler()->handleMousePressEvent(mev.event()); 78 subframe->eventHandler()->handleMouseMoveEvent(mev.event(), hoveredNode); 84 subframe->eventHandler()->handleMouseReleaseEvent(mev.event()); 96 // the event via an EventTargetNode dispatch when this returns false. 103 bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestResults& event) 105 // Figure out which view to send the event to. 106 if (!targetNode(event) || !targetNode(event)->renderer() || !targetNode(event)->renderer()->isWidget() [all...] |
/external/webkit/Source/WebCore/wml/ |
WMLAElement.cpp | 33 #include "Event.h" 91 bool WMLAElement::isKeyboardFocusable(KeyboardEvent* event) const 99 if (!document()->frame()->eventHandler()->tabsToLinks(event)) 122 void WMLAElement::defaultEventHandler(Event* event) 125 if (focused() && isEnterKeyKeydownEvent(event)) { 126 event->setDefaultHandled(); 127 dispatchSimulatedClick(event); 131 if (isLinkClick(event)) { 132 handleLinkClick(event, document(), stripLeadingAndTrailingHTMLSpaces(getAttribute(HTMLNames::hrefAttr)), target(), event (…) [all...] |
/external/webkit/Source/WebKit2/Shared/mac/ |
WebEventFactory.mm | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 49 static WebMouseEvent::Button mouseButtonForEvent(NSEvent *event) 51 switch ([event type]) { 72 static WebEvent::Type mouseEventTypeForEvent(NSEvent* event) 74 switch ([event type]) { 95 static int clickCountForEvent(NSEvent *event) 97 switch ([event type]) { 107 return [event clickCount]; 138 static NSPoint globalPointForEvent(NSEvent *event) 140 switch ([event type]) [all...] |
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/API/c/ |
WKBundlePageOverlay.cpp | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 83 virtual bool mouseEvent(PageOverlay* pageOverlay, const WebMouseEvent& event) 85 switch (event.type()) { 90 return m_client.mouseDown(toAPI(pageOverlay), toAPI(event.position()), toAPI(event.button()), m_client.clientInfo); 96 return m_client.mouseUp(toAPI(pageOverlay), toAPI(event.position()), toAPI(event.button()), m_client.clientInfo); 99 if (event.button() == WebMouseEvent::NoButton) { 103 return m_client.mouseMoved(toAPI(pageOverlay), toAPI(event.position()), m_client.clientInfo); 106 // This is a MouseMove event with a mouse button pressed. Call mouseDragged [all...] |
/frameworks/av/media/libmedia/ |
IAudioFlingerClient.cpp | 42 void ioConfigChanged(int event, audio_io_handle_t ioHandle, const void *param2) 46 data.writeInt32(event); 48 if (event == AudioSystem::STREAM_CONFIG_CHANGED) { 52 } else if (event != AudioSystem::OUTPUT_CLOSED && event != AudioSystem::INPUT_CLOSED) { 75 int event = data.readInt32(); local 80 if (event == AudioSystem::STREAM_CONFIG_CHANGED) { 84 } else if (event != AudioSystem::OUTPUT_CLOSED && event != AudioSystem::INPUT_CLOSED) { 92 ioConfigChanged(event, ioHandle, param2) [all...] |
/frameworks/base/core/jni/ |
android_util_FileObserver.cpp | 58 struct inotify_event* event; local 65 if (num_bytes < (int)sizeof(*event)) 70 ALOGE("***** ERROR! android_os_fileobserver_observe() got a short event!"); 74 while (num_bytes >= (int)sizeof(*event)) 77 event = (struct inotify_event *)(event_buf + event_pos); 81 if (event->len > 0) 83 path = env->NewStringUTF(event->name); 86 env->CallVoidMethod(object, method_onEvent, event->wd, event->mask, path); 96 event_size = sizeof(*event) + event->len [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
DragListener.java | 34 private void setState(DragEvent event) { 35 float translation = event.getY() - mStatePanelTrack.getTouchPoint().y; 39 translation = event.getX() - mStatePanelTrack.getTouchPoint().x; 50 public boolean onDrag(View v, DragEvent event) { 51 switch (event.getAction()) { 57 setState(event); 58 View over = mStatePanelTrack.findChildAt((int) event.getX(), 59 (int) event.getY()); 88 setState(event); 100 setState(event); [all...] |
/sdk/emulator/qtools/ |
trace_reader.cpp | 161 bool BBReader::ReadBB(BBEvent *event) 188 event->time = bb->next_time; 189 event->bb_num = bb->bb_rec.bb_num; 190 event->bb_addr = trace_->GetBBAddr(event->bb_num); 191 event->insns = trace_->GetInsns(event->bb_num); 192 event->num_insns = trace_->FindNumInsns(event->bb_num, event->time) 806 static PidEvent event; local 851 PidEvent *event = FindMmapDexFileEvent(); local 1180 PidEvent event; local [all...] |
/external/linux-tools-perf/util/ |
trace-event-parse.c | 34 #include "trace-event.h" 57 find_any_field(struct event *event, const char *name); 341 static struct event *alloc_event(void) 343 struct event *event; local 345 event = malloc_or_die(sizeof(*event)); 346 memset(event, 0, sizeof(*event)); 1954 struct event *event; local 2040 struct event *event; local 2658 struct event *event; local 2918 struct event *event; local 3016 struct event *event; local 3079 struct event *event; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/nanox/ |
SDL_nxevents.c | 175 GR_EVENT event ; local 178 GrCheckNextEvent (& event) ; 179 while (event.type != GR_EVENT_TYPE_NONE) { 181 // dispatch event 182 switch (event.type) { 217 if (check_boundary (this, event.button.x, event.button.y)) { 218 SDL_PrivateMouseMotion (0, 0, event.button.x - OffsetX, 219 event.button.y - OffsetY) ; 222 SDL_PrivateMouseMotion (0, 0, event.button.x, event.button.y) [all...] |
/external/oprofile/agents/jvmpi/ |
jvmpi_oprofile.cpp | 56 void class_load(JVMPI_Event * event) 59 cls.name = event->u.class_load.class_name; 60 JVMPI_Method * passed_methods = event->u.class_load.methods; 61 for (int i = 0; i < event->u.class_load.num_methods; 70 loaded_classes[event->u.class_load.class_id] = cls; 74 void class_unload(JVMPI_Event * event) 77 loaded_classes.erase(event->u.class_load.class_id); 83 void compiled_method_load(JVMPI_Event * event) 85 jmethodID method = event->u.compiled_method_load.method_id; 86 void * code_addr = event->u.compiled_method_load.code_addr [all...] |
/external/linux-tools-perf/util/scripting-engines/ |
trace-event-perl.c | 2 * trace-event-perl. Feed perf script events to an embedded Perl interpreter. 30 #include "../trace-event.h" 56 struct event *events[FTRACE_MAX_EVENT]; 181 static void define_event_symbols(struct event *event, 199 define_event_symbols(event, ev_name, args->flags.field); 204 define_event_symbols(event, ev_name, args->symbol.field); 212 define_event_symbols(event, ev_name, args->typecast.item); 217 define_event_symbols(event, ev_name, args->op.left); 218 define_event_symbols(event, ev_name, args->op.right) 232 struct event *event; local 258 struct event *event; local 407 struct event *event = NULL; local [all...] |
/external/webkit/LayoutTests/fast/dom/DeviceOrientation/script-tests/ |
add-listener-from-callback.js | 1 description('Tests that adding a new event listener from a callback works as expected.'); 13 function checkOrientation(event) { 14 deviceOrientationEvent = event; 21 function firstListener(event) { 22 checkOrientation(event); 31 function secondListener(event) { 32 checkOrientation(event);
|
/external/webkit/Source/WebCore/html/ |
MediaDocument.cpp | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR 149 void MediaDocument::defaultEventHandler(Event* event) 153 Node* targetNode = event->target()->toNode(); 161 if (event->type() == eventNames().clickEvent) { 163 video->pause(event->fromUserGesture()); 164 event->setDefaultHandled(); 166 } else if (event->type() == eventNames().dblclickEvent) { 168 video->play(event->fromUserGesture()); 169 event->setDefaultHandled() [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
NotificationPanelView.java | 74 public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { 75 if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED) { 76 event.getText() 81 return super.dispatchPopulateAccessibilityEvent(event); 106 public boolean onTouchEvent(MotionEvent event) { 108 if (event.getActionMasked() != MotionEvent.ACTION_MOVE) { 110 event.getActionMasked(), (int) event.getX(), (int) event.getY()); 114 switch (event.getActionMasked()) [all...] |
/external/chromium/chrome/browser/automation/ |
automation_util.cc | 32 base::WaitableEvent* event, 36 event->Signal(); 42 base::WaitableEvent* event, 47 event->Signal(); 54 base::WaitableEvent* event, 59 event->Signal(); 67 base::WaitableEvent* event, 76 event->Signal(); 83 base::WaitableEvent* event) { 86 event->Signal() [all...] |
/external/libnfc-nci/src/nfa/ce/ |
nfa_ce_main.c | 64 static char *nfa_ce_evt_2_str (UINT16 event); 130 ** Description nfa rw main event handling function. 141 NFA_TRACE_EVENT3 ("nfa_ce_handle_event event: %s (0x%02x), flags: %08x", nfa_ce_evt_2_str (p_msg->event), p_msg->event, nfa_ce_cb.flags); 143 NFA_TRACE_EVENT2 ("nfa_ce_handle_event event: 0x%x, flags: %08x",p_msg->event, nfa_ce_cb.flags); 146 /* Get NFA_RW sub-event */ 147 if ((act_idx = (p_msg->event & 0x00FF)) < NFA_CE_ACTION_TBL_SIZE) 152 /* if vendor specific event handler is registered * [all...] |
/external/webkit/Source/WebCore/plugins/qt/ |
PluginContainerQt.cpp | 43 // and thus make Qt not quit the event loop after the last window 56 bool PluginClientWrapper::x11Event(XEvent* event) 58 // modify the event window id and insert it into the Qt event system. 59 event->xany.window = m_parent->effectiveWinId(); 60 static_cast<QApplication*>(QApplication::instance())->x11ProcessEvent(event); 91 // Qt window mapper, and thus receiving events from the Qt event system. 105 // window id of the event to the parent of PluginContainer and puts the event 106 // back into the Qt event loop, so that we will actually scroll the paren [all...] |
/external/webkit/Source/WebKit/qt/Api/ |
qwebinspector.cpp | 147 bool QWebInspector::event(QEvent* ev) function in class:QWebInspector 149 return QWidget::event(ev); 153 void QWebInspector::resizeEvent(QResizeEvent* event) 155 d->adjustFrontendSize(event->size()); 159 void QWebInspector::showEvent(QShowEvent* event) 169 void QWebInspector::hideEvent(QHideEvent* event) 178 void QWebInspector::closeEvent(QCloseEvent* event)
|
/frameworks/base/core/java/android/view/ |
InputEventSender.java | 46 private static native boolean nativeSendKeyEvent(int senderPtr, int seq, KeyEvent event); 47 private static native boolean nativeSendMotionEvent(int senderPtr, int seq, MotionEvent event); 50 * Creates an input event sender bound to the specified input channel. 104 * Called when an input event is finished. 106 * @param seq The input event sequence number. 107 * @param handled True if the input event was handled. 113 * Sends an input event. 116 * @param seq The input event sequence number. 117 * @param event The input event to send [all...] |
/ndk/build/awk/ |
extract-launchable.awk | 38 # concat xml event type and tag for simpler comparisons 39 event = XML_TYPE "-" XML_TAG; 42 if ( event == "BEGIN-ACTIVITY" && 49 else if ( event == "END-ACTIVITY" && 63 else if ( event == "BEGIN-INTENT-FILTER" && 71 else if ( event == "END-INTENT-FILTER" && 79 else if ( event == "BEGIN-ACTION" && 88 else if ( event == "BEGIN-CATEGORY" &&
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
TouchPaint.java | 306 public boolean onTrackballEvent(MotionEvent event) { 307 final int action = event.getActionMasked(); 314 final int N = event.getHistorySize(); 315 final float scaleX = event.getXPrecision() * TRACKBALL_SCALE; 316 final float scaleY = event.getYPrecision() * TRACKBALL_SCALE; 318 moveTrackball(event.getHistoricalX(i) * scaleX, 319 event.getHistoricalY(i) * scaleY); 321 moveTrackball(event.getX() * scaleX, event.getY() * scaleY); 336 public boolean onTouchEvent(MotionEvent event) { [all...] |
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/ |
CCombo3.java | 25 import org.eclipse.swt.widgets.Event; 94 public void handleEvent(Event event) { 109 // send FocusOut event 111 Event e = new Event(); 113 e.time = event.time; 120 public void handleEvent(Event event) { 133 public void handleEvent(Event event) [all...] |
/external/webkit/Tools/DumpRenderTree/wx/ |
DumpRenderTreeWx.cpp | 20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 88 void OnLoadEvent(wxWebViewLoadEvent& event) 91 if (event.GetState() == wxWEBVIEW_LOAD_FAILED || event.GetState() == wxWEBVIEW_LOAD_STOPPED) 94 if (event.GetState() == wxWEBVIEW_LOAD_ONLOAD_HANDLED) { 103 void OnAlertEvent(wxWebViewAlertEvent& event) 105 fprintf(stdout, "ALERT: %S\n", event.GetMessage().c_str()); 108 void OnConfirmEvent(wxWebViewConfirmEvent& event) 110 fprintf(stdout, "CONFIRM: %S\n", event.GetMessage().c_str()); 111 event.SetReturnCode(1) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
DeadZone.java | 105 // I made you a touch event... 107 public boolean onTouchEvent(MotionEvent event) { 109 Slog.v(TAG, this + " onTouch: " + MotionEvent.actionToString(event.getAction())); 112 final int action = event.getAction(); 114 poke(event); 117 Slog.v(TAG, this + " ACTION_DOWN: " + event.getX() + "," + event.getY()); 119 int size = (int) getSize(event.getEventTime()); 120 if ((mVertical && event.getX() < size) || event.getY() < size) [all...] |