Home
last modified time | relevance | path

Searched refs:kOpenFlags (Results 1 – 6 of 6) sorted by relevance

/aosp12/frameworks/av/services/mediatranscoding/tests/
H A DMediaTranscodingServiceTestHelper.h283 int kOpenFlags; in openFileDescriptor() local
286 kOpenFlags = O_WRONLY | O_CREAT | O_TRUNC; in openFileDescriptor()
289 kOpenFlags = O_RDWR | O_CREAT; in openFileDescriptor()
293 fd = open(in_fileUri.c_str(), kOpenFlags, kFileMode); in openFileDescriptor()
/aosp12/system/core/fs_mgr/libfiemap/
H A Dimage_manager.cpp335 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in CreateLoopDevice() local
336 android::base::unique_fd file_fd(open(file.c_str(), kOpenFlags)); in CreateLoopDevice()
401 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in MapWithLoopDeviceList() local
402 unique_fd fd(open(block_device.c_str(), kOpenFlags)); in MapWithLoopDeviceList()
/aosp12/frameworks/base/core/jni/
H A Dfd_utils.cpp306 static const int kOpenFlags = (O_RDONLY | O_WRONLY | O_RDWR | O_DSYNC | O_SYNC); in CreateFromFd() local
307 int open_flags = fs_flags & (kOpenFlags); in CreateFromFd()
308 fs_flags = fs_flags & (~(kOpenFlags)); in CreateFromFd()
/aosp12/frameworks/av/media/libmediatranscoding/transcoder/tests/
H A DMediaTranscoderTests.cpp59 static constexpr int kOpenFlags = O_WRONLY | O_CREAT | O_EXCL; variable
131 const int dstFd = open(destPath, kOpenFlags, kFileMode); in transcodeHelper()
/aosp12/system/core/fs_mgr/liblp/
H A Dimages.cpp211 … static const int kOpenFlags = O_CREAT | O_RDWR | O_TRUNC | O_CLOEXEC | O_NOFOLLOW | O_BINARY; in ExportFiles() local
212 unique_fd fd(open(file_path.c_str(), kOpenFlags, 0644)); in ExportFiles()
/aosp12/system/core/fs_mgr/libsnapshot/
H A Dsnapshot_fuzz_utils.cpp395 static constexpr int kOpenFlags = O_RDWR | O_NOFOLLOW | O_CLOEXEC; in CheckCreateLoopDevice() local
396 android::base::unique_fd file_fd(open(file.c_str(), kOpenFlags)); in CheckCreateLoopDevice()