HomeSort by relevance Sort by last modified time
    Searched defs:MotionEvent (Results 1 - 25 of 33) sorted by null

1 2

  /frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/
ConsecutiveTapsGestureDetectorTest.java 23 import android.view.MotionEvent;
114 MotionEvent.obtain(timeMillis, timeMillis, MotionEvent.ACTION_DOWN, x, y, 0));
116 MotionEvent.obtain(timeMillis, timeMillis + 10, MotionEvent.ACTION_UP, x, y, 0));
  /cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
InputTestCase.java 31 import android.view.MotionEvent;
57 private final BlockingQueue<MotionEvent> mMotions;
66 mMotions = new LinkedBlockingQueue<MotionEvent>();
157 MotionEvent motion;
219 public void onMotionEvent(MotionEvent ev) {
223 mMotions.put(MotionEvent.obtain(ev));
  /cts/tests/tests/security/src/android/security/cts/
MotionEventTest.java 36 import android.view.MotionEvent;
133 List<MotionEvent> outsideEvents = listener.getOutsideEvents();
140 for (MotionEvent e : outsideEvents) {
141 assertEquals(0, e.getFlags() & MotionEvent.FLAG_WINDOW_IS_OBSCURED);
177 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime);
178 injectEvent(MotionEvent.ACTION_UP, x, y, downTime);
184 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0);
191 private List<MotionEvent> mOutsideEvents;
197 public boolean onTouch(View v, MotionEvent e)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
HumanInteractionClassifier.java 28 import android.view.MotionEvent;
49 private final ArrayDeque<MotionEvent> mBufferedEvents = new ArrayDeque<>();
121 public void onTouchEvent(MotionEvent event) {
131 // up, the last MotionEvent which was far enough from the finger is set as the final
132 // MotionEvent and sent to the Classifiers.
134 mBufferedEvents.add(MotionEvent.obtain(event));
144 if (action == MotionEvent.ACTION_UP) {
145 mBufferedEvents.getFirst().setAction(MotionEvent.ACTION_UP);
154 private void addTouchEvent(MotionEvent event) {
186 if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL)
    [all...]
  /frameworks/native/include/input/
Input.h 370 class MotionEvent : public InputEvent {
372 virtual ~MotionEvent() { }
575 void copyFrom(const MotionEvent* other, bool keepHistory);
639 virtual MotionEvent* createMotionEvent() = 0;
652 virtual MotionEvent* createMotionEvent() { return & mMotionEvent; }
656 MotionEvent mMotionEvent;
668 virtual MotionEvent* createMotionEvent();
676 Vector<MotionEvent*> mMotionEventPool;
  /frameworks/base/services/accessibility/java/com/android/server/accessibility/
TouchExplorer.java 24 import android.view.MotionEvent;
25 import android.view.MotionEvent.PointerCoords;
26 import android.view.MotionEvent.PointerProperties;
210 MotionEvent event = mReceivedPointerTracker.getLastReceivedEvent();
216 private void clear(MotionEvent event, int policyFlags) {
257 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) {
279 if (event.getActionMasked() == MotionEvent.ACTION_CANCEL) {
343 public void onDoubleTapAndHold(MotionEvent event, int policyFlags) {
375 public boolean onDoubleTap(MotionEvent event, int policyFlags)
    [all...]
MagnificationGestureHandler.java 20 import static android.view.MotionEvent.ACTION_CANCEL;
21 import static android.view.MotionEvent.ACTION_DOWN;
22 import static android.view.MotionEvent.ACTION_MOVE;
23 import static android.view.MotionEvent.ACTION_POINTER_DOWN;
24 import static android.view.MotionEvent.ACTION_POINTER_UP;
25 import static android.view.MotionEvent.ACTION_UP;
48 import android.view.MotionEvent;
49 import android.view.MotionEvent.PointerCoords;
50 import android.view.MotionEvent.PointerProperties;
148 private final Queue<MotionEvent> mDebugInputEventHistory
    [all...]
  /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityGestureDispatchTest.java 52 import android.view.MotionEvent;
77 private static final Matcher<MotionEvent> IS_ACTION_DOWN =
78 new MotionEventActionMatcher(MotionEvent.ACTION_DOWN);
79 private static final Matcher<MotionEvent> IS_ACTION_POINTER_DOWN =
80 new MotionEventActionMatcher(MotionEvent.ACTION_POINTER_DOWN);
81 private static final Matcher<MotionEvent> IS_ACTION_UP =
82 new MotionEventActionMatcher(MotionEvent.ACTION_UP);
83 private static final Matcher<MotionEvent> IS_ACTION_POINTER_UP =
84 new MotionEventActionMatcher(MotionEvent.ACTION_POINTER_UP);
85 private static final Matcher<MotionEvent> IS_ACTION_CANCEL
    [all...]
  /frameworks/base/core/java/android/view/
InputDevice.java 96 * A {@link MotionEvent} should be interpreted as absolute coordinates in
110 * A {@link MotionEvent} should be interpreted as relative movements in device-specific
122 * A {@link MotionEvent} should be interpreted as absolute coordinates in
132 * A {@link MotionEvent} should be interpreted as absolute joystick movements.
190 * by a stylus, examine the tool type returned by {@link MotionEvent#getToolType(int)}
195 * {@link MotionEvent#TOOL_TYPE_FINGER} and another pointer with tool type
196 * {@link MotionEvent#TOOL_TYPE_STYLUS}. So it is important to examine
198 * by {@link MotionEvent#getSource()}.
211 * {@link MotionEvent#getToolType(int)} for each individual pointer.
215 * {@link MotionEvent#TOOL_TYPE_FINGER} and another pointer with tool typ
    [all...]
MotionEvent.java 62 * The MotionEvent class provides many methods to query the position and other properties of
98 * void printSamples(MotionEvent ev) {
118 * The interpretation of the contents of a MotionEvent varies significantly depending
174 public final class MotionEvent extends InputEvent implements Parcelable {
185 * a pointer id inside a {@link MotionEvent}.
273 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
274 * {@link View#onTouchEvent(MotionEvent)}.
289 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
290 * {@link View#onTouchEvent(MotionEvent)}.
302 * {@link View#onGenericMotionEvent(MotionEvent)} rather tha
    [all...]
  /frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
RecyclerViewBasicTest.java 40 import android.view.MotionEvent;
160 MotionEvent.obtain(SystemClock.uptimeMillis(),
161 SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, 10, 10, 0)));
169 assertFalse(mRecyclerView.onTouchEvent(MotionEvent.obtain(SystemClock.uptimeMillis(),
170 SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, 10, 10, 0)));
RecyclerViewCacheTest.java 45 import android.view.MotionEvent;
380 MotionEvent.obtain(time, time, MotionEvent.ACTION_DOWN, 500, 1000, 0));
387 MotionEvent.obtain(time, time, MotionEvent.ACTION_MOVE, 50, 500, 0));
391 MotionEvent.obtain(time, time, MotionEvent.ACTION_MOVE, 50, 470, 0));
397 MotionEvent.obtain(time, time, MotionEvent.ACTION_MOVE, 40, 455, 0));
403 MotionEvent.obtain(time, time, MotionEvent.ACTION_MOVE, 40, 455, 0))
    [all...]
  /external/robolectric/v1/lib/main/
android.jar 
  /prebuilts/sdk/14/
android.jar 
  /prebuilts/sdk/15/
android.jar 
  /prebuilts/sdk/17/
android.jar 
  /prebuilts/sdk/18/
android.jar 
  /prebuilts/sdk/19/
android.jar 
  /prebuilts/sdk/20/
android.jar 
  /prebuilts/sdk/26/
android.jar 
  /prebuilts/sdk/27/
android.jar 
  /prebuilts/tools/common/m2/repository/com/google/android/android/4.0.1.2/
android-4.0.1.2.jar 
  /prebuilts/tools/common/m2/repository/com/google/android/android/4.1.1.4/
android-4.1.1.4.jar 
  /prebuilts/sdk/13/
android.jar 
  /prebuilts/sdk/9/
android.jar 

Completed in 293 milliseconds

1 2