Exemple #1
0
 def CreatePlatformForDevice(cls, device, finder_options):
     assert cls.SupportsDevice(device)
     require_root = (
         compat_mode_options.DONT_REQUIRE_ROOTED_DEVICE
         not in finder_options.browser_options.compatibility_mode)
     platform_backend = AndroidPlatformBackend(device, require_root)
     return android_platform.AndroidPlatform(platform_backend)
 def CreatePlatformForDevice(cls, device, finder_options):
     assert cls.SupportsDevice(device)
     platform_backend = AndroidPlatformBackend(device)
     return android_platform.AndroidPlatform(platform_backend)
Exemple #3
0
    _FixPossibleAdbInstability()

  @property
  def log_file_path(self):
    return None

  @classmethod
  def SupportsDevice(cls, presentation.device):
    return isinstance(presentation.device, android_device.AndroidDevice)

  @classmethod
  def CreatePlatformForDevice(cls, presentation.device, finder_options):
    assert cls.SupportsDevice(presentation.device)
    platform_backend = AndroidPlatformBackend(presentation.device)
    return android_platform.AndroidPlatform(platform_backend)

  @property
  def forwarder_factory(self):
    if not self._forwarder_factory:
      self._forwarder_factory = android_forwarder.AndroidForwarderFactory(
          self._device)

    return self._forwarder_factory

  @property
  def presentation.device(self):
    return self._device

  def Initialize(self):
    self.EnsureBackgroundApkInstalled()