Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 1 – 25 of 145) sorted by relevance

123456

/frameworks/base/core/jni/
Dcom_android_internal_security_VerityUtils.cpp64 ::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()
Dcom_android_internal_content_F2fsUtils.cpp50 android::base::unique_fd fd(open(filePath.c_str(), O_RDONLY | O_CLOEXEC, 0)); in com_android_internal_content_F2fsUtils_nativeReleaseCompressedBlocks()
Dandroid_os_storage_StorageManager.cpp49 TEMP_FAILURE_RETRY(open(utf_chars_path.c_str(), O_RDONLY | O_CLOEXEC))); in android_os_storage_StorageManager_setQuotaProjectId()
/frameworks/base/libs/androidfw/tests/
DBackupData_test.cpp84 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/
Dtask.cpp27 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()
Dcpu_set.h47 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/
DKernelWakesParser_test.cpp67 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
105 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DProcrankParser_test.cpp95 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
133 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DBatteryTypeParser_test.cpp59 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DSystemPropertiesParser_test.cpp85 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
DPageTypeInfoParser_test.cpp99 int fd = open(testFile.c_str(), O_RDONLY); in TEST_F()
/frameworks/base/tests/FsVerityTest/block_device_writer/
Dblock_device_writer.cpp82 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/
DFileMutex.h31 : FileBase(pFileToLock + ".lock", O_RDONLY | O_CREAT, kDeleteOnClose) { } in FileMutex()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c79 int fileDesc = open(strKeyFilename, O_RDONLY); in FwdLockGlue_InitializeRoundKeys()
130 int fileDesc = open("/dev/urandom", O_RDONLY); in FwdLockGlue_GetRandomNumber()
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp180 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/
Ddirsize.c59 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY); in calculate_dir_size()
/frameworks/base/tools/obbtool/
Dpbkdf2gen.cpp44 int fd = open("/dev/urandom", O_RDONLY); in main()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp300 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()
DAsset.cpp136 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/
Dbackup.cpp57 fd = open(filename, O_RDONLY); in perform_list()
/frameworks/native/cmds/installd/
Ddexopt.cpp439 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/
Dcom_android_server_pdb_PersistentDataBlockService.cpp75 int fd = open(path.c_str(), O_RDONLY); in com_android_server_pdb_PersistentDataBlockService_getBlockDeviceSize()
/frameworks/base/tools/aapt2/cmd/
DApkInfo_test.cpp34 android::base::unique_fd fd(open(produced_path.c_str(), O_RDONLY)); in AssertProducedAndExpectedInfo()
/frameworks/native/libs/binder/tests/parcel_fuzzer/binder2corpus/
Dbinder2corpus.cpp34 unique_fd fd(open(recordingPath, O_RDONLY)); in generateCorpus()
/frameworks/native/libs/vr/libpdx_uds/
Dremote_method_tests.cpp650 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()

123456