/test/app_compat/csuite/tools/script/ |
D | generate_module.py | 106 with open(build_module_template_file_path, 'r') as f: 107 build_module_template = string.Template(f.read()) 109 with open(test_module_template_file_path, 'r') as f: 110 test_module_template = string.Template(f.read()) 133 with open(filename, 'r') as f: 134 return _AUTO_GENERATE_NOTE in f.read() 166 with open(build_module_path, 'w') as f: 167 write_module(build_module_template, package_name, f) 169 with open(test_module_path, 'w') as f: 170 write_module(test_module_template, package_name, f)
|
/test/mlts/benchmark/tools/ |
D | gen_mobilenet_input.py | 17 with open(basename + "_f32.bin", "wb") as f: 18 f.write(img_f64.astype('float32').tobytes()) 20 with open(basename + "_u8.bin", "wb") as f: 21 f.write(((img_f64 + 1) * 255).astype('uint8').tobytes())
|
D | convert_binary_to_img.py | 32 with open(filename, 'rb') as f: 33 arr = np.frombuffer(f.read(), dtype=np.float32) 34 print(f'Reshape buffer from {arr.shape} to {(h, w, d)}.') 39 print(f'Image generated to {destination}.')
|
D | tensor_utils.py | 49 with open(save_html_path, 'w') as f: 50 f.write(ani.to_jshtml()) 68 with open(tflite_model_json_path, 'rb') as f: 69 model_json = json.load(f) 104 with open(json_path, 'rb') as f: 105 topk_aosp = json.load(f) 148 with open(output_file_path, 'w') as f: 149 f.write(html_data) 187 with open(output_file_path, 'w') as f: 189 f.write(self.return_dict[model_name + "-hist"]) [all …]
|
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/ |
D | KernelApiSysfsTest.java | 114 String f; in testPerCpuCpufreq() local 117 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", cpu); in testPerCpuCpufreq() 118 if (getDevice().doesFileExist(f)) { in testPerCpuCpufreq() 119 isReadOnlyAndIntegerContent(f); in testPerCpuCpufreq() 122 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_min_freq", cpu); in testPerCpuCpufreq() 123 if (getDevice().doesFileExist(f)) { in testPerCpuCpufreq() 124 isReadWriteAndIntegerContent(f); in testPerCpuCpufreq() 127 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_max_freq", cpu); in testPerCpuCpufreq() 128 if (getDevice().doesFileExist(f)) { in testPerCpuCpufreq() 129 isReadWriteAndIntegerContent(f); in testPerCpuCpufreq() [all …]
|
/test/vts/vndk_utils/library/elf/testing/ |
D | build-libtest.sh | 26 for f in ./*.s; do 27 as "$f" -o "${f%.s}.o"
|
/test/vts-testcase/vndk/golden/ |
D | vndk_data.py | 243 with vndk_lib_list.open("r") as f: 246 _LoadVndkLibraryListsFile(vndk_lists, tags, f, history) 248 _LoadVndkLibraryListsFile(vndk_lists, tags, f) 249 with vndk_lib_extra_list.open("r") as f: 250 _LoadVndkLibraryListsFile(vndk_lists, tags, f)
|
/test/mlts/benchmark/src/com/android/nn/benchmark/app/ |
D | BenchmarkTestBase.java | 72 protected static final float RUNTIME_SHORT_SECONDS = 1.f; 76 protected static final float WARMUP_REPEATABLE_SECONDS = 2.f; 77 protected static final float RUNTIME_REPEATABLE_SECONDS = 10.f; 80 protected static final float COMPLETE_SET_TIMEOUT_SECOND = 300.f; 83 protected static final float COMPILATION_WARMUP_SECONDS = 2.f; 84 protected static final float COMPILATION_RUNTIME_SECONDS = 10.f;
|
/test/mlts/benchmark/results/ |
D | Chart.bundle.min.js | 10 …f in n)c[n[f]]=f},{5:5}],2:[function(t,e,i){var n=t(4),a=t(1),r=function(t){return t instanceof r?… variable
|
/test/app_compat/csuite/test_scripts/src/main/java/com/android/csuite/tests/ |
D | AppCrawlTest.java | 189 private static Path toPathOrNull(@Nullable File f) { in toPathOrNull() argument 190 return f == null ? null : f.toPath(); in toPathOrNull()
|
/test/app_compat/csuite/integration_tests/ |
D | csuite_test_utils.py | 59 with zipfile.ZipFile(data, 'r') as f: 60 f.extractall(self._suite_dir) 209 env_str = ['env', '-i'] + [f'{k}={v}' for k, v in env.items()]
|
/test/app_compat/csuite/test_scripts/src/main/java/com/android/webview/tests/ |
D | WebviewAppCrawlTest.java | 207 private static Path toPathOrNull(@Nullable File f) { in toPathOrNull() argument 208 return f == null ? null : f.toPath(); in toPathOrNull()
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/ |
D | DeviceInteractionHelperInstallerTest.java | 86 File f = new File(dir, name); in createFindableFile() local 87 f.createNewFile(); in createFindableFile() 89 testInfo.executionFiles().put(name, f); in createFindableFile() 91 return f; in createFindableFile()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | Processor.java | 234 if (maxTime > 0.f) { in runBenchmarkLoop() 409 float runTime = 1.f; in benchmarkAllModels() 411 warmupTime = 2.f; in benchmarkAllModels() 412 runTime = 10.f; in benchmarkAllModels()
|
D | TestModelsListLoader.java | 133 float quantScale = 0.f; in parseJSONModelsList() 134 float quantZeroPoint = 0.f; in parseJSONModelsList()
|
/test/mlts/models/assets/ssd_mobilenet_v1_coco_quantized/ |
D | tarmac.output7 | 1 …f\Z\eFbFGRFOS\LNI<CSSWGc`a\ZRSFt]Yd_P]WY^YFiR`i\VXW\\SVSGdwFGehlX^f^zO\XcTWFS\RSLVdg\e\`S`fqdacmGm…
|
/test/vts-testcase/vndk/ |
D | utils.py | 228 f"stdout: {out}\nstderr: {err}\n") 284 f"'{name_pattern}'", *options)
|
/test/cts-root/tests/bugreport/src/android/bugreport/cts_root/ |
D | BugreportManagerTest.java | 497 final File f = File.createTempFile(prefix, extension); in createTempFile() local 498 f.setReadable(true, true); in createTempFile() 499 f.setWritable(true, true); in createTempFile() 501 f.deleteOnExit(); in createTempFile() 502 return f; in createTempFile()
|
/test/vts/tools/vts-core-tradefed/etc/ |
D | vts-tradefed | 112 for j in $(find ${VTS_ROOT}/android-vts/testcases -type f -name '*.jar'); do
|
/test/vts-testcase/kernel/ltp/testcase/tools/ |
D | ltp_test_cases.py | 261 with open(output_file, 'w') as f: 262 f.write(config_lines)
|
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/config/ |
D | AppRemoteFileResolverTest.java | 93 File f = uriToFile(uri); in unsupportedUriScheme_throwsException() local 98 () -> resolver.resolveRemoteFiles(f, EMPTY_PARAMS)); in unsupportedUriScheme_throwsException()
|
/test/cts-root/hostsidetests/rollback/src/com/android/cts_root/rollback/host/ |
D | RollbackManagerHostTest.java | 505 IFileEntry f = getDevice().getFileEntry(baseDir); in getSnapshotDirectories() local 506 if (f == null) { in getSnapshotDirectories() 510 List<String> list = f.getChildren(false) in getSnapshotDirectories()
|
/test/vts-testcase/security/system_property/ |
D | vts_treble_sys_prop_test.py | 254 with open(downloaded, "r") as f: 255 property_dict = self._ParsePropertyDictFromPropertyContextsFile(f)
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/build/ |
D | CompatibilityBuildProvider.java | 227 helper.getDynamicConfigFiles().values().forEach(f -> f.deleteOnExit()); in cleanUp()
|
/test/mlts/benchmark/jni/ |
D | run_tflite.cpp | 750 FILE* f = fopen(fullpath, "wb"); in dumpAllLayers() local 751 fwrite(output_tensor->data.raw, output_tensor->bytes, 1, f); in dumpAllLayers() 752 fclose(f); in dumpAllLayers()
|