Revert "Add logs for move pointer"

This reverts commit b39abc99cd.

Reason for revert: Test no longer failing

Change-Id: I461d91c88290b820a75bbb4771663558162692ab
This commit is contained in:
Vinit Nayak
2023-11-30 20:05:46 +00:00
parent 7736ec8968
commit a2bf68fee2
2 changed files with 0 additions and 8 deletions

View File

@@ -160,7 +160,6 @@ public final class TestProtocol {
public static final String TWO_NEXUS_LAUNCHER_ACTIVITY_WHILE_UNLOCKING = "b/273347463";
public static final String TWO_TASKBAR_LONG_CLICKS = "b/262282528";
public static final String ICON_MISSING = "b/282963545";
public static final String WORKSPACE_LONG_PRESS = "b/311099513";
public static final String OVERVIEW_OVER_HOME = "b/279059025";
public static final String REQUEST_EMULATE_DISPLAY = "emulate-display";

View File

@@ -28,8 +28,6 @@ import static com.android.launcher3.tapl.Folder.FOLDER_CONTENT_RES_ID;
import static com.android.launcher3.tapl.TestHelpers.getOverviewPackageName;
import static com.android.launcher3.testing.shared.TestProtocol.NORMAL_STATE_ORDINAL;
import static com.android.launcher3.testing.shared.TestProtocol.REQUEST_NUM_ALL_APPS_COLUMNS;
import static com.android.launcher3.testing.shared.TestProtocol.WORKSPACE_LONG_PRESS;
import static com.android.launcher3.testing.shared.TestProtocol.testLogD;
import android.app.ActivityManager;
import android.app.Instrumentation;
@@ -1707,7 +1705,6 @@ public final class LauncherInstrumentation {
final Point start = new Point(startX, startY);
final Point end = new Point(endX, endY);
sendPointer(downTime, downTime, MotionEvent.ACTION_DOWN, start, gestureScope);
testLogD(WORKSPACE_LONG_PRESS, "Sent ACTION_DOWN");
if (mTrackpadGestureType != TrackpadGestureType.NONE) {
sendPointer(downTime, downTime, getPointerAction(MotionEvent.ACTION_POINTER_DOWN, 1),
start, gestureScope);
@@ -1920,10 +1917,6 @@ public final class LauncherInstrumentation {
long steps = duration / GESTURE_STEP_MS;
long currentTime = startTime;
testLogD(WORKSPACE_LONG_PRESS, "movingPointer" +
" downTime: " + downTime + " startTime: " + startTime +
" duration: " + duration + " isDecel? " + isDecelerating +
" gestureScope: " + gestureScope);
if (isDecelerating) {
// formula: V = V0 - D*T, assuming V = 0 when T = duration