/external/skia/platform_tools/android/apps/sample_app/src/main/java/com/skia/ |
SkiaSampleView.java | 20 import android.view.MotionEvent; 47 public boolean onTouchEvent(MotionEvent event) { 53 int action = event.getAction() & MotionEvent.ACTION_MASK; 55 case MotionEvent.ACTION_POINTER_UP: 56 action = MotionEvent.ACTION_UP; 58 case MotionEvent.ACTION_POINTER_DOWN: 59 action = MotionEvent.ACTION_DOWN;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
KeyButtonView.java | 38 import android.view.MotionEvent; 172 public boolean onTouchEvent(MotionEvent ev) { 175 if (action == MotionEvent.ACTION_DOWN) { 183 case MotionEvent.ACTION_DOWN: 196 case MotionEvent.ACTION_MOVE: 204 case MotionEvent.ACTION_CANCEL: 211 case MotionEvent.ACTION_UP:
|
/packages/apps/Camera2/tests_camera/src/com/android/camera/activity/ |
CameraTestCase.java | 29 import android.view.MotionEvent; 195 MotionEvent down = MotionEvent.obtain(0, 0, 196 MotionEvent.ACTION_DOWN, x, y, 0, 0, 0, 0, 0, 0, 0); 197 MotionEvent up = MotionEvent.obtain(0, 0, 198 MotionEvent.ACTION_UP, x, y, 0, 0, 0, 0, 0, 0, 0);
|
/frameworks/base/cmds/input/src/com/android/commands/input/ |
Input.java | 25 import android.view.MotionEvent; 197 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, x, y, 1.0f); 198 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, now, x, y, 0.0f); 206 injectMotionEvent(inputSource, MotionEvent.ACTION_DOWN, now, x1, y1, 1.0f); 212 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, lerp(x1, x2, alpha), 216 injectMotionEvent(inputSource, MotionEvent.ACTION_UP, now, x2, y2, 0.0f); 228 injectMotionEvent(inputSource, MotionEvent.ACTION_MOVE, now, dx, dy, 0.0f); 250 * Builds a MotionEvent and injects it into the event stream. 253 * @param action the MotionEvent.ACTION_* for the event 265 MotionEvent event = MotionEvent.obtain(when, when, action, x, y, pressure, DEFAULT_SIZE [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
RecentsViewTouchHandler.java | 23 import android.view.MotionEvent; 131 public boolean onInterceptTouchEvent(MotionEvent ev) { 137 public boolean onTouchEvent(MotionEvent ev) { 205 private void handleTouchEvent(MotionEvent ev) { 208 case MotionEvent.ACTION_DOWN: 211 case MotionEvent.ACTION_MOVE: { 258 case MotionEvent.ACTION_UP: 259 case MotionEvent.ACTION_CANCEL: { 261 boolean cancelled = action == MotionEvent.ACTION_CANCEL;
|
/frameworks/base/services/core/java/com/android/server/policy/ |
EnableAccessibilityController.java | 40 import android.view.MotionEvent; 159 public boolean onInterceptTouchEvent(MotionEvent event) { 160 if (event.getActionMasked() == MotionEvent.ACTION_POINTER_DOWN 175 public boolean onTouchEvent(MotionEvent event) { 179 if (action == MotionEvent.ACTION_UP) { 185 case MotionEvent.ACTION_POINTER_DOWN: { 190 case MotionEvent.ACTION_MOVE: { 202 case MotionEvent.ACTION_POINTER_UP: 203 case MotionEvent.ACTION_CANCEL: {
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
AutoScrollHelper.java | 24 import android.view.MotionEvent; 455 public boolean onTouch(View v, MotionEvent event) { 462 case MotionEvent.ACTION_DOWN: 466 case MotionEvent.ACTION_MOVE: 479 case MotionEvent.ACTION_UP: 480 case MotionEvent.ACTION_CANCEL: 673 * Sends a {@link MotionEvent#ACTION_CANCEL} event to the target view, 678 final MotionEvent cancel = MotionEvent.obtain( 679 eventTime, eventTime, MotionEvent.ACTION_CANCEL, 0, 0, 0) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/ |
TouchPointView.java | 25 import android.view.MotionEvent; 62 public boolean onTouchEvent(MotionEvent event) { 64 if (event.getActionMasked() == MotionEvent.ACTION_UP) {
|
/cts/hostsidetests/services/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/ |
DragSource.java | 26 import android.view.MotionEvent; 75 public boolean onTouch(View v, MotionEvent event) { 76 if (event.getAction() != MotionEvent.ACTION_DOWN) {
|
/developers/build/prebuilts/gradle/SkeletonWearableApp/Wearable/src/main/java/com/example/android/google/wearable/app/ |
MainActivity.java | 31 import android.view.MotionEvent; 58 public boolean dispatchTouchEvent(MotionEvent event) { 64 public void onLongPress(MotionEvent event) {
|
/developers/samples/android/wearable/wear/SkeletonWearableApp/Wearable/src/main/java/com/example/android/google/wearable/app/ |
MainActivity.java | 31 import android.view.MotionEvent; 58 public boolean dispatchTouchEvent(MotionEvent event) { 64 public void onLongPress(MotionEvent event) {
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeySourceRandom.java | 26 import android.view.MotionEvent; 275 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_DOWN) 286 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_MOVE) 296 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_POINTER_DOWN 297 | (1 << MotionEvent.ACTION_POINTER_INDEX_SHIFT)) 307 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_MOVE) 315 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_POINTER_UP 316 | (1 << MotionEvent.ACTION_POINTER_INDEX_SHIFT)) 323 mQ.addLast(new MonkeyTouchEvent(MotionEvent.ACTION_UP) 364 mQ.addLast(new MonkeyTrackballEvent(MotionEvent.ACTION_MOVE [all...] |
/development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/ |
MainActivity.java | 31 import android.view.MotionEvent; 58 public boolean dispatchTouchEvent(MotionEvent event) { 64 public void onLongPress(MotionEvent event) {
|
/frameworks/base/core/java/android/view/ |
WindowCallbackWrapper.java | 52 public boolean dispatchTouchEvent(MotionEvent event) { 57 public boolean dispatchTrackballEvent(MotionEvent event) { 62 public boolean dispatchGenericMotionEvent(MotionEvent event) {
|
MotionEvent.java | 56 * The MotionEvent class provides many methods to query the position and other properties of 92 * void printSamples(MotionEvent ev) { 112 * The interpretation of the contents of a MotionEvent varies significantly depending 168 public final class MotionEvent extends InputEvent implements Parcelable { 177 * a pointer id inside a {@link MotionEvent}. 257 * {@link View#onGenericMotionEvent(MotionEvent)} rather than 258 * {@link View#onTouchEvent(MotionEvent)}. 273 * {@link View#onGenericMotionEvent(MotionEvent)} rather than 274 * {@link View#onTouchEvent(MotionEvent)}. 286 * {@link View#onGenericMotionEvent(MotionEvent)} rather tha [all...] |
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
BallsView.java | 40 import android.view.MotionEvent; 74 public boolean onTouchEvent(MotionEvent ev) 80 } else if (act == MotionEvent.ACTION_POINTER_UP) {
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
BottomSheetBehaviorTouchTest.java | 32 import android.view.MotionEvent; 54 public boolean onTouch(View v, MotionEvent event) { 56 case MotionEvent.ACTION_DOWN:
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
DragAndDropActivity.java | 27 import android.view.MotionEvent; 111 public boolean onTouch(View v, MotionEvent event) { 112 if (MotionEventCompat.getActionMasked(event) == MotionEvent.ACTION_DOWN) {
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
BottomBar.java | 28 import android.view.MotionEvent; 182 public boolean onTouch(View v, MotionEvent event) { 183 if (MotionEvent.ACTION_DOWN == event.getActionMasked()) { 185 } else if (MotionEvent.ACTION_UP == event.getActionMasked() || 186 MotionEvent.ACTION_CANCEL == event.getActionMasked()) { 188 } else if (MotionEvent.ACTION_MOVE == event.getActionMasked()) { 202 public boolean onTouch(View v, MotionEvent event) { 203 if (MotionEvent.ACTION_DOWN == event.getActionMasked()) { 205 } else if (MotionEvent.ACTION_UP == event.getActionMasked() || 206 MotionEvent.ACTION_CANCEL == event.getActionMasked()) [all...] |
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
CalculatorPadViewPager.java | 24 import android.view.MotionEvent; 113 public boolean onInterceptTouchEvent(MotionEvent ev) { 117 if (!shouldIntercept && ev.getActionMasked() == MotionEvent.ACTION_DOWN) {
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
IndicatorControlWheel.java | 32 import android.view.MotionEvent; 93 private MotionEvent mLastMotionEvent; 247 private void injectMotionEvent(int viewIndex, MotionEvent event, int action) { 254 public boolean dispatchTouchEvent(MotionEvent event) { 273 if ((index != mPressedIndex) || (action == MotionEvent.ACTION_DOWN)) { 275 injectMotionEvent(mPressedIndex, event, MotionEvent.ACTION_CANCEL); 280 if ((index != -1) && (action == MotionEvent.ACTION_MOVE)) { 282 injectMotionEvent(index, event, MotionEvent.ACTION_DOWN); 286 if ((index != -1) && (action != MotionEvent.ACTION_MOVE)) { 292 && (action == MotionEvent.ACTION_MOVE)) [all...] |
/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...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SwipeHelper.java | 28 import android.view.MotionEvent; 202 public boolean onInterceptTouchEvent(MotionEvent ev) { 205 case MotionEvent.ACTION_DOWN: 222 case MotionEvent.ACTION_MOVE: 250 case MotionEvent.ACTION_UP: 251 case MotionEvent.ACTION_CANCEL: 352 public boolean onTouchEvent(MotionEvent ev) { 359 case MotionEvent.ACTION_OUTSIDE: 360 case MotionEvent.ACTION_MOVE: 400 case MotionEvent.ACTION_UP [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SwipeHelper.java | 28 import android.view.MotionEvent; 122 private float getPos(MotionEvent ev) { 126 private float getPerpendicularPos(MotionEvent ev) { 252 public boolean onInterceptTouchEvent(final MotionEvent ev) { 256 case MotionEvent.ACTION_DOWN: 293 case MotionEvent.ACTION_MOVE: 311 case MotionEvent.ACTION_UP: 312 case MotionEvent.ACTION_CANCEL: 525 public boolean onTouchEvent(MotionEvent ev) { 549 case MotionEvent.ACTION_OUTSIDE [all...] |
/cts/tests/tests/transition/src/android/transition/cts/ |
TransitionActivity.java | 29 import android.view.MotionEvent;
|