tools/perf/contrib/vr_benchmarks/shared_vr_page_state.py
def _InstallNfcApk(self):
    """Installs the APK that allows VR tests to simulate a headset NFC scan."""
    chromium_root = path_util.GetChromiumSrcDir()
    # Find the most recently build APK
    candidate_apks = []
    for build_path in util.GetBuildDirectories(chromium_root):
      apk_path = os.path.join(build_path, 'apks', 'VrNfcSimulator.apk')
      if os.path.exists(apk_path):
        last_changed = os.path.getmtime(apk_path)
        candidate_apks.append((last_changed, apk_path))

    if not candidate_apks:
      raise RuntimeError(
          'Could not find VrNfcSimulator.apk in a build output directory')
    newest_apk_path = sorted(candidate_apks)[-1][1]
    self.platform.InstallApplication(
        os.path.join(chromium_root, newest_apk_path))
Installs the APK that allows VR tests to simulate a headset NFC scan.
Installs the APK that allows VR tests to simulate a headset NFC scan.
Installs the APK that allows VR tests to simulate a headset NFC scan .
def _InstallNfcApk(self):
    chromium_root = path_util.GetChromiumSrcDir()
    candidate_apks = []
    for build_path in util.GetBuildDirectories(chromium_root):
      apk_path = os.path.join(build_path, 'apks', 'VrNfcSimulator.apk')
      if os.path.exists(apk_path):
        last_changed = os.path.getmtime(apk_path)
        candidate_apks.append((last_changed, apk_path))
    if not candidate_apks:
      raise RuntimeError(
          'Could not find VrNfcSimulator.apk in a build output directory')
    newest_apk_path = sorted(candidate_apks)[-1][1]
    self.platform.InstallApplication(
        os.path.join(chromium_root, newest_apk_path))
def _InstallNfcApk ( self ) : chromium_root = path_util . GetChromiumSrcDir ( ) candidate_apks = [ ] for build_path in util . GetBuildDirectories ( chromium_root ) : apk_path = os . path . join ( build_path , 'apks' , 'VrNfcSimulator.apk' ) if os . path . exists ( apk_path ) : last_changed = os . path . getmtime ( apk_path ) candidate_apks . append ( ( last_changed , apk_path ) ) if not candidate_apks : raise RuntimeError ( 'Could not find VrNfcSimulator.apk in a build output directory' ) newest_apk_path = sorted ( candidate_apks ) [ - 1 ] [ 1 ] self . platform . InstallApplication ( os . path . join ( chromium_root , newest_apk_path ) )
Installs the APK that allows VR tests to simulate a headset NFC scan.
Installs the APK that allows VR tests to simulate a headset NFC scan .
"""Installs the APK that allows VR tests to simulate a headset NFC scan.""" # Find the most recently build APK
self