/frameworks/base/core/jni/ |
D | com_android_internal_security_VerityUtils.cpp | 64 ::android::base::unique_fd rfd(open(path.c_str(), O_RDONLY | O_CLOEXEC)); in enableFsverity() 93 ::android::base::unique_fd rfd(open(path.c_str(), O_RDONLY | O_CLOEXEC)); in statxForFsverity() 122 ::android::base::unique_fd rfd(open(path.c_str(), O_RDONLY | O_CLOEXEC)); in measureFsverity()
|
D | com_android_internal_content_F2fsUtils.cpp | 50 android::base::unique_fd fd(open(filePath.c_str(), O_RDONLY | O_CLOEXEC, 0)); in com_android_internal_content_F2fsUtils_nativeReleaseCompressedBlocks()
|
D | android_os_storage_StorageManager.cpp | 49 TEMP_FAILURE_RETRY(open(utf_chars_path.c_str(), O_RDONLY | O_CLOEXEC))); in android_os_storage_StorageManager_setQuotaProjectId()
|
/frameworks/base/libs/androidfw/tests/ |
D | BackupData_test.cpp | 84 fd = ::open(mFilename.c_str(), O_RDONLY); in TEST_F() 125 fd = ::open(mFilename.c_str(), O_RDONLY); in TEST_F() 175 fd = ::open(mFilename.c_str(), O_RDONLY); in TEST_F() 227 fd = ::open(mFilename.c_str(), O_RDONLY); in TEST_F() 268 fd = ::open(mFilename.c_str(), O_RDONLY); in TEST_F() 328 fd = ::open(mFilename.c_str(), O_RDONLY); in TEST_F() 394 fd = ::open(mFilename.c_str(), O_RDONLY); in TEST_F()
|
/frameworks/native/services/vr/performanced/ |
D | task.cpp | 27 open(stream.str().c_str(), O_RDONLY | O_DIRECTORY)); in OpenTaskDirectory() 68 openat(task_fd_.get(), relative_path.c_str(), O_RDONLY)); in OpenTaskFile() 73 base::unique_fd fd(openat(task_fd_.get(), relative_path.c_str(), O_RDONLY)); in OpenTaskFilePointer()
|
D | cpu_set.h | 47 base::unique_fd OpenFile(const std::string& name, int flags = O_RDONLY) const; 49 int flags = O_RDONLY) const;
|
/frameworks/base/cmds/incident_helper/tests/ |
D | KernelWakesParser_test.cpp | 67 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F() 105 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | ProcrankParser_test.cpp | 95 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F() 133 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | BatteryTypeParser_test.cpp | 59 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | SystemPropertiesParser_test.cpp | 85 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
D | PageTypeInfoParser_test.cpp | 99 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
|
/frameworks/base/tests/FsVerityTest/block_device_writer/ |
D | block_device_writer.cpp | 82 android::base::unique_fd fd(open(block_device, O_RDONLY)); in get_logical_block_size() 97 android::base::unique_fd fd(open(file_name, O_RDONLY)); in get_physical_offset() 142 android::base::unique_fd fd(open(device_path, O_RDONLY | O_DIRECT)); in read_block_from_device()
|
/frameworks/compile/libbcc/lib/ |
D | FileMutex.h | 31 : FileBase(pFileToLock + ".lock", O_RDONLY | O_CREAT, kDeleteOnClose) { } in FileMutex()
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/ |
D | FwdLockGlue.c | 79 int fileDesc = open(strKeyFilename, O_RDONLY); in FwdLockGlue_InitializeRoundKeys() 130 int fileDesc = open("/dev/urandom", O_RDONLY); in FwdLockGlue_GetRandomNumber()
|
/frameworks/av/media/libcpustats/ |
D | ThreadCpuUsage.cpp | 180 int fd = open("/sys/devices/system/cpu/kernel_max", O_RDONLY); in init() 230 fd = open(freq_path, O_RDONLY | O_CLOEXEC); in getCpukHz()
|
/frameworks/native/libs/diskusage/ |
D | dirsize.c | 59 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY); in calculate_dir_size()
|
/frameworks/base/tools/obbtool/ |
D | pbkdf2gen.cpp | 44 int fd = open("/dev/urandom", O_RDONLY); in main()
|
/frameworks/base/libs/androidfw/ |
D | BackupHelpers.cpp | 300 int fd = open(realFilename, O_RDONLY); in write_update_file() 312 int fd = open(file, O_RDONLY); in compute_crc32() 416 int fd = open(g.file.c_str(), O_RDONLY); in back_up_files() 548 int fd = open(filepath.c_str(), O_RDONLY); in write_tarfile() 867 fd = open(path, O_RDONLY); in compare_file() 946 fd = open(filename, O_RDONLY); in backup_helper_test_empty() 1082 fd = open(filename, O_RDONLY); in backup_helper_test_four() 1299 fd = open(filename, O_RDONLY); in backup_helper_test_data_reader() 1451 oldSnapshotFD = open(SCRATCH_DIR "before.snap", O_RDONLY); in backup_helper_test_files()
|
D | Asset.cpp | 136 return createFromFd(open(fileName, O_RDONLY | O_BINARY), fileName, mode); in createFromFile() 212 fd = open(fileName, O_RDONLY | O_BINARY); in createFromCompressedFile() 690 return open(fname, O_RDONLY | O_BINARY); in openFileDescriptor() 697 return open(mFileName, O_RDONLY | O_BINARY); in openFileDescriptor()
|
/frameworks/base/cmds/backup/ |
D | backup.cpp | 57 fd = open(filename, O_RDONLY); in perform_list()
|
/frameworks/native/cmds/installd/ |
D | dexopt.cpp | 439 return open_profile(uid, profile, O_RDONLY, /*mode=*/ 0); in open_current_profile() 458 read_write ? (O_CREAT | O_RDWR) : O_RDONLY, in open_reference_profile() 467 unique_fd ufd = open_profile(uid, profile_path, O_RDONLY, in open_reference_profile_as_unique_file() 813 unique_fd apk_fd(open(code_path.c_str(), O_RDONLY | O_NOFOLLOW)); in dump_profiles() 843 unique_fd in_fd(open(system_profile.c_str(), O_RDONLY | O_NOFOLLOW | O_CLOEXEC)); in copy_system_profile() 1186 in_vdex_wrapper->reset(open(in_vdex_path_str.c_str(), O_RDONLY, 0), in open_vdex_files_for_dex2oat() 1238 oat_file_fd->reset(open(oat_path, O_RDONLY)); in maybe_open_oat_and_vdex_file() 1244 vdex_file_fd->reset(open(vdex_filename.c_str(), O_RDONLY)); in maybe_open_oat_and_vdex_file() 1581 zip_fds->emplace_back(open(dex_path.c_str(), O_RDONLY)); in open_dex_paths() 1679 zip_fd.reset(open(dex_path.c_str(), O_RDONLY)); in process_secondary_dex_dexopt() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_pdb_PersistentDataBlockService.cpp | 75 int fd = open(path.c_str(), O_RDONLY); in com_android_server_pdb_PersistentDataBlockService_getBlockDeviceSize()
|
/frameworks/base/tools/aapt2/cmd/ |
D | ApkInfo_test.cpp | 34 android::base::unique_fd fd(open(produced_path.c_str(), O_RDONLY)); in AssertProducedAndExpectedInfo()
|
/frameworks/native/libs/binder/tests/parcel_fuzzer/binder2corpus/ |
D | binder2corpus.cpp | 34 unique_fd fd(open(recordingPath, O_RDONLY)); in generateCorpus()
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | remote_method_tests.cpp | 650 LocalHandle fd("/dev/zero", O_RDONLY); in TEST_F() 660 fd = client->GetFile("/dev/zero", O_RDONLY); in TEST_F() 669 const int error = client->GetFile("/dev/zero", O_RDONLY, &fd); in TEST_F() 734 TestFdType result = client->GetTestFdType(10, "/dev/zero", O_RDONLY); in TEST_F() 739 client->OpenFiles({{{"/dev/zero", O_RDONLY}, in TEST_F() 741 {"/dev/zero", O_RDONLY}}}); in TEST_F() 762 client->ReadFile(buffer.data(), buffer.size(), "/dev/zero", O_RDONLY); in TEST_F()
|