mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-10 17:13:30 +01:00
Framework/Uiautomator: Adds Ui Swipe functions
This commit is contained in:
wa/framework/uiauto
@ -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;
|
final int FINGER_TOUCH_HALF_WIDTH = 20;
|
||||||
|
|
||||||
// Make value between 1 and 100
|
// Make value between 1 and 100
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user