Home | History | Annotate | Download | only in nuplayer

Lines Matching defs:source

2  * Copyright (C) 2010 The Android Open Source Project
222 void NuPlayer::setDataSourceAsync(const sp<IStreamSource> &source) {
227 msg->setObject("source", new StreamingSource(notify, source));
259 sp<Source> source;
261 source = new HTTPLiveSource(notify, httpService, url, headers);
265 source = new RTSPSource(
273 source = new RTSPSource(
286 source = genericSource;
288 ALOGE("Failed to set data source!");
294 msg->setObject("source", source);
303 sp<GenericSource> source =
306 ALOGV("setDataSourceAsync fd %d/%lld/%lld source: %p",
307 fd, (long long)offset, (long long)length, source.get());
309 status_t err = source->setDataSource(fd, offset, length);
312 ALOGE("Failed to set data source!");
313 source = NULL;
316 msg->setObject("source", source);
325 sp<GenericSource> source = new GenericSource(notify, mUIDValid, mUID);
326 status_t err = source->setDataSource(dataSource);
329 ALOGE("Failed to set data source!");
330 source = NULL;
333 msg->setObject("source", source);
454 sp<Source> source;
457 source = mSource;
460 if (source != NULL) {
461 // During a reset, the data source might be unresponsive already, we need to
467 source->disconnect();
543 CHECK(msg->findObject("source", &obj));
546 mSource = static_cast<Source *>(obj.get());
791 // Don't resume it until source seek is done, otherwise it could
815 // do not resume yet if the source is still buffering
871 // do not resume yet if the source is still buffering
1004 if (mSourceFlags & Source::FLAG_DYNAMIC_DURATION) {
1131 // Decoder errors can be due to Source (e.g. from streaming),
1351 // Don't resume it until source seek is done, otherwise it could
1418 ALOGW("resume called when source is gone or not set");
1436 if (!(mSourceFlags & Source::FLAG_SECURE)) {
1493 ALOGE("no metadata for either audio or video source");
1499 ALOGV_IF(!hasAudio, "no metadata for audio source"); // video only stream
1512 // Modular DRM: Disabling audio offload if the source is protected
1515 ALOGV("onStart: Disabling mOffloadAudio now that the source is protected.");
1564 ALOGW("pause called when source is gone or not set");
1730 // Modular DRM: Disabling audio offload if the source is protected
1733 ALOGV("determineAudioModeChange: Disabling mOffloadAudio b/c the source is protected.");
1780 if (mSourceFlags & Source::FLAG_SECURE) {
1784 if (mSourceFlags & Source::FLAG_PROTECTED) {
1841 (mSourceFlags & Source::FLAG_SECURE) != 0);
2118 ALOGW("source has video meta but not file meta");
2323 case Source::kWhatInstantiateSecureDecoders:
2326 // This is a stale notification from a source that was
2328 // We handled the reset, the source is gone.
2340 case Source::kWhatPrepared:
2342 ALOGV("NuPlayer::onSourceNotify Source::kWhatPrepared source: %p", mSource.get());
2344 // This is a stale notification from a source that was
2346 // We handled the reset, the source is gone.
2378 case Source::kWhatDrmInfo:
2393 case Source::kWhatFlagsChanged:
2405 (flags & Source::FLAG_CAN_PAUSE) != 0,
2406 (flags & Source::FLAG_CAN_SEEK_BACKWARD) != 0,
2407 (flags & Source::FLAG_CAN_SEEK_FORWARD) != 0,
2408 (flags & Source::FLAG_CAN_SEEK) != 0,
2409 (flags & Source::FLAG_DYNAMIC_DURATION) != 0,
2410 (flags & Source::FLAG_SECURE) != 0,
2411 (flags & Source::FLAG_PROTECTED) != 0);
2413 if ((flags & NuPlayer::Source::FLAG_CAN_SEEK) == 0) {
2420 if ((mSourceFlags & Source::FLAG_DYNAMIC_DURATION)
2421 && (!(flags & Source::FLAG_DYNAMIC_DURATION))) {
2423 } else if (!(mSourceFlags & Source::FLAG_DYNAMIC_DURATION)
2424 && (flags & Source::FLAG_DYNAMIC_DURATION)
2433 case Source::kWhatVideoSizeChanged:
2442 case Source::kWhatBufferingUpdate:
2451 case Source::kWhatPauseOnBufferingStart:
2464 case Source::kWhatResumeOnBufferingEnd:
2481 case Source::kWhatCacheStats:
2490 case Source::kWhatSubtitleData:
2499 case Source::kWhatTimedMetaData:
2510 case Source::kWhatTimedTextData:
2543 case Source::kWhatQueueDecoderShutdown:
2556 case Source::kWhatDrmNoLicense:
2743 ALOGE("onPrepareDrm: No source. onPrepareDrm failed with %d.", status);
2790 // notifying the source first before removing crypto from codec
2826 sp<AMessage> NuPlayer::Source::getFormat(bool audio) {
2841 void NuPlayer::Source::notifyFlagsChanged(uint32_t flags) {
2848 void NuPlayer::Source::notifyVideoSizeChanged(const sp<AMessage> &format) {
2855 void NuPlayer::Source::notifyPrepared(status_t err) {
2856 ALOGV("Source::notifyPrepared %d", err);
2863 void NuPlayer::Source::notifyDrmInfo(const sp<ABuffer> &drmInfoBuffer)
2865 ALOGV("Source::notifyDrmInfo");
2874 void NuPlayer::Source::notifyInstantiateSecureDecoders(const sp<AMessage> &reply) {
2881 void NuPlayer::Source::onMessageReceived(const sp<AMessage> & /* msg */) {