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

1 2

  /cts/tests/tests/security/src/android/security/cts/
MotionEventTest.java 34 import android.view.MotionEvent;
131 List<MotionEvent> outsideEvents = listener.getOutsideEvents();
133 for (MotionEvent e : outsideEvents) {
134 assertEquals(0, e.getFlags() & MotionEvent.FLAG_WINDOW_IS_OBSCURED);
169 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime);
170 injectEvent(MotionEvent.ACTION_UP, x, y, downTime);
176 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0);
183 private List<MotionEvent> mOutsideEvents;
189 public boolean onTouch(View v, MotionEvent e)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
HumanInteractionClassifier.java 28 import android.view.MotionEvent;
50 private final ArrayDeque<MotionEvent> mBufferedEvents = new ArrayDeque<>();
119 public void onTouchEvent(MotionEvent event) {
129 // up, the last MotionEvent which was far enough from the finger is set as the final
130 // MotionEvent and sent to the Classifiers.
132 mBufferedEvents.add(MotionEvent.obtain(event));
142 if (action == MotionEvent.ACTION_UP) {
143 mBufferedEvents.getFirst().setAction(MotionEvent.ACTION_UP);
152 private void addTouchEvent(MotionEvent event) {
184 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;
  /cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
InputTestCase.java 27 import android.view.MotionEvent;
53 private BlockingQueue<MotionEvent> mMotions;
59 mMotions = new LinkedBlockingQueue<MotionEvent>();
131 MotionEvent motion;
211 public void onMotionEvent(MotionEvent ev) {
215 mMotions.put(MotionEvent.obtain(ev));
  /frameworks/base/core/java/android/view/
InputDevice.java 94 * A {@link MotionEvent} should be interpreted as absolute coordinates in
108 * A {@link MotionEvent} should be interpreted as relative movements in device-specific
120 * A {@link MotionEvent} should be interpreted as absolute coordinates in
130 * A {@link MotionEvent} should be interpreted as absolute joystick movements.
188 * by a stylus, examine the tool type returned by {@link MotionEvent#getToolType(int)}
193 * {@link MotionEvent#TOOL_TYPE_FINGER} and another pointer with tool type
194 * {@link MotionEvent#TOOL_TYPE_STYLUS}. So it is important to examine
196 * by {@link MotionEvent#getSource()}.
209 * {@link MotionEvent#getToolType(int)} for each individual pointer.
213 * {@link MotionEvent#TOOL_TYPE_FINGER} and another pointer with tool typ
    [all...]
MotionEvent.java 60 * The MotionEvent class provides many methods to query the position and other properties of
96 * void printSamples(MotionEvent ev) {
116 * The interpretation of the contents of a MotionEvent varies significantly depending
172 public final class MotionEvent extends InputEvent implements Parcelable {
181 * a pointer id inside a {@link MotionEvent}.
269 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
270 * {@link View#onTouchEvent(MotionEvent)}.
285 * {@link View#onGenericMotionEvent(MotionEvent)} rather than
286 * {@link View#onTouchEvent(MotionEvent)}.
298 * {@link View#onGenericMotionEvent(MotionEvent)} rather tha
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
RecyclerViewBasicTest.java 39 import android.view.MotionEvent;
155 MotionEvent.obtain(SystemClock.uptimeMillis(),
156 SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, 10, 10, 0)));
164 assertFalse(mRecyclerView.onTouchEvent(MotionEvent.obtain(SystemClock.uptimeMillis(),
165 SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, 10, 10, 0)));
RecyclerViewCacheTest.java 42 import android.view.MotionEvent;
338 MotionEvent.obtain(time, time, MotionEvent.ACTION_DOWN, 500, 1000, 0));
345 MotionEvent.obtain(time, time, MotionEvent.ACTION_MOVE, 50, 500, 0));
349 MotionEvent.obtain(time, time, MotionEvent.ACTION_MOVE, 50, 470, 0));
355 MotionEvent.obtain(time, time, MotionEvent.ACTION_MOVE, 40, 455, 0));
361 MotionEvent.obtain(time, time, MotionEvent.ACTION_MOVE, 40, 455, 0))
    [all...]
  /frameworks/base/services/accessibility/java/com/android/server/accessibility/
TouchExplorer.java 25 import android.view.MotionEvent;
26 import android.view.MotionEvent.PointerCoords;
27 import android.view.MotionEvent.PointerProperties;
214 MotionEvent event = mReceivedPointerTracker.getLastReceivedEvent();
220 private void clear(MotionEvent event, int policyFlags) {
266 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) {
290 if (event.getActionMasked() == MotionEvent.ACTION_CANCEL) {
362 public void onDoubleTapAndHold(MotionEvent event, int policyFlags) {
394 public boolean onDoubleTap(MotionEvent event, int policyFlags)
    [all...]
  /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityGestureDispatchTest.java 38 import android.view.MotionEvent;
59 private static final Matcher<MotionEvent> IS_ACTION_DOWN =
60 new MotionEventActionMatcher(MotionEvent.ACTION_DOWN);
61 private static final Matcher<MotionEvent> IS_ACTION_POINTER_DOWN =
62 new MotionEventActionMatcher(MotionEvent.ACTION_POINTER_DOWN);
63 private static final Matcher<MotionEvent> IS_ACTION_UP =
64 new MotionEventActionMatcher(MotionEvent.ACTION_UP);
65 private static final Matcher<MotionEvent> IS_ACTION_POINTER_UP =
66 new MotionEventActionMatcher(MotionEvent.ACTION_POINTER_UP);
67 private static final Matcher<MotionEvent> IS_ACTION_CANCEL
    [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/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 
  /prebuilts/sdk/25/
android.jar 
  /prebuilts/sdk/4/
android.jar 
  /prebuilts/sdk/5/
android.jar 

Completed in 800 milliseconds

1 2