1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +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,7 +258,15 @@ public class BaseUiAutomation {
}
}
public void uiObjectVertPinchIn(UiObject view, int steps, int percent) throws Exception {
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;
// Make value between 1 and 100

Binary file not shown.