/frameworks/av/media/libstagefright/ |
D | MPEG4Extractor.cpp | 95 sp<DataSource> mDataSource; member in android::MPEG4Source 376 mDataSource(source), in MPEG4Extractor() 482 if (mDataSource->readAt(offset, &header, size) == (ssize_t)size) { in getTrackMetaData() 628 if (mDataSource->readAt(data_offset, &updateIdTag, 1) < 1) { in parseDrmSINF() 638 int32_t size = readSize(data_offset, mDataSource, &numOfBytes); in parseDrmSINF() 646 if (mDataSource->readAt(data_offset, &descriptorTag, 1) < 1) { in parseDrmSINF() 657 if (mDataSource->readAt(data_offset, buffer, 2) < 2) { in parseDrmSINF() 666 if (mDataSource->readAt(data_offset, buffer, 8) < 8) { in parseDrmSINF() 689 if (mDataSource->readAt(data_offset, &updateIdTag, 1) < 1) { in parseDrmSINF() 698 size = readSize(data_offset, mDataSource, &numOfBytes); in parseDrmSINF() [all …]
|
D | AMRExtractor.cpp | 54 sp<DataSource> mDataSource; member in android::AMRSource 120 : mDataSource(source), in AMRExtractor() 125 if (!SniffAMR(mDataSource, &mimeType, &confidence, NULL)) { in AMRExtractor() 144 if (mDataSource->getSize(&streamSize) == OK) { in AMRExtractor() 194 return new AMRSource(mDataSource, mMeta, mIsWide, in getTrack() 211 : mDataSource(source), in AMRSource() 276 if ((err = getFrameSizeByOffset(mDataSource, mOffset, in read() 285 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read() 312 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); in read()
|
D | AACExtractor.cpp | 57 sp<DataSource> mDataSource; member in android::AACSource 137 : mDataSource(source), in AACExtractor() 147 if (!SniffAAC(mDataSource, &mimeType, &confidence, &meta)) { in AACExtractor() 156 if (mDataSource->readAt(offset + 2, &header, 2) < 2) { in AACExtractor() 174 if (mDataSource->getSize(&streamSize) == OK) { in AACExtractor() 221 return new AACSource(mDataSource, mMeta, mOffsetVector, mFrameDurationUs); in getTrack() 241 : mDataSource(source), in AACSource() 304 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { in read() 315 if (mDataSource->readAt(mOffset + headerSize, buffer->data(), in read()
|
D | MP3Extractor.cpp | 233 sp<DataSource> mDataSource; member in android::MP3Source 252 mDataSource(source), in MP3Extractor() 276 success = Resync(mDataSource, 0, &pos, &post_id3_pos, &header); in MP3Extractor() 287 sp<XINGSeeker> seeker = XINGSeeker::CreateFromSource(mDataSource, mFirstFramePos); in MP3Extractor() 290 mSeeker = VBRISeeker::CreateFromSource(mDataSource, post_id3_pos); in MP3Extractor() 314 if (!Resync(mDataSource, 0, &pos, &post_id3_pos, &header)) { in MP3Extractor() 353 if (mDataSource->getSize(&fileSize) == OK) { in MP3Extractor() 375 ID3 id3(mDataSource, true); in MP3Extractor() 416 mMeta, mDataSource, mFirstFramePos, mFixedHeader, in getTrack() 443 mDataSource(source), in MP3Source() [all …]
|
D | SampleIterator.cpp | 206 if (mTable->mDataSource->readAt( in getChunkOffset() 218 if (mTable->mDataSource->readAt( in getChunkOffset() 247 if (mTable->mDataSource->readAt( in getSampleSizeDirect() 260 if (mTable->mDataSource->readAt( in getSampleSizeDirect() 273 if (mTable->mDataSource->readAt( in getSampleSizeDirect() 288 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
|
D | WAVExtractor.cpp | 81 sp<DataSource> mDataSource; member 98 : mDataSource(source), in WAVExtractor() 129 mDataSource, mTrackMeta, in getTrack() 144 if (mDataSource->readAt( in init() 159 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) { in init() 178 if (mDataSource->readAt(offset, formatSpec, 2) < 2) { in init() 196 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) { in init() 356 : mDataSource(dataSource), in WAVSource() 476 ssize_t n = mDataSource->readAt( in read()
|
D | FLACExtractor.cpp | 57 sp<DataSource> mDataSource; member in android::FLACSource 121 sp<DataSource> mDataSource; member in android::FLACParser 275 ssize_t actual = mDataSource->readAt(mCurrentPos, buffer, requested); in readCallback() 310 if (OK == mDataSource->getSize(&size)) { in lengthCallback() 493 : mDataSource(dataSource), in FLACParser() 713 : mDataSource(dataSource), in FLACSource() 789 mParser = new FLACParser(mDataSource); in init() 797 : mDataSource(dataSource), in FLACExtractor() 819 return new FLACSource(mDataSource, mTrackMetadata); in getTrack() 835 mParser = new FLACParser(mDataSource, mFileMetadata, mTrackMetadata); in init()
|
D | SampleTable.cpp | 118 : 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 …]
|
D | NuMediaExtractor.cpp | 58 if (mDataSource != NULL) { in ~NuMediaExtractor() 59 mDataSource->close(); in ~NuMediaExtractor() 92 mDataSource = dataSource; in setDataSource() 128 mDataSource = fileSource; in setDataSource() 158 mDataSource = source; in setDataSource() 622 if (mDurationUs > 0 && mDataSource->getSize(&size) == OK) { in getTotalBitrate() 636 if ((mDataSource->flags() & DataSource::kIsCachingDataSource) in getCachedDuration() 639 static_cast<NuCachedSource2 *>(mDataSource.get()); in getCachedDuration()
|
D | AVIExtractor.cpp | 188 ssize_t n = mExtractor->mDataSource->readAt(offset, out->data(), size); in read() 369 : mDataSource(dataSource) { in AVIExtractor() 428 ssize_t n = mDataSource->readAt(offset, tmp, 8); in parseChunk() 452 n = mDataSource->readAt(offset + 8, &tmp[8], 4); in parseChunk() 599 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in parseStreamHeader() 689 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in parseStreamFormat() 773 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in parseIndex() 1014 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in addMPEG4CodecSpecificData() 1075 ssize_t n = mDataSource->readAt(offset, buffer->data(), buffer->size()); in addH264CodecSpecificData() 1129 ssize_t n = mDataSource->readAt(*offset, tmp, 8); in getSampleInfo()
|
/frameworks/base/libs/hwui/ |
D | PropertyValuesHolder.cpp | 58 if (mDataSource.size() == 0) { in getValueFromData() 63 return mDataSource.front(); in getValueFromData() 66 return mDataSource.back(); in getValueFromData() 69 fraction *= mDataSource.size() - 1; in getValueFromData() 74 mEvaluator->evaluate(&value, mDataSource[lowIndex], mDataSource[lowIndex + 1], fraction); in getValueFromData() 80 if (mDataSource.size() > 0) { in calculateAnimatedValue()
|
D | PropertyValuesHolder.h | 70 mDataSource.insert(mDataSource.begin(), dataSource, dataSource + length); in setPropertyDataSource() 83 std::vector<T> mDataSource; variable
|
/frameworks/wilhelm/src/android/util/ |
D | AacAdtsExtractor.cpp | 94 : mDataSource(source), in AacAdtsExtractor() 107 ssize_t readSize = mDataSource->readAt(2, &header, 2); in AacAdtsExtractor() 132 if (mDataSource->getSize(&streamSize) == OK) { in AacAdtsExtractor() 136 if ((frameSize = getFrameSize(mDataSource, offset)) == 0) { in AacAdtsExtractor() 191 return new AacAdtsSource(mDataSource, mMeta, mFrameDurationUs); in getTrack() 212 : mDataSource(source), in AacAdtsSource() 271 if ((frameSize = getFrameSize(mDataSource, mOffset)) == 0) { in read() 284 ssize_t readSize = mDataSource->readAt(mOffset + ADTS_HEADER_LENGTH, buffer->data(), in read()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointConfigStoreData.java | 72 private final DataSource mDataSource; field in PasspointConfigStoreData 111 mDataSource = dataSource; in PasspointConfigStoreData() 161 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_INDEX, mDataSource.getProviderIndex()); in serializeShareData() 172 serializeProviderList(out, mDataSource.getProviders()); in serializeUserData() 240 mDataSource.setProviderIndex((long) value); in deserializeShareData() 263 mDataSource.setProviders(deserializeProviderList(in, outerTagDepth + 1)); in deserializeUserData() 354 mDataSource.setProviderIndex(0); in resetShareData() 361 mDataSource.setProviders(new ArrayList<PasspointProvider>()); in resetUserData()
|
/frameworks/av/media/libmedia/ |
D | MidiIoWrapper.cpp | 53 mDataSource = source; in MidiIoWrapper() 55 if (mDataSource->getSize(&l) == OK) { in MidiIoWrapper() 72 if (mDataSource != NULL) { in readAt() 73 return mDataSource->readAt(offset, buffer, size); in readAt()
|
/frameworks/wilhelm/src/itf/ |
D | IEngine.cpp | 63 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 …]
|
D | IDynamicSource.cpp | 41 thiz->mDataSource = pDataSource; in IDynamicSource_SetSource() 59 thiz->mDataSource = NULL; in IDynamicSource_init()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointConfigStoreDataTest.java | 66 @Mock PasspointConfigStoreData.DataSource mDataSource; field in PasspointConfigStoreDataTest 73 mConfigStoreData = new PasspointConfigStoreData(mKeyStore, mSimAccessor, mDataSource); in setUp() 244 when(mDataSource.getProviders()).thenReturn(providerList); in serializeAndDeserializeUserStoreData() 250 verify(mDataSource).setProviders(providersCaptor.capture()); in serializeAndDeserializeUserStoreData() 266 when(mDataSource.getProviderIndex()).thenReturn(providerIndex); in serializeAndDeserializeShareStoreData() 271 verify(mDataSource).setProviderIndex(providerIndex); in serializeAndDeserializeShareStoreData() 283 verify(mDataSource, never()).setProviders(any(ArrayList.class)); in deserializeEmptyUserStoreData() 295 verify(mDataSource, never()).setProviderIndex(anyLong()); in deserializeEmptyShareStoreData()
|
D | PasspointManagerTest.java | 126 @Mock PasspointConfigStoreData.DataSource mDataSource; field in PasspointManagerTest 148 mDataSource = dataSource.getValue(); in setUp() 482 List<PasspointProvider> providers = mDataSource.getProviders(); in addRemoveProviderWithValidUserCredential() 486 assertEquals(1, mDataSource.getProviderIndex()); in addRemoveProviderWithValidUserCredential() 495 assertTrue(mDataSource.getProviders().isEmpty()); in addRemoveProviderWithValidUserCredential() 497 assertEquals(1, mDataSource.getProviderIndex()); in addRemoveProviderWithValidUserCredential() 517 List<PasspointProvider> providers = mDataSource.getProviders(); in addRemoveProviderWithValidSimCredential() 521 assertEquals(1, mDataSource.getProviderIndex()); in addRemoveProviderWithValidSimCredential() 530 assertTrue(mDataSource.getProviders().isEmpty()); in addRemoveProviderWithValidSimCredential() 532 assertEquals(1, mDataSource.getProviderIndex()); in addRemoveProviderWithValidSimCredential() [all …]
|
/frameworks/av/media/libstagefright/httplive/ |
D | HTTPDownloader.cpp | 94 mDataSource = new FileSource(url + 7); in fetchBlock() 122 mDataSource = mHTTPDataSource; in fetchBlock() 126 status_t getSizeErr = mDataSource->getSize(&size); in fetchBlock() 183 ssize_t n = mDataSource->readAt( in fetchBlock() 205 *actualUrl = mDataSource->getUri(); in fetchBlock()
|
/frameworks/wilhelm/src/android/include/ |
D | AacAdtsExtractor.h | 59 sp<DataSource> mDataSource; variable 88 sp<DataSource> mDataSource;
|
/frameworks/wilhelm/src/android/ |
D | MediaPlayer_to_android.cpp | 308 const SLDataSource *pSrc = &mp->mDataSource.u.mSource; in android_Player_checkSourceSink() 369 const SLDataSource *pDataSrc = &mp->mDataSource.u.mSource; in android_Player_create() 428 switch (mp->mDataSource.mLocator.mLocatorType) { in android_Player_realize() 431 (const char*)mp->mDataSource.mLocator.mURI.URI); in android_Player_realize() 434 int64_t offset = (int64_t)mp->mDataSource.mLocator.mFD.offset; in android_Player_realize() 436 (int)mp->mDataSource.mLocator.mFD.fd, in android_Player_realize() 439 (int64_t)mp->mDataSource.mLocator.mFD.length); in android_Player_realize() 444 mp->mDataSource.mLocator.mLocatorType); in android_Player_realize()
|
D | android_AudioSfDecoder.cpp | 38 mDataSource(0), in AudioSfDecoder() 321 mDataSource = dataSource; in onPrepare() 449 if (mDataSource == 0) { in onDecode() 648 if (mDataSource != 0) { in wantPrefetch() 649 return (mDataSource->flags() & DataSource::kWantsPrefetching); in wantPrefetch() 673 static_cast<NuCachedSource2 *>(mDataSource.get()); in getCacheRemaining()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | MPEG2TSExtractor.cpp | 116 : mDataSource(source), in MPEG2TSExtractor() 254 if (mDataSource->getSize(&size) == OK && (haveAudio || haveVideo)) { in init() 316 ssize_t n = mDataSource->readAt(mOffset, packet, kTSPacketSize); in feedMore() 364 if (!(mDataSource->flags() & DataSource::kIsLocalFileSource)) { in estimateDurationsFromTimesUsAtEnd() 369 status_t err = mDataSource->getSize(&size); in estimateDurationsFromTimesUsAtEnd() 377 if (mDataSource->readAt(offset, &packet, 0) < 0) { in estimateDurationsFromTimesUsAtEnd() 395 ssize_t n = mDataSource->readAt(offset, packet, kTSPacketSize); in estimateDurationsFromTimesUsAtEnd()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 145 mDataSource = source; in setDataSource() 155 CHECK(mDataSource != NULL); in initFromDataSource() 157 extractor = MediaExtractor::Create(mDataSource, NULL); in initFromDataSource() 344 ALOGV("onPrepareAsync: mDataSource: %d", (mDataSource != NULL)); in onPrepareAsync() 347 if (mDataSource == NULL) { in onPrepareAsync() 365 mDataSource = DataSource::CreateFromURI( in onPrepareAsync() 382 mDataSource = DataSource::CreateFromIDataSource(source); in onPrepareAsync() 383 if (mDataSource != nullptr) { in onPrepareAsync() 395 if (mDataSource == nullptr) { in onPrepareAsync() 397 mDataSource = new FileSource(mFd, mOffset, mLength); in onPrepareAsync() [all …]
|