1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 12:24:32 +00:00

UxPerfUiAutomation: Added setWorkloadParameters and getPackageID.

To work around appshare requiring access to protected variables of a workload,
a `setWorkloadParameters` method has been added to manually supply a parameter
bundle, and a `getPackageID` method to retrieve a workloads package ID.
This commit is contained in:
Marc Bonnici 2017-02-22 16:21:10 +00:00
parent 96c6f010f8
commit 6ffed382cf
5 changed files with 10 additions and 0 deletions

View File

@ -30,6 +30,16 @@ public class UxPerfUiAutomation extends BaseUiAutomation {
packageID = packageName + ":id/"; packageID = packageName + ":id/";
} }
public void setWorkloadParameters(Bundle parameters, String packageName, String packageID){
this.parameters = parameters;
this.packageName = packageName;
this.packageID = packageID;
}
public String getPackageID(){
return packageID;
}
private Logger logger = Logger.getLogger(UxPerfUiAutomation.class.getName()); private Logger logger = Logger.getLogger(UxPerfUiAutomation.class.getName());
public enum GestureType { UIDEVICE_SWIPE, UIOBJECT_SWIPE, PINCH }; public enum GestureType { UIDEVICE_SWIPE, UIOBJECT_SWIPE, PINCH };