1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-03 03:42:35 +01:00

worklods: Fix whitespace

This commit is contained in:
Marc Bonnici
2018-10-24 09:18:14 +01:00
committed by setrofim
parent dead312ff7
commit 6b04cbffd2
2 changed files with 26 additions and 26 deletions

View File

@@ -64,7 +64,7 @@ public class UiAutomation extends BaseUiAutomation {
//Swipe to benchmarks and back to initialise the app correctly
private void loadBenchmarks() throws Exception {
UiObject title =
UiObject title =
mDevice.findObject(new UiSelector().text("PCMARK"));
title.waitForExists(300000);
if (title.exists()){
@@ -83,22 +83,22 @@ public class UiAutomation extends BaseUiAutomation {
//Install the Work 2.0 Performance Benchmark
private void installBenchmark() throws Exception {
UiObject benchmark =
UiObject benchmark =
mDevice.findObject(new UiSelector().descriptionContains("INSTALL("));
if (benchmark.exists()) {
benchmark.click();
} else {
UiObject benchmarktext =
UiObject benchmarktext =
mDevice.findObject(new UiSelector().textContains("INSTALL("));
benchmarktext.click();
}
UiObject install =
UiObject install =
mDevice.findObject(new UiSelector().description("INSTALL")
.className("android.view.View"));
if (install.exists()) {
install.click();
} else {
UiObject installtext =
UiObject installtext =
mDevice.findObject(new UiSelector().text("INSTALL")
.className("android.view.View"));
installtext.click();;
@@ -114,7 +114,7 @@ public class UiAutomation extends BaseUiAutomation {
installedtext.waitForExists(1000);
}
}
//Execute the Work 2.0 Performance Benchmark - wait up to ten minutes for this to complete
private void runBenchmark() throws Exception {
UiObject run =
@@ -125,17 +125,17 @@ public class UiAutomation extends BaseUiAutomation {
if (run.exists()) {
run.click();
} else {
UiObject runtext =
UiObject runtext =
mDevice.findObject(new UiSelector().text("RUN"));
if (runtext.exists()) {
runtext.click();
} else {
UiObject rundesc =
UiObject rundesc =
mDevice.findObject(new UiSelector().description("RUN"));
rundesc.click();
}
}
UiObject score =
UiObject score =
mDevice.findObject(new UiSelector().text("SCORE DETAILS")
.className("android.widget.TextView"));
if (!score.waitForExists(3600000)){