Lines Matching refs:sp
102 SetSurfaceAction(const sp<Surface> &surface)
111 sp<Surface> mSurface;
134 PostMessageAction(const sp<AMessage> &msg)
143 sp<AMessage> mMessage;
210 void NuPlayer::setDataSourceAsync(const sp<IStreamSource> &source) {
211 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this);
213 sp<AMessage> notify = new AMessage(kWhatSourceNotify, this);
237 const sp<IMediaHTTPService> &httpService,
241 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this);
244 sp<AMessage> notify = new AMessage(kWhatSourceNotify, this);
246 sp<Source> source;
259 sp<GenericSource> genericSource =
278 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this);
280 sp<AMessage> notify = new AMessage(kWhatSourceNotify, this);
282 sp<GenericSource> source =
296 void NuPlayer::setDataSourceAsync(const sp<DataSource> &dataSource) {
297 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this);
298 sp<AMessage> notify = new AMessage(kWhatSourceNotify, this);
300 sp<GenericSource> source = new GenericSource(notify, mUIDValid, mUID);
317 const sp<IGraphicBufferProducer> &bufferProducer) {
318 sp<AMessage> msg = new AMessage(kWhatSetVideoSurface, this);
329 void NuPlayer::setAudioSink(const sp<MediaPlayerBase::AudioSink> &sink) {
330 sp<AMessage> msg = new AMessage(kWhatSetAudioSink, this);
348 sp<AMessage> msg = new AMessage(kWhatConfigPlayback, this);
350 sp<AMessage> response;
359 sp<AMessage> msg = new AMessage(kWhatGetPlaybackSettings, this);
360 sp<AMessage> response;
372 sp<AMessage> msg = new AMessage(kWhatConfigSync, this);
374 sp<AMessage> response;
384 sp<AMessage> msg = new AMessage(kWhatGetSyncSettings, this);
385 sp<AMessage> response;
415 sp<AMessage> msg = new AMessage(kWhatSeek, this);
423 Parcel* reply, const sp<AMessage> format) const {
462 void NuPlayer::onMessageReceived(const sp<AMessage> &msg) {
471 sp<RefBase> obj;
480 sp<NuPlayerDriver> driver = mDriver.promote();
495 sp<AReplyToken> replyID;
524 sp<AMessage> response = new AMessage;
545 sp<AMessage> response = new AMessage;
548 sp<AReplyToken> replyID;
556 sp<AReplyToken> replyID;
582 sp<AMessage> info = mSource->getTrackInfo(trackIndex);
597 sp<AMessage> response = new AMessage;
616 sp<NuPlayerDriver> driver = mDriver.promote();
629 sp<RefBase> obj;
631 sp<Surface> surface = static_cast<Surface *>(obj.get());
687 sp<RefBase> obj;
711 sp<AReplyToken> replyID;
736 sp<AMessage> params = new AMessage();
742 sp<AMessage> response = new AMessage;
750 sp<AReplyToken> replyID;
765 sp<AMessage> response = new AMessage;
776 sp<AReplyToken> replyID;
791 sp<AMessage> response = new AMessage;
799 sp<AReplyToken> replyID;
811 sp<AMessage> response = new AMessage;
894 sp<AMessage> reply;
945 sp<AMessage> format;
948 sp<AMessage> inputFormat =
1297 sp<MetaData> audioMeta = mSource->getFormatMeta(true /* audio */);
1303 sp<AMessage> videoFormat = mSource->getFormat(false /* audio */);
1311 sp<AMessage> notify = new AMessage(kWhatRendererNotify, this);
1431 sp<AMessage> msg = new AMessage(kWhatScanSources, this);
1438 void NuPlayer::tryOpenAudioSinkForOffload(const sp<AMessage> &format, bool hasVideo) {
1448 sp<MetaData> audioMeta =
1469 sp<MetaData> audioMeta = mSource->getFormatMeta(true /* audio */);
1470 sp<AMessage> videoFormat = mSource->getFormat(false /* audio */);
1480 sp<AMessage> format = mSource->getFormat(true /*audio*/);
1490 status_t NuPlayer::instantiateDecoder(bool audio, sp<DecoderBase> *decoder) {
1497 sp<AMessage> format = mSource->getFormat(audio);
1509 sp<AMessage> ccNotify = new AMessage(kWhatClosedCaptionNotify, this);
1529 sp<AMessage> notify = new AMessage(kWhatAudioNotify, this);
1542 sp<AMessage> notify = new AMessage(kWhatVideoNotify, this);
1565 Vector<sp<ABuffer> > inputBufs;
1570 const sp<ABuffer> &buffer = inputBufs[i];
1589 const sp<AMessage> &inputFormat,
1590 const sp<AMessage> &outputFormat) {
1657 sp<NuPlayerDriver> driver = mDriver.promote();
1670 const sp<DecoderBase> &decoder = getDecoder(audio);
1704 bool audio, bool video, const sp<AMessage> &reply) {
1734 sp<AMessage> msg = new AMessage(kWhatGetTrackInfo, this);
1737 sp<AMessage> response;
1743 sp<AMessage> msg = new AMessage(kWhatGetSelectedTrack, this);
1747 sp<AMessage> response;
1756 sp<AMessage> msg = new AMessage(kWhatSelectTrack, this);
1761 sp<AMessage> response;
1776 sp<Renderer> renderer = mRenderer;
1784 void NuPlayer::getStats(Vector<sp<AMessage> > *mTrackStats) {
1796 sp<MetaData> NuPlayer::getFileMeta() {
1801 sp<MetaData> meta = mSource->getFormatMeta(false /* audio */);
1808 sp<MetaData> fileMeta = getFileMeta();
1823 sp<AMessage> msg = new AMessage(kWhatPollDuration, this);
1848 sp<Action> action = *mDeferredActions.begin();
1920 sp<NuPlayerDriver> driver = mDriver.promote();
1942 void NuPlayer::performSetSurface(const sp<Surface> &surface) {
1951 sp<NuPlayerDriver> driver = mDriver.promote();
1991 sp<NuPlayerDriver> driver = mDriver.promote();
1998 void NuPlayer::onSourceNotify(const sp<AMessage> &msg) {
2012 sp<AMessage> reply;
2040 sp<NuPlayerDriver> driver = mDriver.promote();
2059 sp<NuPlayerDriver> driver = mDriver.promote();
2083 sp<AMessage> format;
2150 sp<ABuffer> buffer;
2159 sp<ABuffer> buffer;
2176 sp<ABuffer> buffer;
2179 sp<NuPlayerDriver> driver = mDriver.promote();
2207 sp<AMessage> reply;
2225 void NuPlayer::onClosedCaptionNotify(const sp<AMessage> &msg) {
2232 sp<ABuffer> buffer;
2258 void NuPlayer::sendSubtitleData(const sp<ABuffer> &buffer, int32_t baseIndex) {
2276 void NuPlayer::sendTimedMetaData(const sp<ABuffer> &buffer) {
2289 void NuPlayer::sendTimedTextData(const sp<ABuffer> &buffer) {
2318 sp<AMessage> NuPlayer::Source::getFormat(bool audio) {
2319 sp<MetaData> meta = getFormatMeta(audio);
2325 sp<AMessage> msg = new AMessage;
2334 sp<AMessage> notify = dupNotify();
2340 void NuPlayer::Source::notifyVideoSizeChanged(const sp<AMessage> &format) {
2341 sp<AMessage> notify = dupNotify();
2348 sp<AMessage> notify = dupNotify();
2354 void NuPlayer::Source::notifyInstantiateSecureDecoders(const sp<AMessage> &reply) {
2355 sp<AMessage> notify = dupNotify();
2361 void NuPlayer::Source::onMessageReceived(const sp<AMessage> & /* msg */) {