From 9ed423ecfaeef7f51d7908c8e4f4e6443a4d14e8 Mon Sep 17 00:00:00 2001 From: William Lachance Date: Mon, 18 Aug 2014 12:42:54 -0400 Subject: [PATCH] Galaxy Nexus should use landscape orientation in no-capture adb mode This ensures we can compare results that we're getting using the decklink cards, where the device is always in landscape. --- src/eideticker/eideticker/device.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/eideticker/eideticker/device.py b/src/eideticker/eideticker/device.py index 150bbbb..577a107 100644 --- a/src/eideticker/eideticker/device.py +++ b/src/eideticker/eideticker/device.py @@ -26,6 +26,7 @@ DEVICE_PROPERTIES = { "galaxy nexus": { "hdmiResolution": "720p", "inputDevice": "/dev/input/event1", + "defaultOrientation": "landscape", "dimensions": (1180, 720), "swipePadding": (240, 40, 100, 40)}, "panda": { @@ -409,8 +410,9 @@ class DroidADB(EidetickerMixin, EidetickerDroidMixin, mozdevice.DroidADB): @property def rotation(self): - return 0 # No way to find real rotation, assume 0 - + if self.deviceProperties.get('defaultOrientation') == 'landscape': + return 90 + return 0 class DroidSUT(EidetickerMixin, EidetickerDroidMixin, mozdevice.DroidSUT):