1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-06-23 08:46:05 +01:00

workloads/androbench: Fix extracting results with small resolutions

Previously the workload assumed that all the scores were visible on a
single screen however for devices with smaller displays the results need
to scrolled.
This commit is contained in:
Marc Bonnici
2018-10-03 14:23:43 +01:00
committed by setrofim
parent e73b299fbe
commit 75c0e40bb0
2 changed files with 8 additions and 0 deletions
wa/workloads/androbench
com.arm.wa.uiauto.androbench.apk
uiauto
app
src
main
java
com
arm
wa
uiauto

@ -90,12 +90,20 @@ public class UiAutomation extends BaseUiAutomation {
mDevice.findObject(selector.text("SQLite Update").fromParent(selector.index(1)));
UiObject sqlDelete =
mDevice.findObject(selector.text("SQLite Delete").fromParent(selector.index(1)));
UiScrollable scrollView = new UiScrollable(new UiSelector().scrollable(true));
Log.d(TAG, "Sequential Read Score " + seqRead.getText());
scrollView.scrollIntoView(seqWrite);
Log.d(TAG, "Sequential Write Score " + seqWrite.getText());
scrollView.scrollIntoView(ranRead);
Log.d(TAG, "Random Read Score " + ranRead.getText());
scrollView.scrollIntoView(ranWrite);
Log.d(TAG, "Random Write Score " + ranWrite.getText());
scrollView.scrollIntoView(sqlInsert);
Log.d(TAG, "SQL Insert Score " + sqlInsert.getText());
scrollView.scrollIntoView(sqlUpdate);
Log.d(TAG, "SQL Update Score " + sqlUpdate.getText());
scrollView.scrollIntoView(sqlDelete);
Log.d(TAG, "SQL Delete Score " + sqlDelete.getText());
}
}