def setup_adb_device(self): if self.device is None: self.device = ADBDevice(verbose=True) tune_performance(self.device, log=LOG) self.clear_app_data() self.set_debug_app_flag()
def setup_adb_device(self): if self.device is None: self.device = ADBDeviceFactory(verbose=True) if not self.config.get("disable_perf_tuning", False): tune_performance(self.device, log=LOG) self.clear_app_data() self.set_debug_app_flag() self.device.run_as_package = self.config["binary"] external_storage = self.device.shell_output("echo $EXTERNAL_STORAGE") self.remote_test_root = os.path.join( external_storage, "Android", "data", self.config["binary"], "files", "test_root", ) self.geckodriver_profile = os.path.join( self.remote_test_root, "%s-geckodriver-profile" % self.config["binary"]) # make sure no remote profile exists if self.device.exists(self.geckodriver_profile): self.device.rm(self.geckodriver_profile, force=True, recursive=True)
def setup_adb_device(self): if self.device is None: self.device = ADBDevice(verbose=True) if not self.config.get("disable_perf_tuning", False): tune_performance(self.device, log=LOG) self.clear_app_data() self.set_debug_app_flag()
def setup_adb_device(self): if self.device is None: self.device = ADBDeviceFactory(verbose=True) if not self.config.get("disable_perf_tuning", False): tune_performance(self.device, log=LOG) self.clear_app_data() self.set_debug_app_flag() self.device.run_as_package = self.config['binary'] self.remote_test_root = os.path.join(self.device.test_root, "raptor") self.remote_profile = os.path.join(self.remote_test_root, "profile")
def setup_adb_device(self): if self.device is None: self.device = ADBDevice(verbose=True) tune_performance(self.device, log=LOG) LOG.info("creating remote root folder for raptor: %s" % self.remote_test_root) self.device.rm(self.remote_test_root, force=True, recursive=True) self.device.mkdir(self.remote_test_root) self.device.chmod(self.remote_test_root, recursive=True, root=True) self.clear_app_data() self.set_debug_app_flag()
def setup_adb_device(self): if self.device is None: self.device = ADBDevice(verbose=True) if not self.config.get("disable_perf_tuning", False): tune_performance(self.device, log=LOG) if self.config['power_test']: disable_charging(self.device) LOG.info("creating remote root folder for raptor: %s" % self.remote_test_root) self.device.rm(self.remote_test_root, force=True, recursive=True) self.device.mkdir(self.remote_test_root) self.device.chmod(self.remote_test_root, recursive=True, root=True) self.clear_app_data() self.set_debug_app_flag()
def setup_adb_device(self): if self.device is None: self.device = ADBDeviceFactory(verbose=True) if not self.config.get("disable_perf_tuning", False): tune_performance(self.device, log=LOG) self.clear_app_data() self.set_debug_app_flag() self.device.run_as_package = self.config["binary"] self.remote_test_root = self.device.test_root self.geckodriver_profile = os.path.join( self.remote_test_root, "%s-geckodriver-profile" % self.config["binary"]) # make sure no remote profile exists if self.device.exists(self.geckodriver_profile): self.device.rm(self.geckodriver_profile, force=True, recursive=True)
def setup_adb_device(self): if self.device is None: self.device = ADBDeviceFactory(verbose=True) if not self.config.get("disable_perf_tuning", False): tune_performance(self.device, log=LOG) self.device.run_as_package = self.config["binary"] self.remote_test_root = os.path.join(self.device.test_root, "raptor") self.remote_profile = os.path.join(self.remote_test_root, "profile") if self.config["power_test"]: disable_charging(self.device) LOG.info("creating remote root folder for raptor: %s" % self.remote_test_root) self.device.rm(self.remote_test_root, force=True, recursive=True) self.device.mkdir(self.remote_test_root, parents=True) self.clear_app_data() self.set_debug_app_flag()