Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 52) sorted by relevance

123

/test/mlts/benchmark/tools/
Dgen_mobilenet_input.py16 img_f64 = np.array(Image.open(filename).resize(size)).astype(np.float) / 128 - 1
17 with open(basename + "_f32.bin", "wb") as f:
20 with open(basename + "_u8.bin", "wb") as f:
Dconvert_binary_to_img.py32 with open(filename, 'rb') as f:
Dtensor_utils.py49 with open(save_html_path, 'w') as f:
68 with open(tflite_model_json_path, 'rb') as f:
104 with open(json_path, 'rb') as f:
148 with open(output_file_path, 'w') as f:
187 with open(output_file_path, 'w') as f:
217 with open(file_path, mode='rb') as f:
/test/app_compat/csuite/tools/script/
Dgenerate_module.py106 with open(build_module_template_file_path, 'r') as f:
109 with open(test_module_template_file_path, 'r') as f:
114 with open(package_list_file_path) as fp:
133 with open(filename, 'r') as f:
166 with open(build_module_path, 'w') as f:
169 with open(test_module_path, 'w') as f:
/test/dittosuite/
Dditto2cpp.py76 with open(output, 'w') as fo:
80 with open(fi_path, 'r') as fi:
98 with open(args.output, 'r') as fo:
/test/vts-testcase/vndk/golden/
Dvndk_data.py83 _ABI_DUMP_ZIP_NAME).open("rb")
243 with vndk_lib_list.open("r") as f:
245 with vndk_lib_list_history.open("r") as history:
249 with vndk_lib_extra_list.open("r") as f:
Dextract_lsdump.py81 return gzip.open(file_name, 'rt')
82 return open(file_name, 'r')
240 with lsdump_zip.open(name, mode='r') as lsdump_file:
266 with open(output_path, 'w') as output_file:
/test/vts-testcase/kernel/bow/
DBowTest.cpp75 unique_fd cfd(open("/dev/loop-control", O_RDWR)); in SetUp()
82 unique_fd lfd(open(loop_device_.c_str(), O_RDWR)); in SetUp()
84 unique_fd ffd(open(loop_file_.c_str(), O_RDWR)); in SetUp()
90 unique_fd lfd(open(loop_device_.c_str(), O_RDWR)); in TearDown()
234 open(loop_file.c_str(), O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)); in PrepareFile()
247 fd_ = unique_fd(open(bow_device_.c_str(), O_RDWR)); in SetUp()
278 fd = unique_fd(open(loop_device_.c_str(), O_RDONLY)); in FindChanged()
280 fd = unique_fd(open(bow_device_.c_str(), O_RDONLY)); in FindChanged()
452 unique_fd fd(open(MOUNT_POINT, O_RDONLY)); in Trim()
/test/vts-testcase/kernel/gki/
Dlz4_legacy.cpp50 unique_fd ifd(TEMP_FAILURE_RETRY(open(input, O_RDONLY | O_CLOEXEC))); in Lz4DecompressLegacy()
55 open(output, O_WRONLY | O_CREAT | O_CLOEXEC | O_TRUNC, 0640))); in Lz4DecompressLegacy()
Dramdisk_utils.cpp39 TEMP_FAILURE_RETRY(open(boot_path.data(), O_RDONLY))); in ExtractRamdiskRaw()
/test/vts-testcase/security/system_property/
Dvts_treble_sys_prop_test.py225 with open(
254 with open(downloaded, "r") as f:
328 with open(os.path.join(self._temp_dir, "product_property_contexts"),
404 with open(os.path.join(self._temp_dir, "plat_property_contexts"),
416 with resources.files(package_name).joinpath(resource_name).open('r') \
/test/app_compat/csuite/integration_tests/
Dcsuite_test_utils.py58 'csuite-standalone.zip').open('rb') as data:
146 resources.files('testdata').joinpath(apk).open('rb') as data,
147 open(os.path.join(apk_dir, apk), 'wb') as file,
/test/vts-testcase/kernel/encryption/
Dfile_based_encryption_tests.cpp186 open(mountpoint.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in IsFscryptV2Supported()
310 open(blk_device.c_str(), O_RDONLY | O_DIRECT | O_CLOEXEC)); in ReadRawDataOfFile()
364 open(path.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, 0600)); in WriteTestFile()
544 open(kTestMountpoint, O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TearDown()
576 open(kTestMountpoint, O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in SetMasterKey()
667 open(test_dir_.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in SetEncryptionPolicy()
688 open(test_file_.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, 0600)); in SetEncryptionPolicy()
740 android::base::unique_fd fd(open(test_file_.c_str(), O_RDONLY | O_CLOEXEC)); in GenerateTestFile()
1021 open(path.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, 0600)); in TestEmmcOptimizedDunWraparound()
1048 android::base::unique_fd fd(open(path.c_str(), open_flags)); in TestEmmcOptimizedDunWraparound()
[all …]
/test/vts/vndk_utils/library/
Dar_parser.py53 ar = open(archive_path, "rb")
/test/dittosuite/test/
Ddelete_file_test.cpp33 ASSERT_NE(open(path.c_str(), O_CREAT | O_CLOEXEC | O_RDWR, S_IRUSR | S_IWUSR), -1); in SetUp()
Dread_directory_test.cpp36 ASSERT_NE(open(file.c_str(), O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR), -1); in SetUp()
/test/app_compat/csuite/pylib/
Dcsuite_test.py84 with open(args.test_output_file, 'w') as test_output_file:
/test/vts-testcase/kernel/api/tun/
Dvts_kernel_tun_test.cpp62 int fd = open(tun_device_.c_str(), O_RDWR | O_NONBLOCK); in TunInit()
/test/dittosuite/src/
Dbinder_request.cpp93 int fd = open(path.c_str(), O_RDONLY); in ParseAshmemWithPath()
170 int fd = open(data_str.c_str(), O_RDONLY); in ParseParcelString()
Dtracer.cpp89 trace_marker_.open("/sys/kernel/tracing/trace_marker", in Tracer()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/sl/
DQualcommSupportLibraryDriverHandler.java49 context.getAssets().open(NNAPI_DSP_SL_LIBRARIES_ASSET_PATH))); in extractDSPLibraries()
/test/mlts/benchmark/src/com/android/nn/benchmark/util/
DIOUtils.java53 try (InputStream in = assetManager.open(assetFilename)) { in readAsset()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DDeviceInfo.java89 store.open(); in collectDeviceInfo()
DReportLogHostInfoStore.java42 public void open() throws IOException { in open() method in ReportLogHostInfoStore
/test/mlts/benchmark/src/com/android/nn/benchmark/imageprocessors/
DInception.java26 Bitmap origBitmap = BitmapFactory.decodeStream(assetManager.open(imageFileName)); in preprocess()

123