1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-07 13:41:24 +00:00

Framework/Uiautomator: Adds Ui Swipe functions

This commit is contained in:
Marc Bonnici 2017-11-13 12:08:02 +00:00 committed by setrofim
parent 7aa50779e6
commit 1f5a34b9a8
2 changed files with 9 additions and 1 deletions

View File

@ -258,6 +258,14 @@ public class BaseUiAutomation {
}
}
public void uiDeviceSwipeVertical(int startY, int endY, int xCoordinate, int steps) {
mDevice.swipe(startY, xCoordinate, endY, xCoordinate, steps);
}
public void uiDeviceSwipeHorizontal(int startX, int endX, int yCoordinate, int steps) {
mDevice.swipe(startX, yCoordinate, endX, yCoordinate, steps);
}
public void uiObjectVertPinchIn(UiObject view, int steps, int percent) throws Exception {
final int FINGER_TOUCH_HALF_WIDTH = 20;

Binary file not shown.