mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	Fix inverted swipe up/down gestures
Tested on Chromebook and Mate 8
This commit is contained in:
		| @@ -274,19 +274,19 @@ public class BaseUiAutomation extends UiAutomatorTestCase { | ||||
|  | ||||
|     public void uiDeviceSwipeUp(int steps) { | ||||
|         UiDevice.getInstance().swipe( | ||||
|             getDisplayCentreWidth(), | ||||
|             (getDisplayCentreHeight() / 2), | ||||
|             getDisplayCentreWidth(), | ||||
|             (getDisplayCentreHeight() + (getDisplayCentreHeight() / 2)), | ||||
|             getDisplayCentreWidth(), | ||||
|             (getDisplayCentreHeight() / 2), | ||||
|             steps); | ||||
|     } | ||||
|  | ||||
|     public void uiDeviceSwipeDown(int steps) { | ||||
|         UiDevice.getInstance().swipe( | ||||
|             getDisplayCentreWidth(), | ||||
|             (getDisplayCentreHeight() + (getDisplayCentreHeight() / 2)), | ||||
|             getDisplayCentreWidth(), | ||||
|             (getDisplayCentreHeight() / 2), | ||||
|             getDisplayCentreWidth(), | ||||
|             (getDisplayCentreHeight() + (getDisplayCentreHeight() / 2)), | ||||
|             steps); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user