Home
last modified time | relevance | path

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

123

/frameworks/av/media/ndk/
DNdkMediaDataSource.cpp57 : mDataSource(AMediaDataSource_new()) { in NdkDataSource()
58 AMediaDataSource_setReadAt(mDataSource, dataSource->readAt); in NdkDataSource()
59 AMediaDataSource_setGetSize(mDataSource, dataSource->getSize); in NdkDataSource()
60 AMediaDataSource_setClose(mDataSource, dataSource->close); in NdkDataSource()
61 AMediaDataSource_setUserdata(mDataSource, dataSource->userdata); in NdkDataSource()
62 AMediaDataSource_setGetAvailableSize(mDataSource, dataSource->getAvailableSize); in NdkDataSource()
63 mDataSource->mImpl = dataSource->mImpl; in NdkDataSource()
64 mDataSource->mFlags = dataSource->mFlags; in NdkDataSource()
68 AMediaDataSource_delete(mDataSource); in ~NdkDataSource()
76 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/opt/net/wifi/service/java/com/android/server/wifi/
DSsidSetStoreData.java44 private final DataSource mDataSource; field in SsidSetStoreData
73 mDataSource = dataSource; in SsidSetStoreData()
79 Set<String> ssidSet = mDataSource.getSsids(); in serializeData()
81 XmlUtil.writeNextValue(out, XML_TAG_SSID_SET, mDataSource.getSsids()); in serializeData()
100 mDataSource.setSsids((Set<String>) value); in deserializeData()
111 mDataSource.setSsids(new HashSet<>()); in resetData()
DNetworkRequestStoreData.java83 private final DataSource mDataSource; field in NetworkRequestStoreData
86 mDataSource = dataSource; in NetworkRequestStoreData()
92 serializeApprovedAccessPointsMap(out, mDataSource.toSerialize()); in serializeData()
102 mDataSource.fromDeserialized(parseApprovedAccessPointsMap(in, outerTagDepth)); in deserializeData()
107 mDataSource.reset(); in resetData()
112 return mDataSource.hasNewDataToSerialize(); in hasNewDataToSerialize()
DNetworkSuggestionStoreData.java94 private final DataSource mDataSource; field in NetworkSuggestionStoreData
97 mDataSource = dataSource; in NetworkSuggestionStoreData()
103 serializeNetworkSuggestionsMap(out, mDataSource.toSerialize()); in serializeData()
113 mDataSource.fromDeserialized(parseNetworkSuggestionsMap(in, outerTagDepth)); in deserializeData()
118 mDataSource.reset(); in resetData()
123 return mDataSource.hasNewDataToSerialize(); in hasNewDataToSerialize()
/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/hotspot2/
DPasspointConfigSharedStoreData.java49 private final DataSource mDataSource; field in PasspointConfigSharedStoreData
71 mDataSource = dataSource; in PasspointConfigSharedStoreData()
95 mDataSource.setProviderIndex(0); in resetData()
123 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_INDEX, mDataSource.getProviderIndex()); in serializeShareData()
144 mDataSource.setProviderIndex((long) value); in deserializeShareData()
DPasspointConfigUserStoreData.java77 private final DataSource mDataSource; field in PasspointConfigUserStoreData
102 mDataSource = dataSource; in PasspointConfigUserStoreData()
126 mDataSource.setProviders(new ArrayList<PasspointProvider>()); in resetData()
154 serializeProviderList(out, mDataSource.getProviders()); in serializeUserData()
227 mDataSource.setProviders(deserializeProviderList(in, outerTagDepth + 1)); in deserializeUserData()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp105 DataSourceHelper *mDataSource; member in android::MPEG4Source
387 mDataSource(source), in MPEG4Extractor()
415 delete mDataSource; in ~MPEG4Extractor()
588 if (mDataSource->readAt(offset, &header, size) == (ssize_t)size) { in getTrackMetaData()
804 if (mDataSource->readAt(*offset, hdr, 8) < 8) { in parseChunk()
812 if (mDataSource->readAt(*offset + 8, &chunk_size, 8) < 8) { in parseChunk()
826 if (mDataSource->getSize(&sourceSize) == OK) { in parseChunk()
858 if (mDataSource->readAt(*offset, buffer, n) in parseChunk()
938 if (mDataSource->flags() in parseChunk()
942 new CachedRangedDataSource(mDataSource); in parseChunk()
[all …]
DSampleIterator.cpp213 if (mTable->mDataSource->readAt( in getChunkOffset()
225 if (mTable->mDataSource->readAt( in getChunkOffset()
255 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
268 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
281 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
296 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()
428 if (mDataSource->readAt(data_offset + 8, mTimeToSample, in setTimeToSampleParams()
455 if (mDataSource->readAt( in setCompositionTimeToSampleParams()
502 if (mDataSource->readAt(data_offset + 8, mCompositionTimeDeltaEntries, in setCompositionTimeToSampleParams()
526 if (mDataSource->readAt( in setSyncSampleParams()
[all …]
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointConfigSharedStoreDataTest.java45 @Mock PasspointConfigSharedStoreData.DataSource mDataSource; field in PasspointConfigSharedStoreDataTest
52 mConfigStoreData = new PasspointConfigSharedStoreData(mDataSource); in setUp()
95 when(mDataSource.getProviderIndex()).thenReturn(providerIndex); in serializeAndDeserializeShareStoreData()
100 verify(mDataSource).setProviderIndex(providerIndex); in serializeAndDeserializeShareStoreData()
112 verify(mDataSource, never()).setProviderIndex(anyLong()); in deserializeEmptyShareStoreData()
DPasspointConfigUserStoreDataTest.java74 @Mock PasspointConfigUserStoreData.DataSource mDataSource; field in PasspointConfigUserStoreDataTest
81 mConfigStoreData = new PasspointConfigUserStoreData(mKeyStore, mSimAccessor, mDataSource); in setUp()
256 when(mDataSource.getProviders()).thenReturn(providerList); in serializeAndDeserializeUserStoreData()
262 verify(mDataSource).setProviders(providersCaptor.capture()); in serializeAndDeserializeUserStoreData()
275 verify(mDataSource, never()).setProviders(any(ArrayList.class)); in deserializeEmptyUserStoreData()
/frameworks/av/media/extractors/amr/
DAMRExtractor.cpp53 DataSourceHelper *mDataSource; member in android::AMRSource
146 : mDataSource(source), in AMRExtractor()
150 if (!SniffAMR(mDataSource, &mIsWide, &confidence)) { in AMRExtractor()
166 if (mDataSource->getSize(&streamSize) == OK) { in AMRExtractor()
193 delete mDataSource; in ~AMRExtractor()
217 return new AMRSource(mDataSource, mMeta, mIsWide, in getTrack()
234 : mDataSource(source), in AMRSource()
295 if ((err = getFrameSizeByOffset(mDataSource, mOffset, in read()
304 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read()
331 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); in read()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSsidSetStoreDataTest.java64 @Mock SsidSetStoreData.DataSource mDataSource; field in SsidSetStoreDataTest
70 mSsidSetStoreData = new SsidSetStoreData(TEST_NOTIFIER_NAME, mDataSource); in setUp()
109 when(mDataSource.getSsids()).thenReturn(new HashSet<String>()); in serializeEmptyConfigs()
122 verify(mDataSource, never()).setSsids(any(Set.class)); in deserializeEmptyStoreData()
147 when(mDataSource.getSsids()).thenReturn(ssidSet); in serializeSsidSet()
163 verify(mDataSource).setSsids(eq(ssidSet)); in deserializeSsidSet()
DNetworkRequestStoreDataTest.java67 private @Mock NetworkRequestStoreData.DataSource mDataSource; field in NetworkRequestStoreDataTest
73 mNetworkRequestStoreData = new NetworkRequestStoreData(mDataSource); in setUp()
199 when(mDataSource.toSerialize()).thenReturn(approvedAccessPointsMap); in assertSerializeDeserialize()
207 verify(mDataSource).fromDeserialized(deserializedApprovedAccessPointsMap.capture()); in assertSerializeDeserialize()
/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/av/media/extractors/aac/
DAACExtractor.cpp55 DataSourceHelper *mDataSource; member in android::AACSource
134 : mDataSource(source), in AACExtractor()
139 if (mDataSource->readAt(offset + 2, &header, 2) < 2) { in AACExtractor()
159 if (mDataSource->getSize(&streamSize) == OK) { in AACExtractor()
204 return new AACSource(mDataSource, mMeta, mOffsetVector, mFrameDurationUs); in getTrack()
225 : mDataSource(source), in AACSource()
287 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { in read()
298 if (mDataSource->readAt(mOffset + headerSize, buffer->data(), in read()
/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/libstagefright/httplive/
DHTTPDownloader.cpp94 mDataSource = new ClearFileSource(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/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/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/wilhelm/src/android/include/
DAacAdtsExtractor.h58 sp<DataSource> mDataSource; variable
84 sp<DataSource> mDataSource;

123