From c610f26404b7b4e2062a806187b607ee30a9a6d7 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 11 Dec 2020 19:40:55 -0800 Subject: [PATCH] Removing unused tracing Test: presubmit Bug: 139891609 Change-Id: I30b432d329d6606b3d955409c167bddbacce8a37 --- .../uioverrides/QuickstepLauncher.java | 8 ------- .../NavBarToHomeTouchController.java | 20 ---------------- ...ButtonNavbarToOverviewTouchController.java | 8 ------- .../android/quickstep/AbsSwipeUpHandler.java | 8 ------- .../quickstep/TouchInteractionService.java | 4 ---- .../inputconsumers/OverviewInputConsumer.java | 4 ---- .../quickstep/util/MotionPauseDetector.java | 14 ----------- .../launcher3/testing/TestProtocol.java | 1 - .../AbstractStateChangeTouchController.java | 3 --- .../launcher3/touch/BaseSwipeDetector.java | 5 ---- .../touch/SingleAxisSwipeDetector.java | 11 --------- .../launcher3/views/BaseDragLayer.java | 8 ------- .../launcher3/views/FloatingIconView.java | 10 -------- .../android/launcher3/views/ListenerView.java | 23 ------------------- 14 files changed, 127 deletions(-) diff --git a/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java b/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java index 950598cba5..2d704f801e 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java +++ b/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java @@ -35,7 +35,6 @@ import static com.android.systemui.shared.system.ActivityManagerWrapper.CLOSE_SY import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Configuration; -import android.util.Log; import android.view.View; import com.android.launcher3.BaseQuickstepLauncher; @@ -55,7 +54,6 @@ import com.android.launcher3.model.BgDataModel.FixedContainerItems; import com.android.launcher3.model.data.ItemInfo; import com.android.launcher3.popup.SystemShortcut; import com.android.launcher3.statemanager.StateManager.AtomicAnimationFactory; -import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.uioverrides.states.QuickstepAtomicAnimationFactory; import com.android.launcher3.uioverrides.touchcontrollers.LandscapeEdgeSwipeController; import com.android.launcher3.uioverrides.touchcontrollers.NavBarToHomeTouchController; @@ -273,9 +271,6 @@ public class QuickstepLauncher extends BaseQuickstepLauncher { @Override public TouchController[] createTouchControllers() { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "createTouchControllers.1"); - } Mode mode = SysUINavigationMode.getMode(this); ArrayList list = new ArrayList<>(); @@ -283,9 +278,6 @@ public class QuickstepLauncher extends BaseQuickstepLauncher { if (mode == NO_BUTTON) { list.add(new NoButtonQuickSwitchTouchController(this)); list.add(new NavBarToHomeTouchController(this)); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "createTouchControllers.2"); - } list.add(new NoButtonNavbarToOverviewTouchController(this)); } else { if (getDeviceProfile().isVerticalBarLayout()) { diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NavBarToHomeTouchController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NavBarToHomeTouchController.java index f73e2f2f0a..6b9c34028a 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NavBarToHomeTouchController.java +++ b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NavBarToHomeTouchController.java @@ -29,7 +29,6 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH import static com.android.systemui.shared.system.ActivityManagerWrapper.CLOSE_SYSTEM_WINDOWS_REASON_RECENTS; import android.animation.ValueAnimator; -import android.util.Log; import android.view.MotionEvent; import android.view.animation.Interpolator; @@ -47,7 +46,6 @@ import com.android.launcher3.compat.AccessibilityManagerCompat; import com.android.launcher3.config.FeatureFlags; import com.android.launcher3.graphics.OverviewScrim; import com.android.launcher3.states.StateAnimationConfig; -import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.touch.SingleAxisSwipeDetector; import com.android.launcher3.util.TouchController; import com.android.quickstep.TaskUtils; @@ -103,37 +101,19 @@ public class NavBarToHomeTouchController implements TouchController, } private boolean canInterceptTouch(MotionEvent ev) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "NavBarToHomeTouchController.canInterceptTouch " - + ev); - } boolean cameFromNavBar = (ev.getEdgeFlags() & Utilities.EDGE_NAV_BAR) != 0; if (!cameFromNavBar) { return false; } if (mStartState.overviewUi || mStartState == ALL_APPS) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, - "NavBarToHomeTouchController.canInterceptTouch true 1 " - + mStartState.overviewUi + " " + (mStartState == ALL_APPS)); - } return true; } int typeToClose = ENABLE_ALL_APPS_EDU.get() ? TYPE_ALL & ~TYPE_ALL_APPS_EDU : TYPE_ALL; if (AbstractFloatingView.getTopOpenViewWithType(mLauncher, typeToClose) != null) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, - "NavBarToHomeTouchController.canInterceptTouch true 2 " - + AbstractFloatingView.getTopOpenView(mLauncher), new Exception()); - } return true; } if (FeatureFlags.ASSISTANT_GIVES_LAUNCHER_FOCUS.get() && AssistantUtilities.isExcludedAssistantRunning()) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, - "NavBarToHomeTouchController.canInterceptTouch true 3"); - } return true; } return false; diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java index 702c519ace..addfe927e8 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java +++ b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java @@ -37,7 +37,6 @@ import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_O import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.graphics.PointF; -import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; @@ -49,7 +48,6 @@ import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.anim.Interpolators; import com.android.launcher3.graphics.OverviewScrim; import com.android.launcher3.states.StateAnimationConfig; -import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.util.VibratorWrapper; import com.android.quickstep.SystemUiProxy; import com.android.quickstep.util.AnimatorControllerWithResistance; @@ -90,9 +88,6 @@ public class NoButtonNavbarToOverviewTouchController extends PortraitStatesTouch mRecentsView = l.getOverviewPanel(); mMotionPauseDetector = new MotionPauseDetector(l); mMotionPauseMinDisplacement = ViewConfiguration.get(l).getScaledTouchSlop(); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "NoButtonNavbarToOverviewTouchController.ctor"); - } } @Override @@ -221,9 +216,6 @@ public class NoButtonNavbarToOverviewTouchController extends PortraitStatesTouch @Override public boolean onDrag(float yDisplacement, float xDisplacement, MotionEvent event) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "NoButtonNavbarToOverviewTouchController"); - } if (mStartedOverview) { if (!mReachedOverview) { mStartDisplacement.set(xDisplacement, yDisplacement); diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 4ed2425690..41b8901c19 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -59,7 +59,6 @@ import android.graphics.PointF; import android.graphics.Rect; import android.os.Build; import android.os.SystemClock; -import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.View.OnApplyWindowInsetsListener; @@ -80,7 +79,6 @@ import com.android.launcher3.anim.Interpolators; import com.android.launcher3.logging.StatsLogManager; import com.android.launcher3.logging.StatsLogManager.StatsLogger; import com.android.launcher3.statemanager.StatefulActivity; -import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.tracing.InputConsumerProto; import com.android.launcher3.tracing.SwipeHandlerProto; import com.android.launcher3.util.TraceHelper; @@ -324,13 +322,7 @@ public abstract class AbsSwipeUpHandler, Q extends protected boolean onActivityInit(Boolean alreadyOnHome) { T createdActivity = mActivityInterface.getCreatedActivity(); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "BaseSwipeUpHandler.1"); - } if (createdActivity != null) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "BaseSwipeUpHandler.2"); - } initTransitionEndpoints(createdActivity.getDeviceProfile()); } final T activity = mActivityInterface.getCreatedActivity(); diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index 8ce1f51400..1e0a00aec8 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java @@ -627,10 +627,6 @@ public class TouchInteractionService extends Service implements PluginListener> ev.setEdgeFlags(flags | Utilities.EDGE_NAV_BAR); } ev.offsetLocation(-mLocationOnScreen[0], -mLocationOnScreen[1]); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "OverviewInputConsumer"); - } boolean handled = mTarget.proxyTouchEvent(ev, mStartingInActivityBounds); ev.offsetLocation(mLocationOnScreen[0], mLocationOnScreen[1]); ev.setEdgeFlags(flags); diff --git a/quickstep/src/com/android/quickstep/util/MotionPauseDetector.java b/quickstep/src/com/android/quickstep/util/MotionPauseDetector.java index da5f59e755..8cde5f2659 100644 --- a/quickstep/src/com/android/quickstep/util/MotionPauseDetector.java +++ b/quickstep/src/com/android/quickstep/util/MotionPauseDetector.java @@ -19,14 +19,12 @@ import static com.android.launcher3.config.FeatureFlags.ENABLE_SYSTEM_VELOCITY_P import android.content.Context; import android.content.res.Resources; -import android.util.Log; import android.view.MotionEvent; import android.view.VelocityTracker; import com.android.launcher3.Alarm; import com.android.launcher3.R; import com.android.launcher3.compat.AccessibilityManagerCompat; -import com.android.launcher3.testing.TestProtocol; /** * Given positions along x- or y-axis, tracks velocity and acceleration and determines when there is @@ -87,9 +85,6 @@ public class MotionPauseDetector { mSpeedSlow = res.getDimension(R.dimen.motion_pause_detector_speed_slow); mSpeedSomewhatFast = res.getDimension(R.dimen.motion_pause_detector_speed_somewhat_fast); mSpeedFast = res.getDimension(R.dimen.motion_pause_detector_speed_fast); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "creating alarm"); - } mForcePauseTimeout = new Alarm(); mForcePauseTimeout.setOnAlarmListener(alarm -> updatePaused(true /* isPaused */)); mMakePauseHarderToTrigger = makePauseHarderToTrigger; @@ -126,9 +121,6 @@ public class MotionPauseDetector { * @param pointerIndex Index for the pointer being tracked in the motion event */ public void addPosition(MotionEvent ev, int pointerIndex) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "setting alarm"); - } mForcePauseTimeout.setAlarm(mMakePauseHarderToTrigger ? HARDER_TRIGGER_TIMEOUT : FORCE_PAUSE_TIMEOUT); @@ -176,9 +168,6 @@ public class MotionPauseDetector { } private void updatePaused(boolean isPaused) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "updatePaused: " + isPaused); - } if (mDisallowPause) { isPaused = false; } @@ -207,9 +196,6 @@ public class MotionPauseDetector { setOnMotionPauseListener(null); mIsPaused = mHasEverBeenPaused = false; mSlowStartTime = 0; - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "canceling alarm"); - } mForcePauseTimeout.cancelAlarm(); } diff --git a/src/com/android/launcher3/testing/TestProtocol.java b/src/com/android/launcher3/testing/TestProtocol.java index b2d008119e..218172b6b2 100644 --- a/src/com/android/launcher3/testing/TestProtocol.java +++ b/src/com/android/launcher3/testing/TestProtocol.java @@ -103,7 +103,6 @@ public final class TestProtocol { public static final String REQUEST_MOCK_SENSOR_ROTATION = "mock-sensor-rotation"; public static final String PERMANENT_DIAG_TAG = "TaplTarget"; - public static final String PAUSE_NOT_DETECTED = "b/139891609"; public static final String OVERIEW_NOT_ALLAPPS = "b/156095088"; public static final String NO_SWIPE_TO_HOME = "b/158017601"; public static final String WORK_PROFILE_REMOVED = "b/159671700"; diff --git a/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java b/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java index 7c02f3dc93..23baaf08cc 100644 --- a/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java +++ b/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java @@ -172,9 +172,6 @@ public abstract class AbstractStateChangeTouchController @Override public final boolean onControllerTouchEvent(MotionEvent ev) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "onControllerTouchEvent"); - } return mDetector.onTouchEvent(ev); } diff --git a/src/com/android/launcher3/touch/BaseSwipeDetector.java b/src/com/android/launcher3/touch/BaseSwipeDetector.java index 01b33d8bf3..1276ece7e2 100644 --- a/src/com/android/launcher3/touch/BaseSwipeDetector.java +++ b/src/com/android/launcher3/touch/BaseSwipeDetector.java @@ -26,8 +26,6 @@ import android.view.ViewConfiguration; import androidx.annotation.NonNull; import androidx.annotation.VisibleForTesting; -import com.android.launcher3.testing.TestProtocol; - import java.util.LinkedList; import java.util.Queue; @@ -175,9 +173,6 @@ public abstract class BaseSwipeDetector { if (mState != ScrollState.DRAGGING && shouldScrollStart(mDisplacement)) { setState(ScrollState.DRAGGING); } - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "before report dragging"); - } if (mState == ScrollState.DRAGGING) { reportDragging(ev); } diff --git a/src/com/android/launcher3/touch/SingleAxisSwipeDetector.java b/src/com/android/launcher3/touch/SingleAxisSwipeDetector.java index 875eefbc58..d72548619f 100644 --- a/src/com/android/launcher3/touch/SingleAxisSwipeDetector.java +++ b/src/com/android/launcher3/touch/SingleAxisSwipeDetector.java @@ -17,7 +17,6 @@ package com.android.launcher3.touch; import android.content.Context; import android.graphics.PointF; -import android.util.Log; import android.view.MotionEvent; import android.view.ViewConfiguration; @@ -25,7 +24,6 @@ import androidx.annotation.NonNull; import androidx.annotation.VisibleForTesting; import com.android.launcher3.Utilities; -import com.android.launcher3.testing.TestProtocol; /** * One dimensional scroll/drag/swipe gesture detector (either HORIZONTAL or VERTICAL). @@ -105,11 +103,6 @@ public class SingleAxisSwipeDetector extends BaseSwipeDetector { super(config, isRtl); mListener = l; mDir = dir; - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "SingleAxisSwipeDetector.ctor " - + l.getClass().getSimpleName() - + " @ " + android.util.Log.getStackTraceString(new Throwable())); - } } public void setDetectableScrollConditions(int scrollDirectionFlags, boolean ignoreSlop) { @@ -161,10 +154,6 @@ public class SingleAxisSwipeDetector extends BaseSwipeDetector { @Override protected void reportDraggingInternal(PointF displacement, MotionEvent event) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "SingleAxisSwipeDetector " - + mListener.getClass().getSimpleName()); - } mListener.onDrag(mDir.extractDirection(displacement), mDir.extractOrthogonalDirection(displacement), event); } diff --git a/src/com/android/launcher3/views/BaseDragLayer.java b/src/com/android/launcher3/views/BaseDragLayer.java index 2be827b01a..5464dd8ec9 100644 --- a/src/com/android/launcher3/views/BaseDragLayer.java +++ b/src/com/android/launcher3/views/BaseDragLayer.java @@ -33,7 +33,6 @@ import android.graphics.Rect; import android.graphics.RectF; import android.os.Build; import android.util.AttributeSet; -import android.util.Log; import android.util.Property; import android.view.MotionEvent; import android.view.View; @@ -49,7 +48,6 @@ import com.android.launcher3.AbstractFloatingView; import com.android.launcher3.InsettableFrameLayout; import com.android.launcher3.R; import com.android.launcher3.Utilities; -import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.util.MultiValueAlpha; import com.android.launcher3.util.MultiValueAlpha.AlphaProperty; import com.android.launcher3.util.SimpleBroadcastReceiver; @@ -191,12 +189,6 @@ public abstract class BaseDragLayer } private TouchController findControllerToHandleTouch(MotionEvent ev) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "findControllerToHandleTouch ev=" + ev - + ", isEventInLauncher=" + isEventInLauncher(ev) - + ", topOpenView=" + AbstractFloatingView.getTopOpenView(mActivity)); - } - AbstractFloatingView topView = AbstractFloatingView.getTopOpenView(mActivity); if (topView != null && (isEventInLauncher(ev) || topView.canInterceptEventsInSystemGestureRegion()) diff --git a/src/com/android/launcher3/views/FloatingIconView.java b/src/com/android/launcher3/views/FloatingIconView.java index d9a14e9e3f..1857c5a7b4 100644 --- a/src/com/android/launcher3/views/FloatingIconView.java +++ b/src/com/android/launcher3/views/FloatingIconView.java @@ -55,7 +55,6 @@ import com.android.launcher3.icons.LauncherIcons; import com.android.launcher3.model.data.ItemInfo; import com.android.launcher3.popup.SystemShortcut; import com.android.launcher3.shortcuts.DeepShortcutView; -import com.android.launcher3.testing.TestProtocol; /** * A view that is created to look like another view with the purpose of creating fluid animations. @@ -534,11 +533,6 @@ public class FloatingIconView extends FrameLayout implements view.setVisibility(INVISIBLE); parent.addView(view); dragLayer.addView(view.mListenerView); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "getFloatingIconView. listenerView " - + "added to dragLayer. listenerView=" + view.mListenerView + ", fiv=" + view, - new Exception()); - } view.mListenerView.setListener(view::fastFinish); view.mEndRunnable = () -> { @@ -578,10 +572,6 @@ public class FloatingIconView extends FrameLayout implements private void finish(DragLayer dragLayer) { ((ViewGroup) dragLayer.getParent()).removeView(this); dragLayer.removeView(mListenerView); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "listenerView removed from dragLayer. " - + "listenerView=" + mListenerView + ", fiv=" + this, new Exception()); - } recycle(); mLauncher.getViewCache().recycleView(R.layout.floating_icon_view, this); } diff --git a/src/com/android/launcher3/views/ListenerView.java b/src/com/android/launcher3/views/ListenerView.java index 6e3f0ce690..b2df0ee805 100644 --- a/src/com/android/launcher3/views/ListenerView.java +++ b/src/com/android/launcher3/views/ListenerView.java @@ -17,13 +17,11 @@ package com.android.launcher3.views; import android.content.Context; import android.util.AttributeSet; -import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import com.android.launcher3.AbstractFloatingView; -import com.android.launcher3.testing.TestProtocol; /** * An invisible AbstractFloatingView that can run a callback when it is being closed. @@ -38,20 +36,12 @@ public class ListenerView extends AbstractFloatingView { } public void setListener(Runnable listener) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "ListenerView setListener lv=" + this - + ", listener=" + listener, new Exception()); - } mCloseListener = listener; } @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "ListenerView onAttachedToWindow lv=" + this, - new Exception()); - } mIsOpen = true; } @@ -59,19 +49,10 @@ public class ListenerView extends AbstractFloatingView { protected void onDetachedFromWindow() { super.onDetachedFromWindow(); mIsOpen = false; - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "ListenerView onDetachedFromView lv=" + this, - new Exception()); - } } @Override protected void handleClose(boolean animate) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "ListenerView handeClose lv=" + this - + ", mIsOpen=" + mIsOpen + ", mCloseListener=" + mCloseListener - + ", getParent()=" + getParent(), new Exception()); - } if (mIsOpen) { if (mCloseListener != null) { mCloseListener.run(); @@ -91,10 +72,6 @@ public class ListenerView extends AbstractFloatingView { @Override public boolean onControllerInterceptTouchEvent(MotionEvent ev) { - if (TestProtocol.sDebugTracing) { - Log.d(TestProtocol.PAUSE_NOT_DETECTED, "ListenerView touchEvent lv=" + this - + ", ev=" + ev, new Exception()); - } if (ev.getAction() == MotionEvent.ACTION_DOWN) { handleClose(false); }