/frameworks/av/media/mtp/tests/MtpFuzzer/ |
D | mtp_handle_fuzzer.cpp | 77 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/ |
D | cmd_fuzzer.cpp | 74 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/ |
D | com_android_server_UsbDeviceManager.cpp | 62 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()
|
D | com_android_server_SerialService.cpp | 41 int fd = open(pathStr, O_RDWR | O_NOCTTY); in android_server_SerialService_open()
|
D | com_android_server_SystemClockTime.cpp | 46 android::base::unique_fd fd{open(rtc_dev.c_str(), O_RDWR)}; in setTime()
|
/frameworks/native/services/surfaceflinger/tests/waitforvsync/ |
D | waitforvsync.cpp | 33 int fd = open("/dev/graphics/fb0", O_RDWR); in main()
|
/frameworks/native/opengl/libs/EGL/ |
D | FileBlobCache.cpp | 134 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/ |
D | MtpDevHandle.cpp | 64 mFd.reset(TEMP_FAILURE_RETRY(open(mtp_dev_path, O_RDWR))); in start()
|
D | MtpFfsHandle.cpp | 90 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/ |
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/base/core/tests/coretests/src/android/os/ |
D | FileUtilsTest.java | 37 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/ |
D | cmd.cpp | 89 flags = O_RDWR|O_CREAT|O_TRUNC; in openFile() 95 flags = O_RDWR; in openFile()
|
/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/ |
D | random_fd.cpp | 44 ret.push_back(unique_fd(open("/dev/null", O_RDWR))); in getRandomFds()
|
/frameworks/base/core/jni/ |
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()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaWriter.h | 44 if ((flags & (O_RDWR | O_WRONLY)) == 0) { in isFdOpenModeValid()
|
/frameworks/av/media/libstagefright/tests/writer/ |
D | WriterTest.cpp | 475 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/ |
D | restorable_file.cpp | 145 fd = open(tmp_file_path.c_str(), O_RDWR | O_CREAT, permissions); in CreateWritableFile()
|
/frameworks/base/core/java/android/os/ |
D | RevocableFileDescriptor.java | 63 OsConstants.O_CREAT | OsConstants.O_RDWR, 0700)); in RevocableFileDescriptor()
|
D | FileUtils.java | 33 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/ |
D | fuzz_imagedecoder.cpp | 38 int32_t fileDesc = open(testFd, O_RDWR | O_CREAT | O_TRUNC); in init()
|
/frameworks/av/cmds/stagefright/ |
D | audioloop.cpp | 154 int fd = open(fileOut, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in main()
|
/frameworks/base/libs/usb/tests/accessorytest/ |
D | hid.c | 137 int fd = open(path, O_RDWR); in open_hid()
|
/frameworks/compile/mclinker/lib/Support/ |
D | FileHandle.cpp | 48 result |= O_RDWR; in oflag()
|