/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
SwipeToDismissActivity.java | 28 import android.view.MotionEvent; 152 public boolean onTouch(View v, MotionEvent event) { 153 if (MotionEventCompat.getActionMasked(event) == MotionEvent.ACTION_DOWN) {
|
/packages/apps/Calculator/src/com/android/calculator2/ |
CalculatorEditText.java | 32 import android.view.MotionEvent; 103 public boolean onTouchEvent(MotionEvent event) { 104 if (event.getActionMasked() == MotionEvent.ACTION_UP) {
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
ModeSelectorItem.java | 24 import android.view.MotionEvent; 103 public boolean dispatchTouchEvent(MotionEvent ev) { 110 public boolean onTouchEvent(MotionEvent ev) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
SlotView.java | 22 import android.view.MotionEvent; 202 protected boolean onTouch(MotionEvent event) { 206 case MotionEvent.ACTION_DOWN: 210 case MotionEvent.ACTION_UP: 631 public void onShowPress(MotionEvent e) { 653 public boolean onDown(MotionEvent e) { 658 public boolean onFling(MotionEvent e1, 659 MotionEvent e2, float velocityX, float velocityY) { 671 public boolean onScroll(MotionEvent e1, 672 MotionEvent e2, float distanceX, float distanceY) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
DragController.java | 30 import android.view.MotionEvent; 418 public boolean onInterceptTouchEvent(MotionEvent ev) { 435 case MotionEvent.ACTION_MOVE: 437 case MotionEvent.ACTION_DOWN: 443 case MotionEvent.ACTION_UP: 455 case MotionEvent.ACTION_CANCEL: 564 public boolean onTouchEvent(MotionEvent ev) { 578 case MotionEvent.ACTION_DOWN: 590 case MotionEvent.ACTION_MOVE: 593 case MotionEvent.ACTION_UP [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
DragController.java | 31 import android.view.MotionEvent; 434 public boolean onInterceptTouchEvent(MotionEvent ev) { 455 case MotionEvent.ACTION_MOVE: 457 case MotionEvent.ACTION_DOWN: 463 case MotionEvent.ACTION_UP: 478 case MotionEvent.ACTION_CANCEL: 582 public boolean onTouchEvent(MotionEvent ev) { 596 case MotionEvent.ACTION_DOWN: 609 case MotionEvent.ACTION_MOVE: 612 case MotionEvent.ACTION_UP [all...] |
BaseRecyclerViewFastScrollBar.java | 29 import android.view.MotionEvent; 178 public void handleTouchEvent(MotionEvent ev, int downX, int downY, int lastY) { 184 case MotionEvent.ACTION_DOWN: 189 case MotionEvent.ACTION_MOVE: 218 case MotionEvent.ACTION_UP: 219 case MotionEvent.ACTION_CANCEL:
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
ContactIconView.java | 24 import android.view.MotionEvent; 86 public boolean onTouchEvent(MotionEvent event) { 87 if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {
|
/packages/apps/Stk/src/com/android/stk/ |
ToneDialog.java | 26 import android.view.MotionEvent; 148 public boolean onTouchEvent(MotionEvent event) { 150 case MotionEvent.ACTION_DOWN:
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
CarRecyclerView.java | 25 import android.view.MotionEvent; 94 public boolean onTouchEvent(MotionEvent e) { 100 if (action == MotionEvent.ACTION_UP) {
|
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/ |
IconEditor.java | 20 import android.view.MotionEvent; 72 public boolean onTouch(View v, MotionEvent event) { 73 if (event.getAction() == MotionEvent.ACTION_UP) {
|
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/ |
ListViewItemAnimations.java | 28 import android.view.MotionEvent; 95 public boolean onTouch(final View v, MotionEvent event) { 101 case MotionEvent.ACTION_DOWN: 109 case MotionEvent.ACTION_CANCEL: 113 case MotionEvent.ACTION_MOVE: 136 case MotionEvent.ACTION_UP:
|
/frameworks/base/core/java/android/text/method/ |
ArrowKeyMovementMethod.java | 24 import android.view.MotionEvent; 225 public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) { 230 if (action == MotionEvent.ACTION_UP) { 241 if (action == MotionEvent.ACTION_DOWN) { 258 if (action == MotionEvent.ACTION_MOVE) { 277 } else if (action == MotionEvent.ACTION_UP) {
|
/frameworks/base/core/java/android/widget/ |
HorizontalScrollView.java | 33 import android.view.MotionEvent; 448 public boolean onInterceptTouchEvent(MotionEvent ev) { 461 if ((action == MotionEvent.ACTION_MOVE) && (mIsBeingDragged)) { 469 switch (action & MotionEvent.ACTION_MASK) { 470 case MotionEvent.ACTION_MOVE: { 505 case MotionEvent.ACTION_DOWN: { 532 case MotionEvent.ACTION_CANCEL: 533 case MotionEvent.ACTION_UP: 541 case MotionEvent.ACTION_POINTER_DOWN: { 547 case MotionEvent.ACTION_POINTER_UP [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
CropView.java | 24 import android.view.MotionEvent; 223 public boolean onTouchEvent(MotionEvent event) { 225 final boolean pointerUp = action == MotionEvent.ACTION_POINTER_UP; 241 if (action == MotionEvent.ACTION_DOWN) { 248 } else if (action == MotionEvent.ACTION_UP) { 271 case MotionEvent.ACTION_MOVE:
|
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
DemoModeController.java | 29 import android.view.MotionEvent; 88 public boolean onTouch(View v, MotionEvent event) { 94 if (action == MotionEvent.ACTION_DOWN) { 106 if (action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_UP) { 111 if (action != MotionEvent.ACTION_MOVE) return false;
|
/frameworks/support/design/src/android/support/design/widget/ |
SwipeDismissBehavior.java | 24 import android.view.MotionEvent; 170 public boolean onInterceptTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) { 174 case MotionEvent.ACTION_DOWN: 179 case MotionEvent.ACTION_UP: 180 case MotionEvent.ACTION_CANCEL: 194 public boolean onTouchEvent(CoordinatorLayout parent, V child, MotionEvent event) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
GalleryActivity.java | 27 import android.view.MotionEvent; 256 public boolean onGenericMotionEvent(MotionEvent event) { 260 float maxX = event.getDevice().getMotionRange(MotionEvent.AXIS_X).getMax(); 261 float maxY = event.getDevice().getMotionRange(MotionEvent.AXIS_Y).getMax(); 269 MotionEvent touchEvent = MotionEvent.obtain(event.getDownTime(),
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageDraw.java | 21 import android.view.MotionEvent; 139 public boolean onTouchEvent(MotionEvent event) { 148 if (event.getAction() != MotionEvent.ACTION_DOWN) { 154 if (event.getAction() == MotionEvent.ACTION_DOWN) { 162 if (event.getAction() == MotionEvent.ACTION_MOVE) { 176 if (event.getAction() == MotionEvent.ACTION_UP) {
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
CropView.java | 25 import android.view.MotionEvent; 235 public boolean onTouchEvent(MotionEvent event) { 237 final boolean pointerUp = action == MotionEvent.ACTION_POINTER_UP; 253 if (action == MotionEvent.ACTION_DOWN) { 260 } else if (action == MotionEvent.ACTION_UP) { 283 case MotionEvent.ACTION_MOVE:
|
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
FixedAspectSurfaceView.java | 24 import android.view.MotionEvent; 150 public boolean onTouchEvent(MotionEvent event) {
|
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
FixedAspectSurfaceView.java | 24 import android.view.MotionEvent; 150 public boolean onTouchEvent(MotionEvent event) {
|
/development/samples/Home/src/com/example/android/home/ |
Wallpaper.java | 23 import android.view.MotionEvent; 111 public boolean onTouchEvent(MotionEvent event) {
|
/development/samples/Snake/src/com/example/android/snake/ |
Snake.java | 22 import android.view.MotionEvent; 80 public boolean onTouch(View v, MotionEvent event) {
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
FixedAspectSurfaceView.java | 24 import android.view.MotionEvent; 150 public boolean onTouchEvent(MotionEvent event) {
|