mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +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:
		| @@ -30,6 +30,16 @@ public class UxPerfUiAutomation extends BaseUiAutomation { | ||||
|         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()); | ||||
|  | ||||
|     public enum GestureType { UIDEVICE_SWIPE, UIOBJECT_SWIPE, PINCH }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user