Ejemplo n.º 1
0
 def __init__(self,
              homedir=None,
              noWindow=False,
              logcat_dir=None,
              arch="x86",
              emulatorBinary=None,
              res='480x800',
              sdcard=None,
              userdata=None):
     self.port = None
     self._emulator_launched = False
     self.proc = None
     self.marionette_port = None
     self.telnet = None
     self._tmp_sdcard = None
     self._tmp_userdata = None
     self._adb_started = False
     self.logcat_dir = logcat_dir
     self.logcat_proc = None
     self.arch = arch
     self.binary = emulatorBinary
     self.res = res
     self.battery = EmulatorBattery(self)
     self.geo = EmulatorGeo(self)
     self.homedir = homedir
     self.sdcard = sdcard
     self.noWindow = noWindow
     if self.homedir is not None:
         self.homedir = os.path.expanduser(homedir)
     self.dataImg = userdata
     self.copy_userdata = self.dataImg is None
Ejemplo n.º 2
0
 def __init__(self, homedir=None, noWindow=False, logcat_dir=None,
              arch="x86", emulatorBinary=None, res=None, sdcard=None,
              symbols_path=None, userdata=None):
     self.port = None
     self.dm = None
     self._emulator_launched = False
     self.proc = None
     self.marionette_port = None
     self.telnet = None
     self._tmp_sdcard = None
     self._tmp_userdata = None
     self._adb_started = False
     self.remote_user_js = '/data/local/user.js'
     self.logcat_dir = logcat_dir
     self.logcat_proc = None
     self.arch = arch
     self.binary = emulatorBinary
     self.res = res or self._default_res
     self.battery = EmulatorBattery(self)
     self.geo = EmulatorGeo(self)
     self.screen = EmulatorScreen(self)
     self.homedir = homedir
     self.sdcard = sdcard
     self.symbols_path = symbols_path
     self.noWindow = noWindow
     if self.homedir is not None:
         self.homedir = os.path.expanduser(homedir)
     self.dataImg = userdata
     self.copy_userdata = self.dataImg is None