Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_handle_fuzzer.cpp77 int32_t fd = open(file, O_CREAT | O_RDWR | O_NONBLOCK); in createDeviceFile()
82 int32_t fd = open(file, O_RDWR | O_NONBLOCK); in writeDeviceFile()
114 : open(kFuzzerTestFile.c_str(), O_CREAT | O_RDWR | O_NONBLOCK); in invokeWriteDescriptor()
125 int32_t controlFd = open(kFuzzerTestFile.c_str(), O_CREAT | O_RDWR | O_NONBLOCK); in invokeMtpFfsHandle()
157 mfr.fd = open(kFuzzerMtpInputFile.c_str(), O_CREAT | O_RDWR | O_NONBLOCK); in invokeMtpFfsHandle()
178 mfr.fd = open(kFuzzerMtpOutputFile.c_str(), O_CREAT | O_RDWR | O_NONBLOCK); in invokeMtpFfsHandle()
/frameworks/native/cmds/cmd/fuzzer/
Dcmd_fuzzer.cpp74 int32_t in = open("/dev/null", O_RDWR | O_CREAT); in process()
75 int32_t out = open("/dev/null", O_RDWR | O_CREAT); in process()
76 int32_t err = open("/dev/null", O_RDWR | O_CREAT); in process()
/frameworks/base/services/core/jni/
Dcom_android_server_UsbDeviceManager.cpp62 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_getAccessoryStrings()
84 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_openAccessory()
101 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_isStartRequested()
119 fd = TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP0 : FFS_MTP_EP0, O_RDWR)); in android_server_UsbDeviceManager_openControl()
Dcom_android_server_SerialService.cpp41 int fd = open(pathStr, O_RDWR | O_NOCTTY); in android_server_SerialService_open()
Dcom_android_server_SystemClockTime.cpp46 android::base::unique_fd fd{open(rtc_dev.c_str(), O_RDWR)}; in setTime()
/frameworks/native/services/surfaceflinger/tests/waitforvsync/
Dwaitforvsync.cpp33 int fd = open("/dev/graphics/fb0", O_RDWR); in main()
/frameworks/native/opengl/libs/EGL/
DFileBlobCache.cpp134 int fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0); in writeToFile()
145 fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0); in writeToFile()
/frameworks/av/media/mtp/
DMtpDevHandle.cpp64 mFd.reset(TEMP_FAILURE_RETRY(open(mtp_dev_path, O_RDWR))); in start()
DMtpFfsHandle.cpp90 mBulkIn.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN, O_RDWR))); in openEndpoints()
98 mBulkOut.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT, O_RDWR))); in openEndpoints()
106 mIntr.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR, O_RDWR))); in openEndpoints()
/frameworks/native/libs/binder/tests/
DbinderRecordReplayTest.cpp125 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()
DbinderDriverInterfaceTest.cpp37 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/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java37 import static android.system.OsConstants.O_RDWR;
684 assertTranslate("rw", O_RDWR | O_CREAT, in testTranslateMode()
686 assertTranslate("rwt", O_RDWR | O_CREAT | O_TRUNC, in testTranslateMode()
688 assertTranslate("rwa", O_RDWR | O_CREAT | O_APPEND, in testTranslateMode()
705 translateModePosixToPfd(O_RDWR | O_WRONLY); in testMalformedTransate_int()
717 translateModePosixToString(O_RDWR | O_WRONLY); in testMalformedTransate_string()
744 assertEquals(O_RDWR, translateModeAccessToPosix(R_OK | W_OK)); in testTranslateMode_Access()
745 assertEquals(O_RDWR, translateModeAccessToPosix(R_OK | W_OK | X_OK)); in testTranslateMode_Access()
/frameworks/native/cmds/cmd/
Dcmd.cpp89 flags = O_RDWR|O_CREAT|O_TRUNC; in openFile()
95 flags = O_RDWR; in openFile()
/frameworks/av/camera/tests/fuzzer/
Dcamera_vendorTagDescriptor_fuzzer.cpp139 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/
Drandom_fd.cpp44 ret.push_back(unique_fd(open("/dev/null", O_RDWR))); in getRandomFds()
/frameworks/base/core/jni/
Dcom_android_internal_content_FileSystemUtils.cpp96 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()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaWriter.h44 if ((flags & (O_RDWR | O_WRONLY)) == 0) { in isFdOpenModeValid()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp475 open(outputFile.c_str(), O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in TEST_P()
490 open(outputFile.c_str(), O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in TEST_P()
602 open(outputFile.c_str(), O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in TEST_P()
662 open(outputFile.c_str(), O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in TEST_P()
797 open(OUTPUT_FILE_NAME, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in TEST_P()
853 open(OUTPUT_FILE_NAME, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in TEST_P()
916 open(outputFile.c_str(), O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in TEST_P()
/frameworks/native/cmds/installd/
Drestorable_file.cpp145 fd = open(tmp_file_path.c_str(), O_RDWR | O_CREAT, permissions); in CreateWritableFile()
/frameworks/base/core/java/android/os/
DRevocableFileDescriptor.java63 OsConstants.O_CREAT | OsConstants.O_RDWR, 0700)); in RevocableFileDescriptor()
DFileUtils.java33 import static android.system.OsConstants.O_RDWR;
1555 res = O_RDWR | O_CREAT; in translateModeStringToPosix()
1576 if ((mode & O_ACCMODE) == O_RDWR) { in translateModePosixToString()
1598 if ((mode & O_ACCMODE) == O_RDWR) { in translateModePosixToPfd()
1624 res = O_RDWR; in translateModePfdToPosix()
1652 return O_RDWR; in translateModeAccessToPosix()
/frameworks/base/native/graphics/jni/fuzz/
Dfuzz_imagedecoder.cpp38 int32_t fileDesc = open(testFd, O_RDWR | O_CREAT | O_TRUNC); in init()
/frameworks/av/cmds/stagefright/
Daudioloop.cpp154 int fd = open(fileOut, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in main()
/frameworks/base/libs/usb/tests/accessorytest/
Dhid.c137 int fd = open(path, O_RDWR); in open_hid()
/frameworks/compile/mclinker/lib/Support/
DFileHandle.cpp48 result |= O_RDWR; in oflag()

123