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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user