Skip to content

Commit

Permalink
Make AdbClient.getRestrictedScreen() public
Browse files Browse the repository at this point in the history
- As suggested by elbajo
- Version 4.8.0
  • Loading branch information
dtmilano committed Nov 27, 2013
1 parent 44784a9 commit f85e734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AndroidViewClient/setup.py
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup, find_packages

setup(name='androidviewclient',
version='4.7.2',
version='4.8.0',
description='''AndroidViewClient is a 100% pure python tool that
simplifies test script creation providing higher level operations and the ability of
obtaining the tree of Views present at any given moment on the device or emulator screen.
Expand Down
8 changes: 4 additions & 4 deletions AndroidViewClient/src/com/dtmilano/android/adb/adbclient.py
Expand Up @@ -17,7 +17,7 @@
@author: Diego Torres Milano
'''

__version__ = '4.7.2'
__version__ = '4.8.0'

import sys
import warnings
Expand Down Expand Up @@ -262,7 +262,7 @@ def shell(self, cmd=None):
sout = adbClient.socket.makefile("r")
return sout

def __getRestrictedScreen(self):
def getRestrictedScreen(self):
''' Gets C{mRestrictedScreen} values from dumpsys. This is a method to obtain display dimensions '''

rsRE = re.compile('\s*mRestrictedScreen=\((?P<x>\d+),(?P<y>\d+)\) (?P<w>\d+)x(?P<h>\d+)')
Expand All @@ -279,11 +279,11 @@ def __getProp(self, key, strip=True):
return prop

def __getDisplayWidth(self, key, strip=True):
(x, y, w, h) = self.__getRestrictedScreen()
(x, y, w, h) = self.getRestrictedScreen()
return int(w)

def __getDisplayHeight(self, key, strip=True):
(x, y, w, h) = self.__getRestrictedScreen()
(x, y, w, h) = self.getRestrictedScreen()
return int(h)

def getSystemProperty(self, key, strip=True):
Expand Down

0 comments on commit f85e734

Please sign in to comment.