Home
last modified time | relevance | path

Searched refs:sourceFd (Results 1 – 9 of 9) sorted by relevance

/frameworks/av/media/libmediatranscoding/transcoder/tests/
DVideoTrackTranscoderTests.cpp48 const int sourceFd = open(sourcePath, O_RDONLY); in SetUp() local
49 ASSERT_GT(sourceFd, 0); in SetUp()
51 const off_t fileSize = lseek(sourceFd, 0, SEEK_END); in SetUp()
52 lseek(sourceFd, 0, SEEK_SET); in SetUp()
54 mMediaSampleReader = MediaSampleReaderNDK::createFromFd(sourceFd, 0, fileSize); in SetUp()
56 close(sourceFd); in SetUp()
DMediaTrackTranscoderTests.cpp68 const int sourceFd = open(sourcePath, O_RDONLY); in initSampleReader() local
69 ASSERT_GT(sourceFd, 0); in initSampleReader()
71 const size_t fileSize = lseek(sourceFd, 0, SEEK_END); in initSampleReader()
72 lseek(sourceFd, 0, SEEK_SET); in initSampleReader()
74 mMediaSampleReader = MediaSampleReaderNDK::createFromFd(sourceFd, 0 /* offset */, fileSize); in initSampleReader()
76 close(sourceFd); in initSampleReader()
DMediaSampleWriterTests.cpp135 int sourceFd = open(sourcePath, O_RDONLY); in init() local
136 ASSERT_GT(sourceFd, 0); in init()
138 off_t fileSize = lseek(sourceFd, 0, SEEK_END); in init()
139 lseek(sourceFd, 0, SEEK_SET); in init()
141 media_status_t status = AMediaExtractor_setDataSourceFd(mExtractor, sourceFd, 0, fileSize); in init()
143 close(sourceFd); in init()
556 int sourceFd = open(destinationPath, O_RDONLY); in TEST_F() local
557 ASSERT_GT(sourceFd, 0); in TEST_F()
559 off_t fileSize = lseek(sourceFd, 0, SEEK_END); in TEST_F()
560 lseek(sourceFd, 0, SEEK_SET); in TEST_F()
[all …]
DMediaSampleReaderNDKTests.cpp87 SampleAccessTester(int sourceFd, size_t fileSize) { in SampleAccessTester() argument
88 mSampleReader = MediaSampleReaderNDK::createFromFd(sourceFd, 0, fileSize); in SampleAccessTester()
/frameworks/av/media/libmediatranscoding/include/media/
DTranscodingRequest.h48 sourceFd = ndk::ScopedFileDescriptor(dup(parcel.sourceFd.get())); in setTo()
/frameworks/av/media/libmediatranscoding/aidl/android/media/
DTranscodingRequestParcel.aidl42 @nullable ParcelFileDescriptor sourceFd;
/frameworks/base/core/jni/
Dcom_android_internal_os_ZygoteCommandBuffer.cpp56 NativeCommandBuffer(int sourceFd): mEnd(0), mNext(0), mLinesLeft(0), mFd(sourceFd) {} in NativeCommandBuffer() argument
/frameworks/av/media/libmediatranscoding/
DTranscoderWrapper.cpp378 int srcFdInt = request.sourceFd.get(); in setupTranscoder()
/frameworks/base/apex/media/framework/java/android/media/
DMediaTranscodingManager.java653 parcel.sourceFd = mSourceFileDescriptor; in writeToParcel()