Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 25 of 74) sorted by relevance

123

/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/av/media/mtp/tests/MtpFuzzer/
Dmtp_handle_fuzzer.cpp77 int32_t fd = open(file, O_CREAT | O_RDWR | O_NONBLOCK); in createDeviceFile()
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/libs/binary_translation/kernel_api/riscv64/
Dopen_emulation.cc56 static_assert(O_CREAT == 00000100);
75 const int kCompatibleOpenFlags = O_ACCMODE | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | O_APPEND |
/frameworks/compile/libbcc/lib/
DFileMutex.h31 : FileBase(pFileToLock + ".lock", O_RDONLY | O_CREAT, kDeleteOnClose) { } in FileMutex()
/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/libs/binary_translation/runtime_primitives/
Dprofiler_interface.cc70 int fd = open(buf, O_WRONLY | O_CREAT | O_CLOEXEC, S_IWUSR); in ProfilerOpenLogFile()
/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()
/frameworks/native/cmds/cmd/
Dcmd.cpp86 flags = O_WRONLY|O_CREAT|O_TRUNC; in openFile()
89 flags = O_RDWR|O_CREAT|O_TRUNC; in openFile()
/frameworks/base/libs/androidfw/tests/
DObbFile_test.cpp46 int fd = ::open(mFileName.c_str(), O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in SetUp()
/frameworks/base/tools/aapt2/cmd/
DApkInfo.cpp81 int mode = O_WRONLY | O_CREAT | O_TRUNC | O_BINARY; in Action()
/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/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.java35 import static android.system.OsConstants.O_CREAT;
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()
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()
/frameworks/libs/binary_translation/base/
Dtracing.cc73 int fd = open(trace_filename.c_str(), O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, S_IWUSR); in TraceToFile()
/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/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/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/native/cmds/installd/
Drestorable_file.cpp145 fd = open(tmp_file_path.c_str(), O_RDWR | O_CREAT, permissions); in CreateWritableFile()
/frameworks/base/native/graphics/jni/fuzz/
Dfuzz_imagedecoder.cpp38 int32_t fileDesc = open(testFd, O_RDWR | O_CREAT | O_TRUNC); in init()
/frameworks/base/core/java/android/os/
DRevocableFileDescriptor.java63 OsConstants.O_CREAT | OsConstants.O_RDWR, 0700)); in RevocableFileDescriptor()
/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/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()

123