mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
Androbench: Handle storage permissions prompt.
Updating the workload to handle the storage permissions that present themselves on certain devices.
This commit is contained in:
parent
9a931f42ee
commit
3be00b296d
Binary file not shown.
@ -43,9 +43,20 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void setup() throws Exception {
|
public void setup() throws Exception {
|
||||||
|
dismissPermissions();
|
||||||
dismissAndroidVersionPopup();
|
dismissAndroidVersionPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void dismissPermissions() throws Exception {
|
||||||
|
UiSelector selector = new UiSelector();
|
||||||
|
UiObject cont = mDevice.findObject(selector.textContains("Continue"));
|
||||||
|
|
||||||
|
if (cont.exists()) {
|
||||||
|
cont.click();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void runWorkload() throws Exception {
|
public void runWorkload() throws Exception {
|
||||||
runBenchmark();
|
runBenchmark();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user