Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 94) sorted by relevance

1234

/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/
DTestAssetRepository.java39 private static InputStream open(String path) throws FileNotFoundException { in open() argument
40 File asset = new File(path); in open()
54 public InputStream openAsset(String path, int mode) throws IOException { in openAsset() argument
55 return open(mAssetPath + path); in openAsset()
59 public InputStream openNonAsset(int cookie, String path, int mode) throws IOException { in openNonAsset() argument
60 return open(path); in openNonAsset()
/platform_testing/scripts/perf-setup/
Dp23-setup.sh50 for path in /sys/class/devfreq/*{bci,mif,dsu,int}; do
51 local max_freq=`cat $path/max_freq`
52 echo $max_freq > $path/exynos_data/debug_scaling_devfreq_max
53 echo $max_freq > $path/exynos_data/debug_scaling_devfreq_min
55 local cur_freq=`cat $path/cur_freq`
56 echo "`basename $path` -> $cur_freq"
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/
DDevicelessDevMachineExportStrategy.kt23 import kotlin.io.path.outputStream in <lambda>()
24 import kotlin.io.path.writeText in <lambda>()
114 private fun Bitmap.writeTo(path: Path) { in <lambda>()
116 check(!Files.exists(path) || Files.isRegularFile(path)) in <lambda>()
119 Files.createDirectories(path.parent) in <lambda>()
122 path.outputStream().use { stream -> in <lambda>()
/platform_testing/libraries/screenshot/
Dupdate_goldens.py48 source_directory = os.path.normpath(args.source_directory)
50 if not os.path.exists(source_directory):
54 if not os.path.isdir(source_directory):
70 pb_file = open(os.path.join(args.source_directory, filename), 'r')
92 src_path = os.path.join(
95 dest_path = os.path.join(pathlib.Path.home(), args.android_build_top, golden_path)
/platform_testing/tests/bettertogether/quickstart/performance_test/
Dgms_auto_updates_util.py110 path = os.path.join(tmp_dir, f'play_store_config_{name}.xml')
112 self._device.adb.pull([device_path, path])
116 config_doc = ElementTree.parse(path) if os.path.isfile(path) else None
145 tree.write(path, xml_declaration=True, encoding='utf-8')
146 return path
/platform_testing/tests/bettertogether/betocq/
Dgms_auto_updates_util.py110 path = os.path.join(tmp_dir, f'play_store_config_{name}.xml')
112 self._device.adb.pull([device_path, path])
116 config_doc = ElementTree.parse(path) if os.path.isfile(path) else None
145 tree.write(path, xml_declaration=True, encoding='utf-8')
146 return path
/platform_testing/libraries/screenshot/scripts/
Ddeviceless_converter.py12 gradlew_dir: String = os.path.join(cfg.build_top, mc.gradlew_location)
13 with open(os.path.expanduser(outputFile), "w") as of:
14 ret = subprocess.run([os.path.join(gradlew_dir, "gradlew"), f"{mc.gradlew_target}"],
24 java_binary = os.path.join(java_home, 'bin/java')
38 yield os.path.join(root, name)
45 dirname = os.path.dirname(new_filename)
46 basename = os.path.basename(new_filename)
71 for f in walkDir(os.path.join(cfg.build_top, d)):
/platform_testing/libraries/motion/golden_updater/
Dwatch_local_tests.py24 from os import path
85 if args.android_build_top is None or not os.path.exists(args.android_build_top):
149 GOLDEN_ACCESS_TOKEN_LOCATION = os.path.expanduser("~/.config/motion-golden/.token")
160 self.root_directory = path.abspath(path.dirname(__file__))
180 parsed = urllib.parse.urlparse(self.path)
182 if parsed.path == "/service/list":
184 elif parsed.path.startswith("/golden/"):
185 requested_file_start_index = parsed.path.find("/", len("/golden/") + 1)
186 requested_file = parsed.path[requested_file_start_index + 1 :]
206 parsed = urllib.parse.urlparse(self.path)
[all …]
/platform_testing/tests/bettertogether/betocq/directed_tests/
Dmcc_5g_wfd_dfs_5g_sta_test.py37 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
38 if _betocq_dir not in sys.path:
39 sys.path.append(_betocq_dir)
Dscc_dfs_5g_hotspot_sta_test.py37 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
38 if _betocq_dir not in sys.path:
39 sys.path.append(_betocq_dir)
Dscc_indoor_5g_wfd_sta_test.py37 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
38 if _betocq_dir not in sys.path:
39 sys.path.append(_betocq_dir)
Dscc_5g_wfd_dbs_2g_sta_test.py34 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
35 if _betocq_dir not in sys.path:
36 sys.path.append(_betocq_dir)
Dscc_5g_wlan_sta_test.py32 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
33 if _betocq_dir not in sys.path:
34 sys.path.append(_betocq_dir)
Dmcc_5g_wfd_non_dbs_2g_sta_test.py36 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
37 if _betocq_dir not in sys.path:
38 sys.path.append(_betocq_dir)
Dscc_dfs_5g_wfd_sta_test.py36 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
37 if _betocq_dir not in sys.path:
38 sys.path.append(_betocq_dir)
Dmcc_5g_hotspot_dfs_5g_sta_test.py38 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
39 if _betocq_dir not in sys.path:
40 sys.path.append(_betocq_dir)
Dscc_5g_wfd_sta_test.py31 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
32 if _betocq_dir not in sys.path:
33 sys.path.append(_betocq_dir)
Dscc_2g_wfd_sta_test.py31 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
32 if _betocq_dir not in sys.path:
33 sys.path.append(_betocq_dir)
Dscc_5g_aware_sta_test.py30 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
31 if _betocq_dir not in sys.path:
32 sys.path.append(_betocq_dir)
Dbt_performance_test.py24 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
25 if _betocq_dir not in sys.path:
26 sys.path.append(_betocq_dir)
Dmcc_2g_wfd_indoor_5g_sta_test.py38 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
39 if _betocq_dir not in sys.path:
40 sys.path.append(_betocq_dir)
Dmcc_aware_2g_5g_sta_test.py28 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
29 if _betocq_dir not in sys.path:
30 sys.path.append(_betocq_dir)
Dscc_2g_wlan_sta_test.py35 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
36 if _betocq_dir not in sys.path:
37 sys.path.append(_betocq_dir)
Dble_performance_test.py24 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
25 if _betocq_dir not in sys.path:
26 sys.path.append(_betocq_dir)
/platform_testing/tests/bettertogether/betocq/compound_tests/
Dbt_2g_wifi_coex_test.py28 _betocq_dir = os.path.dirname(os.path.dirname(__file__))
29 if _betocq_dir not in sys.path:
30 sys.path.append(_betocq_dir)

1234