mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-29 22:24:51 +00:00
Move confirmAccess method to UxPerfUiAutomation
Move confirmAccess method out of reader and skype workloads into UxPerfUiAutomation base class for code reuse. Amend project properties for reader workload to use SDK version 18. Update jar files appropriately.
This commit is contained in:
@@ -267,6 +267,16 @@ public class UxPerfUiAutomation extends BaseUiAutomation {
|
||||
out.close();
|
||||
}
|
||||
|
||||
public void confirmAccess() throws Exception {
|
||||
// First time run requires confirmation to allow access to local files
|
||||
UiObject allowButton = new UiObject(new UiSelector().textContains("Allow")
|
||||
.className("android.widget.Button"));
|
||||
// Some devices request multiple permisson rights so clear them all here
|
||||
while (allowButton.waitForExists(timeout)) {
|
||||
allowButton.clickAndWaitForNewWindow(timeout);
|
||||
}
|
||||
}
|
||||
|
||||
public void startDumpsysSurfaceFlinger(Bundle parameters, String view) {
|
||||
if (Boolean.parseBoolean(parameters.getString("dumpsys_enabled"))) {
|
||||
initDumpsysSurfaceFlinger(parameters.getString("package"), view);
|
||||
|
||||
Reference in New Issue
Block a user