Home
last modified time | relevance | path

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

/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DMediaTranscoderTests.cpp131 const int dstFd = open(destPath, kOpenFlags, kFileMode); in transcodeHelper() local
132 EXPECT_EQ(transcoder->configureDestination(dstFd), AMEDIA_OK); in transcodeHelper()
172 close(dstFd); in transcodeHelper()
221 int dstFd = open(destPath, O_RDONLY); in verifyOutputFormat() local
222 EXPECT_GT(dstFd, 0); in verifyOutputFormat()
223 ssize_t fileSize = lseek(dstFd, 0, SEEK_END); in verifyOutputFormat()
224 lseek(dstFd, 0, SEEK_SET); in verifyOutputFormat()
227 MediaSampleReaderNDK::createFromFd(dstFd, 0, fileSize); in verifyOutputFormat()
267 close(dstFd); in verifyOutputFormat()
DHdrTranscodeTests.cpp87 const int dstFd = open(dstPath.c_str(), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); in transcode() local
88 EXPECT_EQ(transcoder->configureDestination(dstFd), AMEDIA_OK); in transcode()
89 close(dstFd); in transcode()
/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() local
132 if (dstFd <= 0) { in transcode()
137 status = transcoder->configureDestination(dstFd); in transcode()
138 close(dstFd); in transcode()
/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/
DMediaTranscoderBenchmark.cpp127 int dstFd = 0; in TranscodeMediaFile() local
138 if ((dstFd = open(dstPath.c_str(), kDstOpenFlags, kDstFileMode)) < 0) { in TranscodeMediaFile()
153 status = transcoder->configureDestination(dstFd); in TranscodeMediaFile()
241 if (dstFd > 0) close(dstFd); in TranscodeMediaFile()
/frameworks/base/libs/hwui/jni/pdf/
DPdfEditor.cpp63 int dstFd; member
86 const bool success = writeAllBytes(writer->dstFd, buffer, size); in writeBlock()
97 writer.dstFd = fd; in nativeWrite()
/frameworks/av/media/module/libmediatranscoding/
DTranscoderWrapper.cpp377 ::ndk::ScopedFileDescriptor srcFd, dstFd; in setupTranscoder()
396 status = clientCb->openFileDescriptor(request.destinationFilePath, "rw", &dstFd); in setupTranscoder()
397 if (!status.isOk() || dstFd.get() < 0) { in setupTranscoder()
402 dstFdInt = dstFd.get(); in setupTranscoder()