mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	Add setScreenOrientation to BaseUiAutomation class
This allows workloads to be launched in a pre-determined orientation not the orientation of the physical device itself. Updated the productivity workloads to take advantage of this new facility.
This commit is contained in:
		| @@ -62,6 +62,8 @@ public class UiAutomation extends UxPerfUiAutomation { | ||||
|         outputDir = parameters.getString("output_dir", "/sdcard/wa-working"); | ||||
|         dumpsysEnabled = Boolean.parseBoolean(parameters.getString("dumpsys_enabled")); | ||||
|  | ||||
|         setScreenOrientation(ScreenOrientation.NATURAL); | ||||
|  | ||||
|         // Run tests | ||||
|         handleLoginScreen(loginName, loginPass); | ||||
|         confirmAccess(); | ||||
| @@ -72,6 +74,8 @@ public class UiAutomation extends UxPerfUiAutomation { | ||||
|             voiceCallTest(callDuration); | ||||
|         } | ||||
|  | ||||
|         unsetScreenOrientation(); | ||||
|  | ||||
|         // Save results | ||||
|         writeResultsToFile(results, resultsFile); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user