Home
last modified time | relevance | path

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

/aosp12/frameworks/av/media/libmediatranscoding/transcoder/tests/
H A 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()
H A 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()
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()
562 media_status_t status = AMediaExtractor_setDataSourceFd(extractor, sourceFd, 0, fileSize); in TEST_F()
[all …]
H A 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()
H A DMediaSampleReaderNDKTests.cpp87 SampleAccessTester(int sourceFd, size_t fileSize) { in SampleAccessTester() argument
88 mSampleReader = MediaSampleReaderNDK::createFromFd(sourceFd, 0, fileSize); in SampleAccessTester()
/aosp12/frameworks/av/media/libmediatranscoding/include/media/
H A DTranscodingRequest.h48 sourceFd = ndk::ScopedFileDescriptor(dup(parcel.sourceFd.get())); in setTo()
/aosp12/frameworks/av/media/libmediatranscoding/aidl/android/media/
H A DTranscodingRequestParcel.aidl42 @nullable ParcelFileDescriptor sourceFd;
/aosp12/frameworks/base/core/jni/
H A Dcom_android_internal_os_ZygoteCommandBuffer.cpp56 NativeCommandBuffer(int sourceFd): mEnd(0), mNext(0), mLinesLeft(0), mFd(sourceFd) {} in NativeCommandBuffer() argument
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/services/
H A DCopyJob.java886 try (ParcelFileDescriptor sourceFd = cr.openFile(sourceUri, "r", null)) { in isRecursiveCopy() argument
887 StructStat sourceStat = Os.fstat(sourceFd.getFileDescriptor()); in isRecursiveCopy()
/aosp12/system/vold/
H A DVoldNativeService.cpp1100 auto [sourceFd, sourceSymlink] = OpenDirInProcfs(sourceDir); in bindMount()
1101 if (!sourceFd.ok()) { in bindMount()
/aosp12/frameworks/av/media/libmediatranscoding/
H A DTranscoderWrapper.cpp378 int srcFdInt = request.sourceFd.get(); in setupTranscoder()
/aosp12/frameworks/base/apex/media/framework/java/android/media/
H A DMediaTranscodingManager.java653 parcel.sourceFd = mSourceFileDescriptor; in writeToParcel()