Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/libs/androidfw/tests/
DBackupData_test.cpp75 int fd = ::open(mFilename.c_str(), O_WRONLY); in TEST_F()
117 int fd = ::open(mFilename.c_str(), O_WRONLY); in TEST_F()
165 int fd = ::open(mFilename.c_str(), O_WRONLY); in TEST_F()
220 int fd = ::open(mFilename.c_str(), O_WRONLY); in TEST_F()
259 int fd = ::open(mFilename.c_str(), O_WRONLY); in TEST_F()
320 int fd = ::open(mFilename.c_str(), O_WRONLY); in TEST_F()
388 int fd = ::open(mFilename.c_str(), O_WRONLY); in TEST_F()
/frameworks/opt/net/wifi/libwifi_hal/
Dwifi_hal_common.cpp118 fd = TEMP_FAILURE_RETRY(open(WIFI_DRIVER_STATE_CTRL_PARAM, O_WRONLY)); in wifi_change_driver_state()
260 fd = TEMP_FAILURE_RETRY(open(WIFI_DRIVER_FW_PATH_PARAM, O_WRONLY)); in wifi_change_fw_path()
/frameworks/libs/binary_translation/base/
Draw_syscall_tests.cc55 int fd_out = open("/dev/null", O_WRONLY); in TEST()
Dtracing.cc73 int fd = open(trace_filename.c_str(), O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, S_IWUSR); in TraceToFile()
/frameworks/libs/binary_translation/runtime_primitives/
Dprofiler_interface.cc70 int fd = open(buf, O_WRONLY | O_CREAT | O_CLOEXEC, S_IWUSR); in ProfilerOpenLogFile()
/frameworks/base/tests/FsVerityTest/block_device_writer/
Dblock_device_writer.cpp63 fd_.reset(TEMP_FAILURE_RETRY(open(file_path, O_WRONLY | O_CLOEXEC, 0))); in ScopedF2fsFilePinning()
161 android::base::unique_fd fd(open(device_path, O_WRONLY | O_DIRECT)); in write_block_to_device()
/frameworks/base/services/core/jni/
Dcom_android_server_pdb_PersistentDataBlockService.cpp89 int fd = open(path.c_str(), O_WRONLY); in com_android_server_pdb_PersistentDataBlockService_wipe()
Dcom_android_server_UsbAlsaMidiDevice.cpp80 fd = open(path, O_WRONLY); in android_server_UsbAlsaMidiDevice_open()
/frameworks/base/tools/aapt2/cmd/
DApkInfo.cpp81 int mode = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY; in Action()
/frameworks/native/libs/binder/tests/parcel_fuzzer/binder2corpus/
Dbinder2corpus.cpp53 constexpr int openFlags = O_WRONLY | O_CREAT | O_BINARY | O_CLOEXEC; in generateCorpus()
/frameworks/av/media/libaudioclient/tests/
Dtest_create_utils.cpp97 outputFileFd = open(*argv, O_WRONLY | O_CREAT, mode); in main()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java39 import static android.system.OsConstants.O_WRONLY;
691 assertTranslate("w", O_WRONLY | O_CREAT, in testTranslateMode()
693 assertTranslate("wt", O_WRONLY | O_CREAT | O_TRUNC, in testTranslateMode()
695 assertTranslate("wa", O_WRONLY | O_CREAT | O_APPEND, in testTranslateMode()
705 translateModePosixToPfd(O_RDWR | O_WRONLY); in testMalformedTransate_int()
717 translateModePosixToString(O_RDWR | O_WRONLY); in testMalformedTransate_string()
743 assertEquals(O_WRONLY, translateModeAccessToPosix(W_OK)); in testTranslateMode_Access()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaWriter.h44 if ((flags & (O_RDWR | O_WRONLY)) == 0) { in isFdOpenModeValid()
/frameworks/base/cmds/incidentd/tests/
DProtoFileReader_test.cpp62 unique_fd fd(open(testFile.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR)); in TEST()
/frameworks/base/cmds/screencap/
Dscreencap.cpp134 int fd = open("/dev/null", O_WRONLY); in notifyMediaScanner()
197 fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0664); in saveImage()
/frameworks/av/media/utils/fuzzers/
DServiceUtilitiesFuzz.cpp44 int fd = open("/dev/null", O_WRONLY); in __anon5c3caf0d0202()
/frameworks/native/libs/renderengine/benchmark/
DCodec.cpp93 base::unique_fd fd{open(path, O_WRONLY | O_CREAT, S_IWUSR)}; in encodeToJpeg()
/frameworks/base/cmds/gpu_counter_producer/
Dmain.cpp83 int fd = open(kPidFileName, O_CREAT | O_WRONLY | O_TRUNC, in writeToPidFile()
/frameworks/native/cmds/installd/tests/
Dtest_utils.h103 int fd = open(file.c_str(), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); in WriteBase64ToFile()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c88 fileDesc = open(strKeyFilename, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR); in FwdLockGlue_InitializeRoundKeys()
/frameworks/compile/mclinker/lib/Support/
DFileHandle.cpp52 result |= O_WRONLY; in oflag()
/frameworks/av/media/module/libmediatranscoding/transcoder/tools/
DTranscode.cpp131 const int dstFd = open(config.dstFile.c_str(), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); in transcode()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DHdrTranscodeTests.cpp87 const int dstFd = open(dstPath.c_str(), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); in transcode()
/frameworks/base/libs/androidfw/
DFileStream.cpp133 int mode = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_BINARY; in FileOutputStream()
/frameworks/base/core/java/android/os/
DFileUtils.java35 import static android.system.OsConstants.O_WRONLY;
1557 res = O_WRONLY | O_CREAT; in translateModeStringToPosix()
1578 } else if ((mode & O_ACCMODE) == O_WRONLY) { in translateModePosixToString()
1600 } else if ((mode & O_ACCMODE) == O_WRONLY) { in translateModePosixToPfd()
1626 res = O_WRONLY; in translateModePfdToPosix()
1656 return O_WRONLY; in translateModeAccessToPosix()

123