Loading tests/tapl/com/android/launcher3/tapl/Workspace.java +6 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import androidx.test.uiautomator.By; import androidx.test.uiautomator.Direction; import androidx.test.uiautomator.UiObject2; import com.android.launcher3.ResourceUtils; import com.android.launcher3.testing.TestProtocol; /** Loading Loading @@ -59,7 +60,11 @@ public final class Workspace extends Home { verifyActiveContainer(); final UiObject2 hotseat = mHotseat; final Point start = hotseat.getVisibleCenter(); start.y = hotseat.getVisibleBounds().bottom - 1; int deviceHeight = mLauncher.getDevice().getDisplayHeight(); int bottomGestureMargin = ResourceUtils.getNavbarSize( ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, mLauncher.getResources()); int displayBottom = deviceHeight - bottomGestureMargin; start.y = displayBottom - 1; final int swipeHeight = mLauncher.getTestInfo( TestProtocol.REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT). getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); Loading Loading
tests/tapl/com/android/launcher3/tapl/Workspace.java +6 −1 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import androidx.test.uiautomator.By; import androidx.test.uiautomator.Direction; import androidx.test.uiautomator.UiObject2; import com.android.launcher3.ResourceUtils; import com.android.launcher3.testing.TestProtocol; /** Loading Loading @@ -59,7 +60,11 @@ public final class Workspace extends Home { verifyActiveContainer(); final UiObject2 hotseat = mHotseat; final Point start = hotseat.getVisibleCenter(); start.y = hotseat.getVisibleBounds().bottom - 1; int deviceHeight = mLauncher.getDevice().getDisplayHeight(); int bottomGestureMargin = ResourceUtils.getNavbarSize( ResourceUtils.NAVBAR_BOTTOM_GESTURE_SIZE, mLauncher.getResources()); int displayBottom = deviceHeight - bottomGestureMargin; start.y = displayBottom - 1; final int swipeHeight = mLauncher.getTestInfo( TestProtocol.REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT). getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); Loading