/frameworks/native/libs/binder/ |
D | FdUtils.h | 41 inline bool Pipe(unique_fd* read, unique_fd* write, int flags = O_CLOEXEC) { 45 if (flags & ~(O_CLOEXEC | O_NONBLOCK)) { 52 if (flags & O_CLOEXEC) {
|
/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()
|
D | com_android_internal_content_FileSystemUtils.cpp | 96 android::base::unique_fd fd(open(filePath, O_RDWR | O_CLOEXEC)); in punchHoles() 259 android::base::unique_fd fd(open(filePath, O_RDWR | O_CLOEXEC)); in punchHolesInZip()
|
D | android_ddm_DdmHandleNativeHeap.cpp | 55 int fd = open(path, O_RDONLY | O_CLOEXEC); in ReadFile()
|
D | fd_utils.cpp | 384 int dup_flags = (fd_flags & FD_CLOEXEC) ? O_CLOEXEC : 0; in ReopenOrDetach() 465 const int dev_null_fd = open("/dev/null", O_RDWR | O_CLOEXEC); in DetachSocket() 470 if (dup3(dev_null_fd, fd, O_CLOEXEC) == -1) { in DetachSocket()
|
D | android_text_Hyphenator.cpp | 41 const int fd = open(hyFilePath.c_str(), O_RDONLY | O_CLOEXEC); in mmapPatternFile()
|
D | android_util_Process.cpp | 286 fd = open(proc_path, O_RDONLY | O_CLOEXEC); in android_os_Process_setProcessGroup() 602 int fd = open(text, O_WRONLY | O_CLOEXEC); in android_os_Process_setSwappiness() 743 int fd = open(file.c_str(), O_RDONLY | O_CLOEXEC); in android_os_Process_readProcLines() 1056 ::android::base::unique_fd fd(open(file8, O_RDONLY | O_CLOEXEC)); in android_os_Process_readProcFile() 1279 int fd = open(path, O_RDONLY | O_CLOEXEC); in android_os_Process_getPidsForCommands()
|
/frameworks/libs/binary_translation/kernel_api/riscv64/ |
D | open_emulation.cc | 67 static_assert(O_CLOEXEC == 02000000); 77 O_NOFOLLOW | O_CLOEXEC | O_DIRECT | __O_SYNC | O_PATH;
|
/frameworks/base/libs/androidfw/ |
D | FileStream.cpp | 32 #define O_CLOEXEC O_NOINHERIT macro 42 int mode = O_RDONLY | O_CLOEXEC | O_BINARY; in FileInputStream() 133 int mode = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY; in FileOutputStream()
|
/frameworks/base/cmds/incidentd/tests/ |
D | ProtoFileReader_test.cpp | 62 unique_fd fd(open(testFile.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR)); in TEST() 74 int fd = open(testFile.c_str(), O_RDONLY | O_CLOEXEC); in TEST()
|
D | FdBuffer_test.cpp | 238 unique_fd fd(open(testFile.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F() 272 unique_fd fd(open(testFile.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
|
/frameworks/libs/binary_translation/runtime_primitives/ |
D | profiler_interface.cc | 70 int fd = open(buf, O_WRONLY | O_CREAT | O_CLOEXEC, S_IWUSR); in ProfilerOpenLogFile()
|
/frameworks/native/libs/binder/tests/ |
D | binderRecordReplayTest.cpp | 125 O_RDWR | O_CREAT | O_CLOEXEC | O_TRUNC, 0666)); in replayFuzzService() 178 O_RDWR | O_CREAT | O_CLOEXEC, 0666)); in recordReplay() 378 unique_fd saved(open("/data/local/tmp/test_fd", O_RDWR | O_CREAT | O_CLOEXEC, 0666)); in TEST_F() 383 unique_fd changed(open("/data/local/tmp/test_des", O_RDWR | O_CREAT | O_CLOEXEC, 0666)); in TEST_F()
|
D | binderDriverInterfaceTest.cpp | 37 m_binderFd = open(BINDER_DEV_NAME, O_RDWR | O_NONBLOCK | O_CLOEXEC); in SetUp() 153 int binderFd = open(BINDER_DEV_NAME, O_RDWR | O_NONBLOCK | O_CLOEXEC); in TEST_F()
|
/frameworks/av/camera/tests/fuzzer/ |
D | camera_vendorTagDescriptor_fuzzer.cpp | 139 int32_t fd = open("/dev/null", O_CLOEXEC | O_RDWR | O_CREAT); in invokeVendorTagDescriptor() 191 int32_t fd = open("/dev/null", O_CLOEXEC | O_RDWR | O_CREAT); in invokeVendorTagDescriptorCache()
|
/frameworks/native/libs/binder/tests/parcel_fuzzer/binder2corpus/ |
D | binder2corpus.cpp | 53 constexpr int openFlags = O_WRONLY | O_CREAT | O_BINARY | O_CLOEXEC; in generateCorpus()
|
/frameworks/native/libs/binder/tests/parcel_fuzzer/ |
D | random_fd.cpp | 52 int flags = O_CLOEXEC; in getRandomFds()
|
/frameworks/libs/binary_translation/base/ |
D | tracing.cc | 73 int fd = open(trace_filename.c_str(), O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, S_IWUSR); in TraceToFile()
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.cpp | 267 return Open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in OpenForWrite() 272 return Open(path, O_RDONLY | O_CLOEXEC | O_NOFOLLOW); in OpenForRead() 417 … TEMP_FAILURE_RETRY(open(abs_path.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_NONBLOCK))); in GetDumpFds() 936 TEMP_FAILURE_RETRY(open(entry_path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC))); in AddZipEntry() 1050 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpIncidentReport() 1073 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpNetstatsProto() 1114 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpVisibleWindowViews() 1449 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpHals() 2277 android::base::unique_fd fd(mkostemp(file_name_buf.get(), O_APPEND | O_CLOEXEC)); in DumpTraces() 2637 open(paths[i].c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, in DumpstateBoard() [all …]
|
/frameworks/base/core/java/android/os/ |
D | ParcelFileDescriptor.java | 22 import static android.system.OsConstants.O_CLOEXEC; 353 final int flags = FileUtils.translateModePfdToPosix(mode) | ifAtLeastQ(O_CLOEXEC); in openInternal() 538 final FileDescriptor[] fds = Os.pipe2(ifAtLeastQ(O_CLOEXEC)); in createPipe() 560 final FileDescriptor[] fds = Os.pipe2(ifAtLeastQ(O_CLOEXEC)); in createReliablePipe()
|
/frameworks/base/cmds/incidentd/src/ |
D | WorkDirectory.cpp | 78 int fd = open(filename.c_str(), O_RDONLY | O_CLOEXEC); in read_proto() 97 int fd = open(filename.c_str(), O_CREAT | O_TRUNC | O_RDWR | O_CLOEXEC, 0660); in write_proto() 382 mDataFd = open(mDataFileName.c_str(), O_CREAT | O_TRUNC | O_RDWR | O_CLOEXEC, 0660); in startWritingDataFile() 399 int dataFd = open(mDataFileName.c_str(), O_RDONLY | O_CLOEXEC); in startFilteringData()
|
/frameworks/native/cmds/installd/ |
D | utils.cpp | 434 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_CLOEXEC))); in set_quota_project_id() 593 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in _delete_dir_contents() 808 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in delete_dir_contents_fd() 858 int fsfd = openat(sdfd, name, O_RDONLY | O_NOFOLLOW | O_CLOEXEC); in _copy_dir_files() 859 int fdfd = openat(ddfd, name, O_WRONLY | O_NOFOLLOW | O_CLOEXEC | O_CREAT, 0600); in _copy_dir_files() 1367 O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC)); in collect_profiles()
|
/frameworks/opt/net/wifi/libwifi_hal/ |
D | wifi_hal_common.cpp | 64 fd = TEMP_FAILURE_RETRY(open(filename, O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in insmod()
|