Beispiel #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
Beispiel #2
0
 def __init__(self,
              noWindow=False,
              logcat_dir=None,
              arch="x86",
              emulatorBinary=None,
              res='480x800',
              userdata=None,
              memory='512',
              partition_size='512'):
     self.port = None
     self._emulator_launched = False
     self.proc = None
     self.local_port = None
     self.telnet = 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.memory = str(memory)
     self.partition_size = str(partition_size)
     self.res = res
     self.battery = EmulatorBattery(self)
     self.noWindow = noWindow
     self.dataImg = userdata
     self.copy_userdata = self.dataImg is None
Beispiel #3
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
Beispiel #4
0
 def __init__(self, homedir=None, noWindow=False):
     self.port = None
     self._emulator_launched = False
     self.proc = None
     self.marionette_port = None
     self.telnet = None
     self._tmp_userdata = None
     self._adb_started = False
     self.battery = EmulatorBattery(self)
     self.homedir = homedir
     self.noWindow = noWindow
     if self.homedir is not None:
         self.homedir = os.path.expanduser(homedir)
Beispiel #5
0
 def __init__(self, homedir=None, noWindow=False, logcat_dir=None, arch="x86", emulatorBinary=None):
     self.port = None
     self._emulator_launched = False
     self.proc = None
     self.marionette_port = None
     self.telnet = 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.battery = EmulatorBattery(self)
     self.homedir = homedir
     self.noWindow = noWindow
     if self.homedir is not None:
         self.homedir = os.path.expanduser(homedir)