/frameworks/base/cmds/hid/jni/ |
H A D | com_android_commands_hid_Device.cpp | 95 struct uhid_event ev; local 96 memset(&ev, 0, sizeof(ev)); 97 ev.type = UHID_CREATE; 98 strncpy((char*)ev.u.create.name, name, UHID_MAX_NAME_LENGTH); 99 ev.u.create.rd_data = descriptor.get(); 100 ev.u.create.rd_size = descriptorSize; 101 ev.u.create.bus = BUS_BLUETOOTH; 102 ev.u.create.vendor = vid; 103 ev 133 struct uhid_event ev; local 142 struct uhid_event ev; local 159 struct uhid_event ev; local [all...] |
/frameworks/base/core/java/android/app/ |
H A D | Activity.java | 2757 * @param ev The touch screen event. 2761 public boolean dispatchTouchEvent(MotionEvent ev) { argument 2762 if (ev.getAction() == MotionEvent.ACTION_DOWN) { 2765 if (getWindow().superDispatchTouchEvent(ev)) { 2768 return onTouchEvent(ev); 2777 * @param ev The trackball event. 2781 public boolean dispatchTrackballEvent(MotionEvent ev) { argument 2783 if (getWindow().superDispatchTrackballEvent(ev)) { 2786 return onTrackballEvent(ev); 2795 * @param ev Th 2799 dispatchGenericMotionEvent(MotionEvent ev) argument [all...] |
H A D | Dialog.java | 782 * @param ev The touch screen event. 786 public boolean dispatchTouchEvent(MotionEvent ev) { argument 787 if (mWindow.superDispatchTouchEvent(ev)) { 790 return onTouchEvent(ev); 799 * @param ev The trackball event. 803 public boolean dispatchTrackballEvent(MotionEvent ev) { argument 804 if (mWindow.superDispatchTrackballEvent(ev)) { 807 return onTrackballEvent(ev); 816 * @param ev The generic motion event. 820 public boolean dispatchGenericMotionEvent(MotionEvent ev) { argument [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | XmlBlock.java | 244 int ev = nativeNext(mParseState); 249 switch (ev) { 257 mEventType = ev; 258 if (ev == END_DOCUMENT) { 265 return ev;
|
/frameworks/base/core/java/android/hardware/input/ |
H A D | IInputManager.aidl | 41 boolean injectInputEvent(in InputEvent ev, int mode);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | KeyboardView.java | 1473 public void addMovement(MotionEvent ev) { argument 1474 long time = ev.getEventTime(); 1475 final int N = ev.getHistorySize(); 1477 addPoint(ev.getHistoricalX(i), ev.getHistoricalY(i), 1478 ev.getHistoricalEventTime(i)); 1480 addPoint(ev.getX(), ev.getY(), time);
|
H A D | SoftInputWindow.java | 88 public boolean dispatchTouchEvent(MotionEvent ev) { argument 91 if (ev.isWithinBoundsNoHistory(mBounds.left, mBounds.top, 93 return super.dispatchTouchEvent(ev); 95 MotionEvent temp = ev.clampNoHistory(mBounds.left, mBounds.top,
|
/frameworks/base/core/java/android/service/wallpaper/ |
H A D | WallpaperService.java | 1204 MotionEvent ev = (MotionEvent)message.obj; 1205 if (ev.getAction() == MotionEvent.ACTION_MOVE) { 1207 if (mEngine.mPendingMove == ev) { 1216 if (DEBUG) Log.v(TAG, "Delivering touch event: " + ev); 1217 mEngine.onTouchEvent(ev); 1219 ev.recycle();
|
/frameworks/base/core/java/android/view/ |
H A D | DragEvent.java | 273 final DragEvent ev; 276 ev = new DragEvent(); 277 ev.init(action, x, y, description, data, localState, result); 278 return ev; 280 ev = gRecyclerTop; 281 gRecyclerTop = ev.mNext; 284 ev.mRecycledLocation = null; 285 ev.mRecycled = false; 286 ev.mNext = null; 288 ev [all...] |
H A D | GestureDetector.java | 486 * @param ev The current motion event. 490 public boolean onTouchEvent(MotionEvent ev) { argument 492 mInputEventConsistencyVerifier.onTouchEvent(ev, 0); 495 final int action = ev.getAction(); 500 mVelocityTracker.addMovement(ev); 504 final int skipIndex = pointerUp ? ev.getActionIndex() : -1; 508 final int count = ev.getPointerCount(); 511 sumX += ev.getX(i); 512 sumY += ev.getY(i); 535 final int upIndex = ev 690 onGenericMotionEvent(MotionEvent ev) argument [all...] |
H A D | KeyEvent.java | 1501 final KeyEvent ev; 1503 ev = gRecyclerTop; 1504 if (ev == null) { 1507 gRecyclerTop = ev.mNext; 1510 ev.mNext = null; 1511 ev.prepareForReuse(); 1512 return ev; 1523 KeyEvent ev = obtain(); 1524 ev.mDownTime = downTime; 1525 ev [all...] |
H A D | MotionEvent.java | 92 * void printSamples(MotionEvent ev) { 93 * final int historySize = ev.getHistorySize(); 94 * final int pointerCount = ev.getPointerCount(); 96 * System.out.printf("At time %d:", ev.getHistoricalEventTime(h)); 99 * ev.getPointerId(p), ev.getHistoricalX(p, h), ev.getHistoricalY(p, h)); 102 * System.out.printf("At time %d:", ev.getEventTime()); 105 * ev.getPointerId(p), ev [all...] |
H A D | ScaleGestureDetector.java | 228 * @param ev MotionEvent to add to the ongoing history 230 private void addTouchHistory(MotionEvent ev) { argument 232 final int count = ev.getPointerCount(); 238 final int historySize = ev.getHistorySize(); 243 major = ev.getHistoricalTouchMajor(i, h); 245 major = ev.getTouchMajor(i); 262 final long time = h < historySize ? ev.getHistoricalEventTime(h) 263 : ev.getEventTime(); 280 mTouchHistoryLastAcceptedTime = ev.getEventTime();
|
H A D | View.java | 18087 * @param ev the view-local motion event 18091 public boolean toGlobalMotionEvent(MotionEvent ev) { argument 18100 ev.transform(m); 18108 * @param ev the on-screen motion event 18112 public boolean toLocalMotionEvent(MotionEvent ev) { argument 18121 ev.transform(m);
|
H A D | ViewGroup.java | 2077 public boolean dispatchTouchEvent(MotionEvent ev) { argument 2079 mInputEventConsistencyVerifier.onTouchEvent(ev, 1); 2084 if (ev.isTargetAccessibilityFocus() && isAccessibilityFocusedViewOrHost()) { 2085 ev.setTargetAccessibilityFocus(false); 2089 if (onFilterTouchEventForSecurity(ev)) { 2090 final int action = ev.getAction(); 2098 cancelAndClearTouchTargets(ev); 2108 intercepted = onInterceptTouchEvent(ev); 2109 ev.setAction(action); // restore action in case it was changed 2122 ev 2717 onInterceptTouchEvent(MotionEvent ev) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewProvider.java | 360 public boolean onTouchEvent(MotionEvent ev); argument 366 public boolean onTrackballEvent(MotionEvent ev); argument
|
/frameworks/base/core/java/android/widget/ |
H A D | AbsListView.java | 3096 private boolean performStylusButtonPressAction(MotionEvent ev) { argument 3611 public boolean onTouchEvent(MotionEvent ev) { argument 3632 if (mFastScroll != null && mFastScroll.onTouchEvent(ev)) { 3637 final MotionEvent vtev = MotionEvent.obtain(ev); 3639 final int actionMasked = ev.getActionMasked(); 3646 onTouchDown(ev); 3651 onTouchMove(ev, vtev); 3656 onTouchUp(ev); 3666 onSecondaryPointerUp(ev); 3682 final int index = ev 3709 onTouchDown(MotionEvent ev) argument 3772 onTouchMove(MotionEvent ev, MotionEvent vtev) argument 3825 onTouchUp(MotionEvent ev) argument 4231 onInterceptTouchEvent(MotionEvent ev) argument 4324 onSecondaryPointerUp(MotionEvent ev) argument [all...] |
H A D | AdapterViewAnimator.java | 618 public boolean onTouchEvent(MotionEvent ev) { argument 619 int action = ev.getAction(); 625 if (isTransformedTouchPointInView(ev.getX(), ev.getY(), v, null)) { 642 if (isTransformedTouchPointInView(ev.getX(), ev.getY(), v, null)) {
|
H A D | Editor.java | 3798 public boolean onTouchEvent(MotionEvent ev) { argument 3799 updateFloatingToolbarVisibility(ev); 3801 switch (ev.getActionMasked()) { 3804 mTouchToWindowOffsetX = ev.getRawX() - mPositionX; 3805 mTouchToWindowOffsetY = ev.getRawY() - mPositionY; 3816 final float rawX = ev.getRawX(); 3817 final float rawY = ev.getRawY(); 3965 public boolean onTouchEvent(MotionEvent ev) { argument 3966 final boolean result = super.onTouchEvent(ev); 3968 switch (ev [all...] |
H A D | FastScroller.java | 1381 public boolean onInterceptTouchEvent(MotionEvent ev) { argument 1386 switch (ev.getActionMasked()) { 1388 if (isPointInside(ev.getX(), ev.getY())) { 1400 mInitialTouchY = ev.getY(); 1405 if (!isPointInside(ev.getX(), ev.getY())) { 1415 return onTouchEvent(ev); 1427 public boolean onInterceptHoverEvent(MotionEvent ev) { argument 1432 final int actionMasked = ev [all...] |
H A D | HorizontalScrollView.java | 440 public boolean onInterceptTouchEvent(MotionEvent ev) { argument 452 final int action = ev.getAction(); 474 final int pointerIndex = ev.findPointerIndex(activePointerId); 481 final int x = (int) ev.getX(pointerIndex); 487 mVelocityTracker.addMovement(ev); 494 final int x = (int) ev.getX(); 495 if (!inChild((int) x, (int) ev.getY())) { 506 mActivePointerId = ev.getPointerId(0); 509 mVelocityTracker.addMovement(ev); 530 final int index = ev 549 onTouchEvent(MotionEvent ev) argument 691 onSecondaryPointerUp(MotionEvent ev) argument [all...] |
H A D | MediaController.java | 484 public boolean onTrackballEvent(MotionEvent ev) { argument
|
H A D | PopupWindow.java | 1964 public boolean dispatchTouchEvent(MotionEvent ev) { argument 1965 if (mTouchInterceptor != null && mTouchInterceptor.onTouch(this, ev)) { 1968 return super.dispatchTouchEvent(ev);
|
H A D | ScrollView.java | 475 public boolean onInterceptTouchEvent(MotionEvent ev) { argument 487 final int action = ev.getAction(); 516 final int pointerIndex = ev.findPointerIndex(activePointerId); 523 final int y = (int) ev.getY(pointerIndex); 529 mVelocityTracker.addMovement(ev); 543 final int y = (int) ev.getY(); 544 if (!inChild((int) ev.getX(), (int) y)) { 555 mActivePointerId = ev.getPointerId(0); 558 mVelocityTracker.addMovement(ev); 584 onSecondaryPointerUp(ev); 596 onTouchEvent(MotionEvent ev) argument 755 onSecondaryPointerUp(MotionEvent ev) argument [all...] |
H A D | StackView.java | 619 public boolean onInterceptTouchEvent(MotionEvent ev) { argument 620 int action = ev.getAction(); 624 mInitialX = ev.getX(); 625 mInitialY = ev.getY(); 626 mActivePointerId = ev.getPointerId(0); 631 int pointerIndex = ev.findPointerIndex(mActivePointerId); 637 float newY = ev.getY(pointerIndex); 644 onSecondaryPointerUp(ev); 709 public boolean onTouchEvent(MotionEvent ev) { argument 710 super.onTouchEvent(ev); 766 onSecondaryPointerUp(MotionEvent ev) argument 810 handlePointerUp(MotionEvent ev) argument [all...] |