Skip to content

Commit f85e734

Browse files
committed
Make AdbClient.getRestrictedScreen() public
- As suggested by elbajo - Version 4.8.0
1 parent 44784a9 commit f85e734

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

AndroidViewClient/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages
44

55
setup(name='androidviewclient',
6-
version='4.7.2',
6+
version='4.8.0',
77
description='''AndroidViewClient is a 100% pure python tool that
88
simplifies test script creation providing higher level operations and the ability of
99
obtaining the tree of Views present at any given moment on the device or emulator screen.

AndroidViewClient/src/com/dtmilano/android/adb/adbclient.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@author: Diego Torres Milano
1818
'''
1919

20-
__version__ = '4.7.2'
20+
__version__ = '4.8.0'
2121

2222
import sys
2323
import warnings
@@ -262,7 +262,7 @@ def shell(self, cmd=None):
262262
sout = adbClient.socket.makefile("r")
263263
return sout
264264

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

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

281281
def __getDisplayWidth(self, key, strip=True):
282-
(x, y, w, h) = self.__getRestrictedScreen()
282+
(x, y, w, h) = self.getRestrictedScreen()
283283
return int(w)
284284

285285
def __getDisplayHeight(self, key, strip=True):
286-
(x, y, w, h) = self.__getRestrictedScreen()
286+
(x, y, w, h) = self.getRestrictedScreen()
287287
return int(h)
288288

289289
def getSystemProperty(self, key, strip=True):

0 commit comments

Comments
 (0)