code: 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+)')
          for line in self.shell('dumpsys window').splitlines():
              m = rsRE.match(line)
              if m:
                  return m.groups()
          raise RuntimeError("Couldn't find mRestrictedScreen in 'dumpsys window'"f 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+)')
          for line in self.shell('dumpsys window').splitlines():
              m = rsRE.match(line)
              if m:
                  return m.groups()
          raise RuntimeError("Couldn't find mRestrictedScreen in 'dumpsys window'")
docs: Gets C{mRestrictedScreen} values from dumpsys. This is a method to obtain display dimensions