mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00: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:
parent
e73b299fbe
commit
75c0e40bb0
Binary file not shown.
@ -90,12 +90,20 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
mDevice.findObject(selector.text("SQLite Update").fromParent(selector.index(1)));
|
mDevice.findObject(selector.text("SQLite Update").fromParent(selector.index(1)));
|
||||||
UiObject sqlDelete =
|
UiObject sqlDelete =
|
||||||
mDevice.findObject(selector.text("SQLite Delete").fromParent(selector.index(1)));
|
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());
|
Log.d(TAG, "Sequential Read Score " + seqRead.getText());
|
||||||
|
scrollView.scrollIntoView(seqWrite);
|
||||||
Log.d(TAG, "Sequential Write Score " + seqWrite.getText());
|
Log.d(TAG, "Sequential Write Score " + seqWrite.getText());
|
||||||
|
scrollView.scrollIntoView(ranRead);
|
||||||
Log.d(TAG, "Random Read Score " + ranRead.getText());
|
Log.d(TAG, "Random Read Score " + ranRead.getText());
|
||||||
|
scrollView.scrollIntoView(ranWrite);
|
||||||
Log.d(TAG, "Random Write Score " + ranWrite.getText());
|
Log.d(TAG, "Random Write Score " + ranWrite.getText());
|
||||||
|
scrollView.scrollIntoView(sqlInsert);
|
||||||
Log.d(TAG, "SQL Insert Score " + sqlInsert.getText());
|
Log.d(TAG, "SQL Insert Score " + sqlInsert.getText());
|
||||||
|
scrollView.scrollIntoView(sqlUpdate);
|
||||||
Log.d(TAG, "SQL Update Score " + sqlUpdate.getText());
|
Log.d(TAG, "SQL Update Score " + sqlUpdate.getText());
|
||||||
|
scrollView.scrollIntoView(sqlDelete);
|
||||||
Log.d(TAG, "SQL Delete Score " + sqlDelete.getText());
|
Log.d(TAG, "SQL Delete Score " + sqlDelete.getText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user