/frameworks/base/services/java/com/android/server/wm/ |
StackTapPointerEventListener.java | 21 import android.view.MotionEvent; 48 public void onPointerEvent(MotionEvent motionEvent) { 49 final int action = motionEvent.getAction(); 50 switch (action & MotionEvent.ACTION_MASK) { 51 case MotionEvent.ACTION_DOWN: 52 mPointerId = motionEvent.getPointerId(0); 53 mDownX = motionEvent.getX(); 54 mDownY = motionEvent.getY(); 56 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);
|
/external/robolectric/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 | 184 MotionEvent* motionEvent = static_cast<MotionEvent*>(event); 186 EXPECT_EQ(deviceId, motionEvent->getDeviceId()); 187 EXPECT_EQ(source, motionEvent->getSource()); 188 EXPECT_EQ(action, motionEvent->getAction()); 189 EXPECT_EQ(flags, motionEvent->getFlags()); 190 EXPECT_EQ(edgeFlags, motionEvent->getEdgeFlags()); 191 EXPECT_EQ(metaState, motionEvent->getMetaState()); 192 EXPECT_EQ(buttonState, motionEvent->getButtonState()) [all...] |
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
LongPressDetectorTest.java | 11 import android.view.MotionEvent; 28 private MotionEvent motionEvent(int action, long downTime, long eventTime) { 29 return MotionEvent.obtain(downTime, eventTime, action, FAKE_COORD_X, FAKE_COORD_Y, 0); 48 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, eventTime); 58 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, eventTime) [all...] |
ContentViewGestureHandlerTest.java | 13 import android.view.MotionEvent; 14 import android.view.MotionEvent.PointerCoords; 15 import android.view.MotionEvent.PointerProperties; 43 MotionEvent mLastLongPress; 44 MotionEvent mLastShowPress; 45 MotionEvent mLastSingleTap; 46 MotionEvent mLastFling1; 56 public void onLongPress(MotionEvent e) { 57 mLastLongPress = MotionEvent.obtain(e); 62 public void onShowPress(MotionEvent e) [all...] |
/developers/build/prebuilts/gradle/BasicGestureDetect/BasicGestureDetectSample/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/input/gestures/BasicGestureDetect/BasicGestureDetectSample/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);
|
/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);
|
/external/chromium_org/third_party/WebKit/Source/modules/device_orientation/ |
DeviceMotionController.cpp | 93 DeviceMotionEvent* motionEvent = toDeviceMotionEvent(event); 94 return !motionEvent->deviceMotionData()->canProvideEventData();
|
/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/base/core/java/android/view/ |
InputEventConsistencyVerifier.java | 173 final MotionEvent motionEvent = (MotionEvent)event; 174 if (motionEvent.isTouchEvent()) { 175 onTouchEvent(motionEvent, nestingLevel); 176 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { 177 onTrackballEvent(motionEvent, nestingLevel); 179 onGenericMotionEvent(motionEvent, nestingLevel); 255 public void onTrackballEvent(MotionEvent event, int nestingLevel) { 267 case MotionEvent.ACTION_DOWN [all...] |
WindowManagerPolicy.java | 436 * 2. motionEvent will be recycled after onPointerEvent returns so if it is needed later a 439 public void onPointerEvent(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 | 36 import android.view.MotionEvent; 215 MotionEvent motionEvent = (MotionEvent)event; 216 if (motionEvent.isFromSource(InputDevice.SOURCE_CLASS_TRACKBALL)) { 217 mInputMethodSession.dispatchTrackballEvent(seq, motionEvent, this); 219 mInputMethodSession.dispatchGenericMotionEvent(seq, motionEvent, this);
|
/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);
|
/frameworks/native/libs/input/ |
InputTransport.cpp | 486 MotionEvent* motionEvent = factory->createMotionEvent(); 487 if (! motionEvent) return NO_MEMORY; 490 initializeMotionEvent(motionEvent, &mMsg); 492 *outEvent = motionEvent; 539 resampleTouchState(sampleTime, static_cast<MotionEvent*>(*outEvent), next); 549 MotionEvent* motionEvent = factory->createMotionEvent(); 550 if (! motionEvent) return NO_MEMORY; 561 addSample(motionEvent, &msg) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
MapViewTest.java | 5 import android.view.MotionEvent; 26 private MotionEvent sourceEvent; 41 sourceEvent = MotionEvent.obtain(0, 0, 0, 0, 0, 0); 81 dispatchTouchEvent(MotionEvent.ACTION_DOWN, 10, 10); 82 dispatchTouchEvent(MotionEvent.ACTION_UP, 11, 11); 90 dispatchTouchEvent(MotionEvent.ACTION_DOWN, 10, 10); 91 dispatchTouchEvent(MotionEvent.ACTION_MOVE, 11, 11); 92 dispatchTouchEvent(MotionEvent.ACTION_MOVE, 12, 12); 93 dispatchTouchEvent(MotionEvent.ACTION_UP, 11, 11); 101 dispatchTouchEvent(MotionEvent.ACTION_DOWN, 10, 10) [all...] |
ViewTest.java | 288 MotionEvent event = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 12f, 34f, 0); 299 public boolean onTouch(View view, MotionEvent motionEvent) { 303 MotionEvent event = MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_DOWN, 12f, 34f, 0); 312 public boolean onTouch(View view, MotionEvent motionEvent) { [all...] |
/frameworks/base/services/input/ |
InputDispatcher.cpp | [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
InstrumentationTest.java | 45 import android.view.MotionEvent; 173 MotionEvent orig = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 178 MotionEvent motionEvent = mActivity.getMotionEvent(); 179 assertEquals(orig.getMetaState(), motionEvent.getMetaState()); 180 assertEquals(orig.getEventTime(), motionEvent.getEventTime()); 181 assertEquals(orig.getDownTime(), motionEvent.getDownTime()); 314 MotionEvent orig = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN [all...] |
/frameworks/base/services/java/com/android/server/accessibility/ |
AccessibilityInputFilter.java | 29 import android.view.MotionEvent; 148 if (event instanceof MotionEvent 150 MotionEvent motionEvent = (MotionEvent) event; 151 onMotionEvent(motionEvent, policyFlags); 161 private void onMotionEvent(MotionEvent event, int policyFlags) { 185 if (event.getActionMasked() == MotionEvent.ACTION_SCROLL) { 192 if (event.getActionMasked() != MotionEvent.ACTION_DOWN) { 200 if (event.getActionMasked() != MotionEvent.ACTION_HOVER_ENTER) [all...] |
/frameworks/base/services/jni/ |
com_android_server_input_InputManagerService.cpp | 755 static_cast<const MotionEvent*>(inputEvent)); [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
PhoneWindowManager.java | 85 import android.view.MotionEvent; 311 public void onPointerEvent(MotionEvent motionEvent) { 313 mPointerLocationView.addPointerEvent(motionEvent); [all...] |