From c42520965f3a9f4fa68812eb77cd28c253bcfd8a Mon Sep 17 00:00:00 2001 From: Sebastian Franco Date: Tue, 18 Apr 2023 13:41:16 -0700 Subject: [PATCH] Make functions private to keep TAPL design consistent Bug: 266116487 Test: compiles Change-Id: I22b612e4bc1a7424af3702474b709426fcfcb6ef --- tests/tapl/com/android/launcher3/tapl/Workspace.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tapl/com/android/launcher3/tapl/Workspace.java b/tests/tapl/com/android/launcher3/tapl/Workspace.java index 1939dc6a52..7bb02cb518 100644 --- a/tests/tapl/com/android/launcher3/tapl/Workspace.java +++ b/tests/tapl/com/android/launcher3/tapl/Workspace.java @@ -433,7 +433,7 @@ public final class Workspace extends Home { } /** Returns the index of the current page */ - static int geCurrentPage(LauncherInstrumentation launcher) { + private static int geCurrentPage(LauncherInstrumentation launcher) { return launcher.getTestInfo(TestProtocol.REQUEST_WORKSPACE_CURRENT_PAGE_INDEX).getInt( TestProtocol.TEST_INFO_RESPONSE_FIELD); } @@ -602,8 +602,8 @@ public final class Workspace extends Home { * @param y * @return the finishing position of the drag. */ - static Point dragToGivenWorkspace(LauncherInstrumentation launcher, Point currentPosition, - int destinationWorkspaceIndex, int y) { + private static Point dragToGivenWorkspace(LauncherInstrumentation launcher, + Point currentPosition, int destinationWorkspaceIndex, int y) { final long downTime = SystemClock.uptimeMillis(); int displayX = launcher.getRealDisplaySize().x; int currentPage = Workspace.geCurrentPage(launcher);