HomeSort by relevance Sort by last modified time
    Searched refs:motionEvent (Results 1 - 25 of 58) sorted by null

1 2 3

  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMotionEvent.java 3 import android.view.MotionEvent;
12 * Shadow for {@code MotionEvent} that uses reflection to create {@code MotionEvent} objects, which cannot otherwise
16 @Implements(MotionEvent.class)
18 @RealObject private MotionEvent realObject;
30 public static MotionEvent obtain(long downTime, long eventTime, int action, float x, float y, int metaState) {
32 Constructor<MotionEvent> constructor = MotionEvent.class.getDeclaredConstructor();
34 MotionEvent motionEvent = constructor.newInstance()
    [all...]
  /frameworks/native/libs/input/tests/
InputPublisherAndConsumer_test.cpp 185 MotionEvent* motionEvent = static_cast<MotionEvent*>(event);
187 EXPECT_EQ(deviceId, motionEvent->getDeviceId());
188 EXPECT_EQ(source, motionEvent->getSource());
189 EXPECT_EQ(action, motionEvent->getAction());
190 EXPECT_EQ(flags, motionEvent->getFlags());
191 EXPECT_EQ(edgeFlags, motionEvent->getEdgeFlags());
192 EXPECT_EQ(metaState, motionEvent->getMetaState());
193 EXPECT_EQ(buttonState, motionEvent->getButtonState())
    [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
TaskTapPointerEventListener.java 24 import android.view.MotionEvent;
63 public void onPointerEvent(MotionEvent motionEvent) {
64 doGestureDetection(motionEvent);
66 final int action = motionEvent.getAction();
67 switch (action & MotionEvent.ACTION_MASK) {
68 case MotionEvent.ACTION_DOWN: {
69 final int x = (int) motionEvent.getX();
70 final int y = (int) motionEvent.getY();
81 case MotionEvent.ACTION_MOVE:
    [all...]
PointerEventDispatcher.java 23 import android.view.MotionEvent;
41 if (event instanceof MotionEvent
43 final MotionEvent motionEvent = (MotionEvent)event;
53 listeners[i].onPointerEvent(motionEvent);
  /developers/build/prebuilts/gradle/BasicGestureDetect/Application/src/main/java/com/example/android/basicgesturedetect/
BasicGestureDetectFragment.java 24 import android.view.MotionEvent;
59 public boolean onTouch(View view, MotionEvent motionEvent) {
60 gd.onTouchEvent(motionEvent);
  /developers/build/prebuilts/gradle/ElevationBasic/Application/src/main/java/com/example/android/elevationbasic/
ElevationBasicFragment.java 23 import android.view.MotionEvent;
55 public boolean onTouch(View view, MotionEvent motionEvent) {
56 int action = motionEvent.getActionMasked();
59 case MotionEvent.ACTION_DOWN:
63 case MotionEvent.ACTION_UP:
  /developers/samples/android/input/gestures/BasicGestureDetect/Application/src/main/java/com/example/android/basicgesturedetect/
BasicGestureDetectFragment.java 24 import android.view.MotionEvent;
59 public boolean onTouch(View view, MotionEvent motionEvent) {
60 gd.onTouchEvent(motionEvent);
  /developers/samples/android/ui/views/Elevation/ElevationBasic/Application/src/main/java/com/example/android/elevationbasic/
ElevationBasicFragment.java 22 import android.view.MotionEvent;
54 public boolean onTouch(View view, MotionEvent motionEvent) {
55 int action = motionEvent.getActionMasked();
58 case MotionEvent.ACTION_DOWN:
62 case MotionEvent.ACTION_UP:
  /development/samples/browseable/BasicGestureDetect/src/com.example.android.basicgesturedetect/
BasicGestureDetectFragment.java 24 import android.view.MotionEvent;
59 public boolean onTouch(View view, MotionEvent motionEvent) {
60 gd.onTouchEvent(motionEvent);
  /development/samples/browseable/ElevationBasic/src/com.example.android.elevationbasic/
ElevationBasicFragment.java 23 import android.view.MotionEvent;
55 public boolean onTouch(View view, MotionEvent motionEvent) {
56 int action = motionEvent.getActionMasked();
59 case MotionEvent.ACTION_DOWN:
63 case MotionEvent.ACTION_UP:
  /cts/tests/tests/view/src/android/view/cts/
MotionEventTest.java 27 import android.view.MotionEvent;
28 import android.view.MotionEvent.PointerCoords;
29 import android.view.MotionEvent.PointerProperties;
32 * Test {@link MotionEvent}.
35 private MotionEvent mMotionEvent1;
36 private MotionEvent mMotionEvent2;
47 private static final int EDGE_FLAGS = MotionEvent.EDGE_TOP;
56 mMotionEvent1 = MotionEvent.obtain(mDownTime, mEventTime,
57 MotionEvent.ACTION_MOVE, X_3F, Y_4F, META_STATE);
58 mMotionEvent2 = MotionEvent.obtain(mDownTime, mEventTime
    [all...]
  /development/samples/devbytes/ui/ImmersiveMode/src/main/java/com/example/android/immersive/
ImmersiveActivity.java 24 import android.view.MotionEvent;
55 public boolean onSingleTapUp(MotionEvent e) {
68 public boolean onTouch(View view, MotionEvent motionEvent) {
69 return clickDetector.onTouchEvent(motionEvent);
  /frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/util/
MockWindow.java 11 import android.view.MotionEvent;
169 public boolean superDispatchTouchEvent(MotionEvent motionEvent) {
174 public boolean superDispatchTrackballEvent(MotionEvent motionEvent) {
179 public boolean superDispatchGenericMotionEvent(MotionEvent motionEvent) {
  /packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
MediaPickerPanel.java 23 import android.view.MotionEvent;
346 public boolean onInterceptTouchEvent(final MotionEvent ev) {
372 * A copy of the MotionEvent that started the drag/swipe gesture
374 private MotionEvent mDownEvent;
413 public boolean onInterceptTouchEvent(final MotionEvent ev) {
415 case MotionEvent.ACTION_DOWN:
426 case MotionEvent.ACTION_MOVE: {
465 private boolean shouldAllowRecaptureTouch(MotionEvent ev) {
481 public boolean onTouch(final View view, final MotionEvent motionEvent) {
    [all...]
  /development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/
CardFlip.java 26 import android.view.MotionEvent;
139 public boolean onSingleTapUp(MotionEvent motionEvent) {
140 int stack = getStack(motionEvent);
146 public boolean onFling(MotionEvent motionEvent, MotionEvent motionEvent2, float v,
148 int stack = getStack(motionEvent);
158 /** Returns the appropriate stack corresponding to the MotionEvent. */
159 public int getStack(MotionEvent ev)
    [all...]
  /frameworks/base/core/java/android/inputmethodservice/
IInputMethodSessionWrapper.java 35 import android.view.MotionEvent;
234 MotionEvent motionEvent = (MotionEvent)event;
235 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) {
236 mInputMethodSession.dispatchTrackballEvent(seq, motionEvent, this);
238 mInputMethodSession.dispatchGenericMotionEvent(seq, motionEvent, this);
  /external/libgdx/extensions/gdx-controllers/gdx-controllers-android/src/com/badlogic/gdx/controllers/android/
AndroidControllers.java 21 import android.view.MotionEvent;
131 public boolean onGenericMotion (View view, MotionEvent motionEvent) {
132 if((motionEvent.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) == 0) return false;
133 AndroidController controller = controllerMap.get(motionEvent.getDeviceId());
136 final int historySize = motionEvent.getHistorySize();
139 float axisValue = motionEvent.getAxisValue(axisId);
  /frameworks/base/core/java/android/view/
InputEventConsistencyVerifier.java 177 final MotionEvent motionEvent = (MotionEvent)event;
178 if (motionEvent.isTouchEvent()) {
179 onTouchEvent(motionEvent, nestingLevel);
180 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) {
181 onTrackballEvent(motionEvent, nestingLevel);
183 onGenericMotionEvent(motionEvent, nestingLevel);
259 public void onTrackballEvent(MotionEvent event, int nestingLevel) {
271 case MotionEvent.ACTION_DOWN
    [all...]
  /frameworks/base/services/accessibility/java/com/android/server/accessibility/
MotionEventInjector.java 29 import android.view.MotionEvent;
53 private MotionEvent.PointerProperties[] mPointerProperties =
54 new MotionEvent.PointerProperties[MAX_POINTERS];
55 private MotionEvent.PointerCoords[] mPointerCoords =
56 new MotionEvent.PointerCoords[MAX_POINTERS];
79 public void injectEvents(List<MotionEvent> events,
89 public void onMotionEvent(MotionEvent event, MotionEvent rawEvent, int policyFlags) {
130 private void injectEventsMainThread(List<MotionEvent> events,
153 MotionEvent event = events.get(i)
    [all...]
  /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
XYPlotZoomPan.java 6 import android.view.MotionEvent;
228 public boolean onTouch(final View view, final MotionEvent event) {
229 switch (event.getAction() & MotionEvent.ACTION_MASK)
231 case MotionEvent.ACTION_DOWN: // start gesture
235 case MotionEvent.ACTION_POINTER_DOWN: // second finger
244 case MotionEvent.ACTION_POINTER_UP: // end zoom
247 case MotionEvent.ACTION_MOVE:
258 private float getXDistance(final MotionEvent event) {
262 private void pan(final MotionEvent motionEvent) {
    [all...]
  /packages/apps/Camera2/src/com/android/camera/widget/
FilmstripLayout.java 31 import android.view.MotionEvent;
230 public boolean onTouchEvent(MotionEvent ev) {
235 public boolean onInterceptTouchEvent(MotionEvent ev) {
236 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) {
250 public boolean onTouch(View view, MotionEvent motionEvent) {
253 motionEvent.setLocation(motionEvent.getX() + mFilmstripContentLayout.getX(),
254 motionEvent.getY() + mFilmstripContentLayout.getY());
255 mGestureRecognizer.onTouchEvent(motionEvent);
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmActivity.java 44 import android.view.MotionEvent;
343 public boolean onTouch(View view, MotionEvent motionEvent) {
345 LogUtils.v(LOGTAG, "onTouch ignored: %s", motionEvent);
352 final float x = motionEvent.getRawX() - contentLocation[0];
353 final float y = motionEvent.getRawY() - contentLocation[1];
368 switch (motionEvent.getActionMasked()) {
369 case MotionEvent.ACTION_DOWN:
370 LogUtils.v(LOGTAG, "onTouch started: %s", motionEvent);
375 case MotionEvent.ACTION_UP
    [all...]
  /developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/
FullscreenActivity.java 30 import android.view.MotionEvent;
105 AXIS_X(MotionEvent.AXIS_X),
106 AXIS_Y(MotionEvent.AXIS_Y),
107 AXIS_Z(MotionEvent.AXIS_Z),
108 AXIS_RZ(MotionEvent.AXIS_RZ),
109 AXIS_HAT_X(MotionEvent.AXIS_HAT_X),
110 AXIS_HAT_Y(MotionEvent.AXIS_HAT_Y),
111 AXIS_LTRIGGER(MotionEvent.AXIS_LTRIGGER),
112 AXIS_RTRIGGER(MotionEvent.AXIS_RTRIGGER),
113 AXIS_BRAKE(MotionEvent.AXIS_BRAKE)
    [all...]
  /frameworks/base/core/jni/
android_view_InputEventReceiver.cpp 296 MotionEvent* motionEvent = static_cast<MotionEvent*>(inputEvent);
297 if ((motionEvent->getAction() & AMOTION_EVENT_ACTION_MOVE) && outConsumedBatch) {
300 inputEventObj = android_view_MotionEvent_obtainAsCopy(env, motionEvent);
  /external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
BarPlotExampleActivity.java 32 import android.view.MotionEvent;
155 public boolean onTouch(View view, MotionEvent motionEvent) {
156 if(motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
157 onPlotClicked(new PointF(motionEvent.getX(), motionEvent.getY()));

Completed in 2518 milliseconds

1 2 3