Home
last modified time | relevance | path

Searched refs:mDataSource (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/av/media/ndk/
DNdkMediaDataSource.cpp55 : mDataSource(AMediaDataSource_new()) { in NdkDataSource()
56 AMediaDataSource_setReadAt(mDataSource, dataSource->readAt); in NdkDataSource()
57 AMediaDataSource_setGetSize(mDataSource, dataSource->getSize); in NdkDataSource()
58 AMediaDataSource_setClose(mDataSource, dataSource->close); in NdkDataSource()
59 AMediaDataSource_setUserdata(mDataSource, dataSource->userdata); in NdkDataSource()
60 AMediaDataSource_setGetAvailableSize(mDataSource, dataSource->getAvailableSize); in NdkDataSource()
61 mDataSource->mImpl = dataSource->mImpl; in NdkDataSource()
62 mDataSource->mFlags = dataSource->mFlags; in NdkDataSource()
66 AMediaDataSource_delete(mDataSource); in ~NdkDataSource()
74 return mDataSource->mFlags; in flags()
[all …]
/frameworks/av/media/libmedia/
DMidiIoWrapper.cpp42 mDataSource = nullptr; in MidiIoWrapper()
50 mDataSource = nullptr; in MidiIoWrapper()
93 mDataSource = new DataSourceUnwrapper(csource); in MidiIoWrapper()
95 if (mDataSource->getSize(&l) == OK) { in MidiIoWrapper()
107 delete mDataSource; in ~MidiIoWrapper()
113 if (mDataSource != NULL) { in readAt()
114 return mDataSource->readAt(offset, buffer, size); in readAt()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp105 DataSourceHelper *mDataSource; member in android::MPEG4Source
389 mDataSource(source), in MPEG4Extractor()
417 delete mDataSource; in ~MPEG4Extractor()
590 if (mDataSource->readAt(offset, &header, size) == (ssize_t)size) { in getTrackMetaData()
806 if (mDataSource->readAt(*offset, hdr, 8) < 8) { in parseChunk()
814 if (mDataSource->readAt(*offset + 8, &chunk_size, 8) < 8) { in parseChunk()
828 if (mDataSource->getSize(&sourceSize) == OK) { in parseChunk()
860 if (mDataSource->readAt(*offset, buffer, n) in parseChunk()
940 if (mDataSource->flags() in parseChunk()
944 new CachedRangedDataSource(mDataSource); in parseChunk()
[all …]
DSampleIterator.cpp212 if (mTable->mDataSource->readAt( in getChunkOffset()
224 if (mTable->mDataSource->readAt( in getChunkOffset()
254 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
267 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
280 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
295 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
DSampleTable.cpp118 : mDataSource(source), in SampleTable()
190 if (mDataSource->readAt( in setChunkOffsetParams()
233 if (mDataSource->readAt( in setSampleToChunkParams()
290 if (mDataSource->readAt( in setSampleToChunkParams()
327 if (mDataSource->readAt( in setSampleSizeParams()
383 if (mDataSource->readAt( in setTimeToSampleParams()
419 if (mDataSource->readAt(data_offset + 8, mTimeToSample, in setTimeToSampleParams()
446 if (mDataSource->readAt( in setCompositionTimeToSampleParams()
493 if (mDataSource->readAt(data_offset + 8, mCompositionTimeDeltaEntries, in setCompositionTimeToSampleParams()
517 if (mDataSource->readAt( in setSyncSampleParams()
[all …]
/frameworks/base/libs/hwui/
DPropertyValuesHolder.cpp56 if (mDataSource.size() == 0) { in getValueFromData()
61 return mDataSource.front(); in getValueFromData()
64 return mDataSource.back(); in getValueFromData()
67 fraction *= mDataSource.size() - 1; in getValueFromData()
72 mEvaluator->evaluate(&value, mDataSource[lowIndex], mDataSource[lowIndex + 1], fraction); in getValueFromData()
78 if (mDataSource.size() > 0) { in calculateAnimatedValue()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSsidSetStoreData.java46 private final DataSource mDataSource; field in SsidSetStoreData
75 mDataSource = dataSource; in SsidSetStoreData()
82 Set<String> ssidSet = mDataSource.getSsids(); in serializeData()
84 XmlUtil.writeNextValue(out, XML_TAG_SSID_SET, mDataSource.getSsids()); in serializeData()
105 mDataSource.setSsids((Set<String>) value); in deserializeData()
116 mDataSource.setSsids(new HashSet<>()); in resetData()
DNetworkRequestStoreData.java85 private final DataSource mDataSource; field in NetworkRequestStoreData
88 mDataSource = dataSource; in NetworkRequestStoreData()
95 serializeApprovedAccessPointsMap(out, mDataSource.toSerialize()); in serializeData()
107 mDataSource.fromDeserialized(parseApprovedAccessPointsMap(in, outerTagDepth)); in deserializeData()
112 mDataSource.reset(); in resetData()
117 return mDataSource.hasNewDataToSerialize(); in hasNewDataToSerialize()
/frameworks/wilhelm/src/android/util/
DAacAdtsExtractor.cpp95 : mDataSource(source), in AacAdtsExtractor()
109 ssize_t readSize = mDataSource->readAt(2, &header, 2); in AacAdtsExtractor()
134 if (mDataSource->getSize(&streamSize) == OK) { in AacAdtsExtractor()
138 if ((frameSize = getFrameSize(mDataSource, offset)) == 0) { in AacAdtsExtractor()
175 return new AacAdtsSource(mDataSource, mMeta, mFrameDurationUs); in getTrack()
187 : mDataSource(source), in AacAdtsSource()
246 if ((frameSize = getFrameSize(mDataSource, mOffset)) == 0) { in read()
259 ssize_t readSize = mDataSource->readAt(mOffset + ADTS_HEADER_LENGTH, buffer->data(), in read()
/frameworks/av/media/extractors/amr/
DAMRExtractor.cpp53 DataSourceHelper *mDataSource; member in android::AMRSource
146 : mDataSource(source), in AMRExtractor()
151 if (!SniffAMR(mDataSource, &mIsWide, &confidence)) { in AMRExtractor()
167 if (mDataSource->getSize(&streamSize) == OK) { in AMRExtractor()
194 delete mDataSource; in ~AMRExtractor()
220 return new AMRSource(mDataSource, mMeta, mIsWide, in getTrack()
237 : mDataSource(source), in AMRSource()
298 if ((err = getFrameSizeByOffset(mDataSource, mOffset, in read()
307 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read()
334 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); in read()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointConfigSharedStoreData.java52 private final DataSource mDataSource; field in PasspointConfigSharedStoreData
74 mDataSource = dataSource; in PasspointConfigSharedStoreData()
101 mDataSource.setProviderIndex(0); in resetData()
129 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_INDEX, mDataSource.getProviderIndex()); in serializeShareData()
150 mDataSource.setProviderIndex((long) value); in deserializeShareData()
DPasspointConfigUserStoreData.java79 private final DataSource mDataSource; field in PasspointConfigUserStoreData
104 mDataSource = dataSource; in PasspointConfigUserStoreData()
131 mDataSource.setProviders(new ArrayList<PasspointProvider>()); in resetData()
159 serializeProviderList(out, mDataSource.getProviders()); in serializeUserData()
232 mDataSource.setProviders(deserializeProviderList(in, outerTagDepth + 1)); in deserializeUserData()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointConfigSharedStoreDataTest.java46 @Mock PasspointConfigSharedStoreData.DataSource mDataSource; field in PasspointConfigSharedStoreDataTest
53 mConfigStoreData = new PasspointConfigSharedStoreData(mDataSource); in setUp()
98 when(mDataSource.getProviderIndex()).thenReturn(providerIndex); in serializeAndDeserializeShareStoreData()
103 verify(mDataSource).setProviderIndex(providerIndex); in serializeAndDeserializeShareStoreData()
115 verify(mDataSource, never()).setProviderIndex(anyLong()); in deserializeEmptyShareStoreData()
/frameworks/av/media/extractors/mp3/
DMP3Extractor.cpp231 DataSourceHelper *mDataSource; member in android::MP3Source
255 mDataSource(source), in MP3Extractor()
273 success = Resync(mDataSource, 0, &pos, &post_id3_pos, &header); in MP3Extractor()
283 XINGSeeker *seeker = XINGSeeker::CreateFromSource(mDataSource, mFirstFramePos); in MP3Extractor()
287 mSeeker = VBRISeeker::CreateFromSource(mDataSource, post_id3_pos); in MP3Extractor()
311 if (!Resync(mDataSource, 0, &pos, &post_id3_pos, &header)) { in MP3Extractor()
352 if (mDataSource->getSize(&fileSize) == OK) { in MP3Extractor()
374 DataSourceHelper helper(mDataSource); in MP3Extractor()
408 delete mDataSource; in ~MP3Extractor()
422 mMeta, mDataSource, mFirstFramePos, mFixedHeader, in getTrack()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSsidSetStoreDataTest.java66 @Mock SsidSetStoreData.DataSource mDataSource; field in SsidSetStoreDataTest
72 mSsidSetStoreData = new SsidSetStoreData(TEST_NOTIFIER_NAME, mDataSource); in setUp()
113 when(mDataSource.getSsids()).thenReturn(new HashSet<String>()); in serializeEmptyConfigs()
126 verify(mDataSource, never()).setSsids(any(Set.class)); in deserializeEmptyStoreData()
151 when(mDataSource.getSsids()).thenReturn(ssidSet); in serializeSsidSet()
167 verify(mDataSource).setSsids(eq(ssidSet)); in deserializeSsidSet()
/frameworks/av/media/libstagefright/tests/ESDS/
DESDSTest.cpp64 if (mDataSource) mDataSource.clear(); in TearDown()
89 mDataSource = new FileSource(dup(fd), 0, fileSize); in readESDSData()
90 ASSERT_NE(mDataSource, nullptr) << "Unable to create data source for file: " << inputFile; in readESDSData()
92 sp<IMediaExtractor> extractor = MediaExtractorFactory::Create(mDataSource); in readESDSData()
94 mDataSource.clear(); in readESDSData()
120 sp<DataSource> mDataSource; member in ESDSUnitTest
/frameworks/wilhelm/src/itf/
DIEngine.cpp63 assert(SL_DATAFORMAT_MIME == ap->mDataSource.mFormat.mFormatType); in initializeAndroidBufferQueueMembers()
64 switch (ap->mDataSource.mFormat.mMIME.containerType) { in initializeAndroidBufferQueueMembers()
70 const char* mime = (char*)ap->mDataSource.mFormat.mMIME.mimeType; in initializeAndroidBufferQueueMembers()
199 thiz->mDataSource.mLocator.mLocatorType = SL_DATALOCATOR_NULL; in IEngine_CreateAudioPlayer()
200 thiz->mDataSource.mFormat.mFormatType = SL_DATAFORMAT_NULL; in IEngine_CreateAudioPlayer()
250 result = checkDataSource("pAudioSrc", pAudioSrc, &thiz->mDataSource, in IEngine_CreateAudioPlayer()
283 result = checkSourceSinkVsInterfacesCompatibility(&thiz->mDataSource, in IEngine_CreateAudioPlayer()
297 switch (thiz->mDataSource.mLocator.mLocatorType) { in IEngine_CreateAudioPlayer()
303 nbBuffers = (SLuint16) thiz->mDataSource.mLocator.mBufferQueue.numBuffers; in IEngine_CreateAudioPlayer()
304 assert(SL_DATAFORMAT_PCM == thiz->mDataSource.mFormat.mFormatType in IEngine_CreateAudioPlayer()
[all …]
DIDynamicSource.cpp41 thiz->mDataSource = pDataSource; in IDynamicSource_SetSource()
59 thiz->mDataSource = NULL; in IDynamicSource_init()
/frameworks/av/media/extractors/aac/
DAACExtractor.cpp55 DataSourceHelper *mDataSource; member in android::AACSource
134 : mDataSource(source), in AACExtractor()
140 if (mDataSource->readAt(offset + 2, &header, 2) < 2) { in AACExtractor()
160 if (mDataSource->getSize(&streamSize) == OK) { in AACExtractor()
207 return new AACSource(mDataSource, mMeta, mOffsetVector, mFrameDurationUs); in getTrack()
228 : mDataSource(source), in AACSource()
290 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { in read()
301 if (mDataSource->readAt(mOffset + headerSize, buffer->data(), in read()
/frameworks/av/media/extractors/wav/
DWAVExtractor.cpp92 DataSourceHelper *mDataSource; member
109 : mDataSource(source), in WAVExtractor()
117 delete mDataSource; in ~WAVExtractor()
140 mDataSource, mTrackMeta, in getTrack()
162 if (mDataSource->readAt( in init()
177 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) { in init()
196 if (mDataSource->readAt(offset, formatSpec, 2) < 2) { in init()
214 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) { in init()
373 : mDataSource(dataSource), in WAVSource()
493 ssize_t n = mDataSource->readAt( in read()
/frameworks/av/media/libstagefright/httplive/
DHTTPDownloader.cpp94 mDataSource = new FileSource(url + 7); in fetchBlock()
122 mDataSource = mHTTPDataSource; in fetchBlock()
126 status_t getSizeErr = mDataSource->getSize(&size); in fetchBlock()
189 ssize_t n = mDataSource->readAt( in fetchBlock()
211 *actualUrl = mDataSource->getUri(); in fetchBlock()
/frameworks/av/media/extractors/flac/
DFLACExtractor.cpp74 DataSourceHelper *mDataSource; member in android::FLACSource
137 DataSourceHelper *mDataSource; member in android::FLACParser
293 ssize_t actual = mDataSource->readAt(mCurrentPos, buffer, requested); in readCallback()
328 if (OK == mDataSource->getSize(&size)) { in lengthCallback()
449 : mDataSource(dataSource), in FLACParser()
654 : mDataSource(dataSource), in FLACSource()
657 mParser(new FLACParser(mDataSource, outputFloat, 0, mTrackMetadata)), in FLACSource()
736 : mDataSource(dataSource), in FLACExtractor()
744 mParser = new FLACParser(mDataSource, false /* outputFloat */, mFileMetadata, mTrackMetadata); in FLACExtractor()
752 delete mDataSource; in ~FLACExtractor()
[all …]
/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp119 ExtractorUnitTest() : mInputFp(nullptr), mDataSource(nullptr), mExtractor(nullptr) {} in ExtractorUnitTest()
126 if (mDataSource) { in ~ExtractorUnitTest()
127 mDataSource.clear(); in ~ExtractorUnitTest()
128 mDataSource = nullptr; in ~ExtractorUnitTest()
178 sp<DataSource> mDataSource; member in ExtractorUnitTest
224 mDataSource = new FileSource(dup(fd), 0, buf.st_size); in setDataSource()
225 if (!mDataSource) return -1; in setDataSource()
232 mExtractor = new AACExtractor(new DataSourceHelper(mDataSource->wrap()), 0); in createExtractor()
235 mExtractor = new AMRExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
238 mExtractor = new MP3Extractor(new DataSourceHelper(mDataSource->wrap()), nullptr); in createExtractor()
[all …]
/frameworks/av/media/extractors/fuzzers/
Dmpeg2_extractor_fuzzer.cpp41 mExtractor = new MPEG2PSExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
43 mExtractor = new MPEG2TSExtractor(new DataSourceHelper(mDataSource->wrap())); in createExtractor()
DExtractorFuzzerBase.cpp30 mDataSource = reinterpret_cast<DataSource*>(mBufferSource.get()); in setDataSource()
31 if (!mDataSource) { in setDataSource()
44 extractorDef.u.v2.sniff(mDataSource->wrap(), &confidence, &meta, &freeMeta); in getExtractorDef()
46 extractorDef.u.v3.sniff(mDataSource->wrap(), &confidence, &meta, &freeMeta); in getExtractorDef()

1234