Merge "Make functions private to keep TAPL design consistent" into udc-dev am: 051a1e35c8

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22722168

Change-Id: If7354b7305e46bcf2cb4393c7cd13ca1f7704289
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sebastián Franco
2023-04-20 00:17:15 +00:00
committed by Automerger Merge Worker
@@ -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);