1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-29 22:24:51 +00:00

Add Multiapp workload

A new workload for testing context switching between applications.
Uses googlephotos as the producer workload and gmail and skype as
the consumer workloads.
This commit is contained in:
John Richardson
2016-05-17 13:37:04 +01:00
parent 0f7aff48cc
commit 2532f36a62
17 changed files with 590 additions and 25 deletions

View File

@@ -173,6 +173,10 @@ public class BaseUiAutomation extends UiAutomatorTestCase {
getUiDevice().getInstance().click(x, y);
}
public void pressBack() {
getUiDevice().getInstance().pressBack();
}
public void uiDeviceSwipeUp (int steps) {
getUiDevice().getInstance().swipe(
getDisplayCentreWidth(),
@@ -272,4 +276,10 @@ public class BaseUiAutomation extends UiAutomatorTestCase {
public void unsetScreenOrientation() throws Exception {
getUiDevice().unfreezeRotation();
}
public void uiDevicePerformLongClick(UiObject view, int steps) throws Exception {
Rect rect = view.getBounds();
getUiDevice().getInstance().swipe(rect.centerX(), rect.centerY(),
rect.centerX(), rect.centerY(), steps);
}
}