Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 898db46c authored by Ikram Gabiyev's avatar Ikram Gabiyev
Browse files

Remove logs since PipPinchInTest is fixed

Remove the logs that were added to help debug PipPinchInTest
since it passes now.

Bug: 270984004
Test: atest WMShellFlickerTests:PipPinchInTest
Change-Id: I11cc57f2af1ef4330dcfa89497214ebeac1ca463
parent e1e4129f
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ import android.graphics.Region;
import android.hardware.input.InputManager;
import android.os.Looper;
import android.provider.DeviceConfig;
import android.util.Log;
import android.view.BatchedInputEventReceiver;
import android.view.Choreographer;
import android.view.InputChannel;
@@ -401,7 +400,6 @@ public class PipResizeGestureHandler {

    @VisibleForTesting
    void onPinchResize(MotionEvent ev) {
        Log.d(TAG, "onPinchResize: " + ev);
        int action = ev.getActionMasked();

        if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) {
@@ -445,10 +443,6 @@ public class PipResizeGestureHandler {
            mLastPoint.set(x0, y0);
            mLastSecondPoint.set(x1, y1);

            // TODO: remove logging once b/269505548 is resolved
            Log.d(TAG, "at onPinchResize (" + x0 + ", " + y0 + ")");
            Log.d(TAG, "at onPinchResize (" + x1 + ", " + y1 + ")");

            // Capture inputs
            if (!mThresholdCrossed
                    && (distanceBetween(mDownSecondPoint, mLastSecondPoint) > mTouchSlop
+0 −5
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ import android.annotation.NonNull;
import android.app.Instrumentation;
import android.app.UiAutomation;
import android.os.SystemClock;
import android.util.Log;
import android.view.InputDevice;
import android.view.InputEvent;
import android.view.MotionEvent;
@@ -33,7 +32,6 @@ import androidx.annotation.Nullable;
 * Injects gestures given an {@link Instrumentation} object.
 */
public class GestureHelper {
    private static final String TAG = GestureHelper.class.getSimpleName();
    // Inserted after each motion event injection.
    private static final int MOTION_EVENT_INJECTION_DELAY_MILLIS = 5;

@@ -210,9 +208,6 @@ public class GestureHelper {
            for (int j = 0; j < coords.length; j++) {
                coords[j].x += (endPoints[j].x - startPoints[j].x) / steps;
                coords[j].y += (endPoints[j].y - startPoints[j].y) / steps;

                // TODO: remove logging once b/269505548 is resolved
                Log.d(TAG, "(" + coords[j].x + ", " + coords[j].y + ")");
            }

            eventTime = SystemClock.uptimeMillis();