/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/ |
D | UsMotionEvent.java | 20 import android.view.MotionEvent; 47 public UsMotionEvent(MotionEvent event, long baseTime) { in UsMotionEvent() 57 public UsMotionEvent(MotionEvent event, long baseTime, int pos) { in UsMotionEvent() 61 action = MotionEvent.ACTION_MOVE; // Only MOVE events get bundled with history in UsMotionEvent() 88 case MotionEvent.ACTION_DOWN: in actionToString() 90 case MotionEvent.ACTION_UP: in actionToString() 92 case MotionEvent.ACTION_CANCEL: in actionToString() 94 case MotionEvent.ACTION_OUTSIDE: in actionToString() 96 case MotionEvent.ACTION_MOVE: in actionToString() 98 case MotionEvent.ACTION_HOVER_MOVE: in actionToString() [all …]
|
D | TapLatencyFragment.java | 26 import android.view.MotionEvent; 76 public boolean onTouch(View v, MotionEvent event) { 79 … if(tapEvent.action != MotionEvent.ACTION_UP && tapEvent.action != MotionEvent.ACTION_DOWN) { 94 if (tapEvent.action == MotionEvent.ACTION_DOWN) { 105 } else if (tapEvent.action == MotionEvent.ACTION_UP) { 127 …if (tapEvent.action != MotionEvent.ACTION_DOWN && tapEvent.action != MotionEvent.ACTION_UP) return; in traceLogEvent() 128 final String title = tapEvent.action == MotionEvent.ACTION_UP ? "Tap-Up" : "Tap-Down"; in traceLogEvent()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowMotionEvent.java | 21 import android.view.MotionEvent; 22 import android.view.MotionEvent.PointerCoords; 23 import android.view.MotionEvent.PointerProperties; 54 @Implements(MotionEvent.class) 57 private static NativeObjRegistry<NativeInput.MotionEvent> nativeMotionEventRegistry = 58 new NativeObjRegistry<>(NativeInput.MotionEvent.class); 62 @RealObject private MotionEvent realMotionEvent; 68 ReflectionHelpers.setStaticField(MotionEvent.class, "gRecyclerTop", null); in reset() 69 ReflectionHelpers.setStaticField(MotionEvent.class, "gSharedTempPointerCoords", null); in reset() 70 ReflectionHelpers.setStaticField(MotionEvent.class, "gSharedTempPointerProperties", null); in reset() [all …]
|
D | ShadowScaleGestureDetector.java | 4 import android.view.MotionEvent; 13 private MotionEvent onTouchEventMotionEvent; 26 protected boolean onTouchEvent(MotionEvent event) { in onTouchEvent() 31 public MotionEvent getOnTouchEventMotionEvent() { in getOnTouchEventMotionEvent()
|
D | ShadowGestureDetector.java | 10 import android.view.MotionEvent; 24 private MotionEvent onTouchEventMotionEvent; 39 protected boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() 52 public MotionEvent getOnTouchEventMotionEvent() { in getOnTouchEventMotionEvent()
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
D | Events.java | 26 import android.view.MotionEvent; 39 private static MotionEvent newTouchDownEvent(int x, int y) { in newTouchDownEvent() 41 MotionEvent event = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, x, y, 1); in newTouchDownEvent() 53 private static MotionEvent newTouchUpEvent(long downTime, int x, int y) { in newTouchUpEvent() 55 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 1); in newTouchUpEvent() 66 private static MotionEvent newTouchMoveEvent(long downTime, int x, int y) { in newTouchMoveEvent() 68 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 1); in newTouchMoveEvent() 102 if (event instanceof MotionEvent) { in injectEvent() 103 ((MotionEvent) event).recycle(); in injectEvent() 109 MotionEvent downEvent = newTouchDownEvent(x, y); in touchDown()
|
/external/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/ |
D | GestureHelper.java | 21 import android.view.MotionEvent; 34 private final BlockingQueue<MotionEvent> queuedSingleTaps = new ArrayBlockingQueue<>(16); 42 public MotionEvent event; 45 public ScrollEvent(MotionEvent e, boolean isStartOfScroll) { in ScrollEvent() 62 public boolean onSingleTapUp(MotionEvent e) { in GestureHelper() 69 public boolean onScroll (MotionEvent e1, MotionEvent e2, in GestureHelper() 86 public boolean onDown(MotionEvent e) { in GestureHelper() 97 public MotionEvent poll() { in poll() 109 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() 113 if (motionEvent.getAction() == MotionEvent.ACTION_UP && isScrolling) { in onTouch()
|
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/ |
D | GestureHelper.java | 21 import android.view.MotionEvent; 34 private final BlockingQueue<MotionEvent> queuedSingleTaps = new ArrayBlockingQueue<>(16); 42 public MotionEvent event; 45 public ScrollEvent(MotionEvent e, boolean isStartOfScroll) { in ScrollEvent() 62 public boolean onSingleTapUp(MotionEvent e) { in GestureHelper() 69 public boolean onScroll (MotionEvent e1, MotionEvent e2, in GestureHelper() 86 public boolean onDown(MotionEvent e) { in GestureHelper() 97 public MotionEvent poll() { in poll() 109 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() 113 if (motionEvent.getAction() == MotionEvent.ACTION_UP && isScrolling) { in onTouch()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowGestureDetectorTest.java | 12 import android.view.MotionEvent; 23 private MotionEvent motionEvent; 29 motionEvent = newBuilder().setAction(MotionEvent.ACTION_UP).setPointer(100, 30).build(); in setUp() 68 public boolean onSingleTapConfirmed(MotionEvent e) { in getOnDoubleTapListener_shouldReturnSetDoubleTapListener() 73 public boolean onDoubleTap(MotionEvent e) { in getOnDoubleTapListener_shouldReturnSetDoubleTapListener() 78 public boolean onDoubleTapEvent(MotionEvent e) { in getOnDoubleTapListener_shouldReturnSetDoubleTapListener() 99 public boolean onDown(MotionEvent e) { in onDown() 104 public void onShowPress(MotionEvent e) { in onShowPress() 108 public boolean onSingleTapUp(MotionEvent e) { in onSingleTapUp() 113 public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { in onScroll() [all …]
|
D | VelocityTrackerTest.java | 5 import android.view.MotionEvent; 120 private static MotionEvent doMotion(long time, float x, float y) { in doMotion() 121 return MotionEvent.obtain(0, time, MotionEvent.ACTION_MOVE, x, y, 0); in doMotion() 124 private static MotionEvent doPointerDown(long time, float x, float y) { in doPointerDown() 125 return MotionEvent.obtain(time, time, MotionEvent.ACTION_DOWN, x, y, 0); in doPointerDown() 132 private static MotionEvent doMotion( in doMotion() 134 MotionEvent event = in doMotion() 135 MotionEvent.obtain(0, time, MotionEvent.ACTION_MOVE, pointer2X, pointer2Y, 0); in doMotion()
|
D | ShadowMotionEventTest.java | 7 import android.view.MotionEvent; 15 private MotionEvent event; 20 event = MotionEvent.obtain(100, 200, MotionEvent.ACTION_MOVE, 5.0f, 10.0f, 0); in setUp() 48 …assertEquals(1 << MotionEvent.ACTION_POINTER_ID_SHIFT | MotionEvent.ACTION_MOVE, event.getAction()… in indexShowsUpInAction() 60 assertEquals(MotionEvent.ACTION_MOVE, event.getActionMasked()); in getActionMaskedStripsPointerIndexFromAction() 62 assertEquals(MotionEvent.ACTION_MOVE, event.getActionMasked()); in getActionMaskedStripsPointerIndexFromAction()
|
D | ShadowScaleGestureDetectorTest.java | 8 import android.view.MotionEvent; 20 private MotionEvent motionEvent; 25 motionEvent = MotionEvent.obtain(-1, -1, MotionEvent.ACTION_UP, 100, 30, -1); in setUp()
|
/external/libchrome/base/android/jni_generator/ |
D | testMotionEvent.javap7 | 1 Classfile out_android/Debug/gen/content/jni/android/view/MotionEvent.class 4 Compiled from "MotionEvent.java" 5 public final class android.view.MotionEvent extends android.view.InputEvent implements android.os.P… 6 SourceFile: "MotionEvent.java" 8 …f #6; //PointerProperties=class android/view/MotionEvent$PointerProperties of class android/view/M… 9 … #12 of #6; //PointerCoords=class android/view/MotionEvent$PointerCoords of class android/view/Mot… 19 …#5 = Fieldref #6.#297 // android/view/MotionEvent.CREATOR:Landroid/os/Parcelable$… 20 #6 = Class #298 // android/view/MotionEvent 23 #9 = Class #301 // android/view/MotionEvent$PointerProperties 26 #12 = Class #302 // android/view/MotionEvent$PointerCoords [all …]
|
D | testMotionEvent.javap | 1 Compiled from "MotionEvent.java" 2 public final class android.view.MotionEvent extends android.view.InputEvent implements android.os.P… 3 SourceFile: "MotionEvent.java" 5 …f #6; //PointerProperties=class android/view/MotionEvent$PointerProperties of class android/view/M… 6 … #12 of #6; //PointerCoords=class android/view/MotionEvent$PointerCoords of class android/view/Mot… 15 const #5 = Field #6.#297; // android/view/MotionEvent.CREATOR:Landroid/os/Parcelable$Creator; 16 const #6 = class #298; // android/view/MotionEvent 19 const #9 = class #301; // android/view/MotionEvent$PointerProperties 22 const #12 = class #302; // android/view/MotionEvent$PointerCoords 163 const #153 = Asciz Landroid/os/Parcelable$Creator<Landroid/view/MotionEvent;>;; [all …]
|
/external/setupdesign/main/src/com/google/android/setupdesign/view/ |
D | TouchableMovementMethod.java | 23 import android.view.MotionEvent; 34 MotionEvent getLastTouchEvent(); in getLastTouchEvent() 52 MotionEvent lastEvent; 55 public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) { in onTouchEvent() 58 if (event.getAction() == MotionEvent.ACTION_DOWN) { in onTouchEvent() 70 public MotionEvent getLastTouchEvent() { in getLastTouchEvent()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | MultiTouchFilter.java | 5 import android.view.MotionEvent; 12 public void updateTouch(MotionEvent event) { in updateTouch() 17 final int actualEvent = action & MotionEvent.ACTION_MASK; in updateTouch() 19 if (actualEvent == MotionEvent.ACTION_POINTER_UP || in updateTouch() 20 actualEvent == MotionEvent.ACTION_UP || in updateTouch() 21 actualEvent == MotionEvent.ACTION_CANCEL) { in updateTouch()
|
D | SingleTouchFilter.java | 3 import android.view.MotionEvent; 7 public void updateTouch(MotionEvent event) { in updateTouch() 9 if (event.getAction() == MotionEvent.ACTION_UP) { in updateTouch()
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/widget/ |
D | NumberPickerButton.java | 22 import android.view.MotionEvent; 51 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() 57 public boolean onTrackballEvent(MotionEvent event) { in onTrackballEvent() 70 private void cancelLongpressIfRequired(MotionEvent event) { in cancelLongpressIfRequired() 71 if ((event.getAction() == MotionEvent.ACTION_CANCEL) in cancelLongpressIfRequired() 72 || (event.getAction() == MotionEvent.ACTION_UP)) { in cancelLongpressIfRequired()
|
/external/setupdesign/main/src/com/google/android/setupdesign/gesture/ |
D | ConsecutiveTapsGestureDetector.java | 20 import android.view.MotionEvent; 43 private MotionEvent previousTapEvent; 73 public void onTouchEvent(MotionEvent ev) { in onTouchEvent() 74 if (ev.getAction() == MotionEvent.ACTION_UP) { in onTouchEvent() 95 previousTapEvent = MotionEvent.obtain(ev); in onTouchEvent() 108 private boolean isConsecutiveTap(MotionEvent currentTapEvent) { in isConsecutiveTap()
|
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/viewpager/ |
D | VerticalViewPager.java | 7 import android.view.MotionEvent; 47 private MotionEvent swapXY(MotionEvent ev) { in swapXY() 57 public boolean onInterceptTouchEvent(MotionEvent ev){ in onInterceptTouchEvent() 64 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent()
|
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
D | TouchZoomExampleActivity.java | 27 import android.view.MotionEvent; 125 public boolean onTouch(View arg0, MotionEvent event) { in onTouch() 126 switch (event.getAction() & MotionEvent.ACTION_MASK) { in onTouch() 127 case MotionEvent.ACTION_DOWN: // Start gesture in onTouch() 132 case MotionEvent.ACTION_UP: in onTouch() 133 case MotionEvent.ACTION_POINTER_UP: in onTouch() 136 case MotionEvent.ACTION_POINTER_DOWN: // second finger in onTouch() 143 case MotionEvent.ACTION_MOVE: in onTouch() 201 private float spacing(MotionEvent event) { in spacing()
|
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/extension/views/ |
D | FreehandView.java | 9 import android.view.MotionEvent; 47 public boolean onTouch(View view, MotionEvent motionEvent) { in onTouch() 52 public boolean onTouchEvent(@NonNull MotionEvent event) { in onTouchEvent() 59 case MotionEvent.ACTION_DOWN: in onTouchEvent() 68 case MotionEvent.ACTION_MOVE: in onTouchEvent() 93 case MotionEvent.ACTION_UP: in onTouchEvent() 94 case MotionEvent.ACTION_POINTER_UP: in onTouchEvent()
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/ |
D | XYPlotZoomPan.java | 6 import android.view.MotionEvent; 228 public boolean onTouch(final View view, final MotionEvent event) { in onTouch() 229 switch (event.getAction() & MotionEvent.ACTION_MASK) in onTouch() 231 case MotionEvent.ACTION_DOWN: // start gesture in onTouch() 235 case MotionEvent.ACTION_POINTER_DOWN: // second finger in onTouch() 244 case MotionEvent.ACTION_POINTER_UP: // end zoom in onTouch() 247 case MotionEvent.ACTION_MOVE: in onTouch() 258 private float getXDistance(final MotionEvent event) { in getXDistance() 262 private void pan(final MotionEvent motionEvent) { in pan() 323 private void zoom(final MotionEvent motionEvent) { in zoom()
|
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/eventhandlingadvanced/ |
D | AdvancedEventHandlingActivity.java | 6 import android.view.MotionEvent; 39 public boolean onSingleTapConfirmed(MotionEvent e) { in onCreate() 49 public void onLongPress(MotionEvent e) { in onCreate() 58 public boolean onDoubleTap(MotionEvent e) { in onCreate() 72 public boolean onTouch(View view, MotionEvent motionEvent) { in onCreate()
|
/external/droiddriver/src/io/appium/droiddriver/instrumentation/ |
D | InstrumentationInputInjector.java | 22 import android.view.MotionEvent; 36 if (event instanceof MotionEvent) { in injectInputEvent() 37 instrumentation.sendPointerSync((MotionEvent) event); in injectInputEvent()
|