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

  /cts/libs/input/src/com/android/cts/input/
HidJsonParser.java 23 import android.view.MotionEvent;
205 private MotionEvent parseMotionEvent(JSONObject entry) throws JSONException {
206 MotionEvent.PointerProperties[] properties = new MotionEvent.PointerProperties[1];
207 properties[0] = new MotionEvent.PointerProperties();
209 properties[0].toolType = MotionEvent.TOOL_TYPE_UNKNOWN;
211 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[1];
212 coords[0] = new MotionEvent.PointerCoords();
219 coords[0].setAxisValue(MotionEvent.axisFromString(axis), value)
    [all...]
  /cts/tests/tests/security/src/android/security/cts/
MotionEventTest.java 32 import android.view.MotionEvent;
150 List<MotionEvent> outsideEvents = listener.getOutsideEvents();
157 for (MotionEvent e : outsideEvents) {
158 assertEquals(0, e.getFlags() & MotionEvent.FLAG_WINDOW_IS_OBSCURED);
194 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime);
195 injectEvent(MotionEvent.ACTION_UP, x, y, downTime);
201 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0);
208 private List<MotionEvent> mOutsideEvents;
214 public boolean onTouch(View v, MotionEvent e)
    [all...]
  /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityGestureDispatchTest.java 53 import android.view.MotionEvent;
78 private static final Matcher<MotionEvent> IS_ACTION_DOWN =
79 new MotionEventActionMatcher(MotionEvent.ACTION_DOWN);
80 private static final Matcher<MotionEvent> IS_ACTION_POINTER_DOWN =
81 new MotionEventActionMatcher(MotionEvent.ACTION_POINTER_DOWN);
82 private static final Matcher<MotionEvent> IS_ACTION_UP =
83 new MotionEventActionMatcher(MotionEvent.ACTION_UP);
84 private static final Matcher<MotionEvent> IS_ACTION_POINTER_UP =
85 new MotionEventActionMatcher(MotionEvent.ACTION_POINTER_UP);
86 private static final Matcher<MotionEvent> IS_ACTION_CANCEL
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
MockView.java 30 import android.view.MotionEvent;
83 private BlockingQueue<MotionEvent> mTouchEvents = new LinkedBlockingQueue<>();
210 public boolean onTouchEvent(MotionEvent event) {
211 mTouchEvents.add(MotionEvent.obtain(event));
216 public boolean onTrackballEvent(MotionEvent event) {
222 public boolean onHoverEvent(MotionEvent event) {
228 * Poll the queue for the oldest MotionEvent that was received by onTouchEvent.
230 * @return The oldest MotionEvent that was received by onTouchEvent
232 public MotionEvent pollTouchEvent() {
627 public PointerIcon onResolvePointerIcon(MotionEvent event, int pointerIndex)
    [all...]
ViewTest.java 81 import android.view.MotionEvent;
467 MotionEvent event = EventUtils.generateMouseEvent(x, y, MotionEvent.ACTION_HOVER_ENTER, 0);
496 MotionEvent.PointerCoords[] pointerCoords = new MotionEvent.PointerCoords[1];
497 pointerCoords[0] = new MotionEvent.PointerCoords();
504 MotionEvent event = MotionEvent.obtain(0, eventTime, MotionEvent.ACTION_HOVER_MOVE,
518 MotionEvent event = MotionEvent.obtain(0, 0, MotionEvent.ACTION_HOVER_MOVE, 0, 0, 0)
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
NativeInput.java 27 import android.view.MotionEvent.PointerProperties;
276 static class MotionEvent extends InputEvent {
588 public void copyFrom(MotionEvent other, boolean keepHistory) {

Completed in 5620 milliseconds