/test/mlts/benchmark/tools/ |
D | gen_mobilenet_input.py | 16 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:
|
D | convert_binary_to_img.py | 32 with open(filename, 'rb') as f:
|
D | tensor_utils.py | 49 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/ |
D | generate_module.py | 106 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/ |
D | ditto2cpp.py | 76 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/ |
D | vndk_data.py | 83 _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:
|
D | extract_lsdump.py | 81 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/ |
D | BowTest.cpp | 75 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/ |
D | lz4_legacy.cpp | 50 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()
|
D | ramdisk_utils.cpp | 39 TEMP_FAILURE_RETRY(open(boot_path.data(), O_RDONLY))); in ExtractRamdiskRaw()
|
/test/vts-testcase/security/system_property/ |
D | vts_treble_sys_prop_test.py | 225 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/ |
D | csuite_test_utils.py | 58 '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/ |
D | file_based_encryption_tests.cpp | 186 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/ |
D | ar_parser.py | 53 ar = open(archive_path, "rb")
|
/test/dittosuite/test/ |
D | delete_file_test.cpp | 33 ASSERT_NE(open(path.c_str(), O_CREAT | O_CLOEXEC | O_RDWR, S_IRUSR | S_IWUSR), -1); in SetUp()
|
D | read_directory_test.cpp | 36 ASSERT_NE(open(file.c_str(), O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR), -1); in SetUp()
|
/test/app_compat/csuite/pylib/ |
D | csuite_test.py | 84 with open(args.test_output_file, 'w') as test_output_file:
|
/test/vts-testcase/kernel/api/tun/ |
D | vts_kernel_tun_test.cpp | 62 int fd = open(tun_device_.c_str(), O_RDWR | O_NONBLOCK); in TunInit()
|
/test/dittosuite/src/ |
D | binder_request.cpp | 93 int fd = open(path.c_str(), O_RDONLY); in ParseAshmemWithPath() 170 int fd = open(data_str.c_str(), O_RDONLY); in ParseParcelString()
|
D | tracer.cpp | 89 trace_marker_.open("/sys/kernel/tracing/trace_marker", in Tracer()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/sl/ |
D | QualcommSupportLibraryDriverHandler.java | 49 context.getAssets().open(NNAPI_DSP_SL_LIBRARIES_ASSET_PATH))); in extractDSPLibraries()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/util/ |
D | IOUtils.java | 53 try (InputStream in = assetManager.open(assetFilename)) { in readAsset()
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
D | DeviceInfo.java | 89 store.open(); in collectDeviceInfo()
|
D | ReportLogHostInfoStore.java | 42 public void open() throws IOException { in open() method in ReportLogHostInfoStore
|
/test/mlts/benchmark/src/com/android/nn/benchmark/imageprocessors/ |
D | Inception.java | 26 Bitmap origBitmap = BitmapFactory.decodeStream(assetManager.open(imageFileName)); in preprocess()
|