Home
last modified time | relevance | path

Searched refs:AMessage (Results 1 – 25 of 184) sorted by relevance

12345678

/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoderBase.cpp31 NuPlayer::DecoderBase::DecoderBase(const sp<AMessage> &notify) in DecoderBase()
49 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse()
63 void NuPlayer::DecoderBase::configure(const sp<AMessage> &format) { in configure()
64 sp<AMessage> msg = new AMessage(kWhatConfigure, id()); in configure()
74 sp<AMessage> msg = new AMessage(kWhatSetRenderer, id()); in setRenderer()
80 sp<AMessage> msg = new AMessage(kWhatGetInputBuffers, id()); in getInputBuffers()
83 sp<AMessage> response; in getInputBuffers()
88 (new AMessage(kWhatFlush, id()))->post(); in signalFlush()
92 sp<AMessage> msg = new AMessage(kWhatResume, id()); in signalResume()
98 (new AMessage(kWhatShutdown, id()))->post(); in initiateShutdown()
[all …]
DNuPlayerDecoder.h27 Decoder(const sp<AMessage> &notify,
40 virtual void onMessageReceived(const sp<AMessage> &msg);
42 virtual void onConfigure(const sp<AMessage> &format);
62 sp<AMessage> mInputFormat;
63 sp<AMessage> mOutputFormat;
67 List<sp<AMessage> > mPendingInputMessages;
94 bool isStaleReply(const sp<AMessage> &msg);
96 status_t fetchInputData(sp<AMessage> &reply);
97 bool onInputBufferFetched(const sp<AMessage> &msg);
98 void onRenderBuffer(const sp<AMessage> &msg);
[all …]
DGenericSource.cpp49 const sp<AMessage> &notify, in GenericSource()
139 sp<AMessage> dummy; in initFromDataSource()
289 sp<AMessage> msg = dupNotify(); in checkDrmStatus()
331 sp<AMessage> msg = new AMessage(kWhatPrepareAsync, id()); in prepareAsync()
390 (new AMessage(kWhatPrepareAsync, id()))->post(200000); in onPrepareAsync()
409 sp<AMessage> msg = new AMessage; in onPrepareAsync()
495 sp<AMessage> meta; in prefillCacheIfNecessary()
535 (new AMessage(kWhatStart, id()))->post(); in start()
544 sp<AMessage> msg = new AMessage(kWhatStopWidevine, id()); in stop()
545 sp<AMessage> response; in stop()
[all …]
DNuPlayer.cpp131 PostMessageAction(const sp<AMessage> &msg) in PostMessageAction()
140 sp<AMessage> mMessage;
202 sp<AMessage> msg = new AMessage(kWhatSetDataSource, id()); in setDataSourceAsync()
204 sp<AMessage> notify = new AMessage(kWhatSourceNotify, id()); in setDataSourceAsync()
232 sp<AMessage> msg = new AMessage(kWhatSetDataSource, id()); in setDataSourceAsync()
235 sp<AMessage> notify = new AMessage(kWhatSourceNotify, id()); in setDataSourceAsync()
269 sp<AMessage> msg = new AMessage(kWhatSetDataSource, id()); in setDataSourceAsync()
271 sp<AMessage> notify = new AMessage(kWhatSourceNotify, id()); in setDataSourceAsync()
288 (new AMessage(kWhatPrepare, id()))->post(); in prepareAsync()
293 sp<AMessage> msg = new AMessage(kWhatSetVideoNativeWindow, id()); in setVideoSurfaceTextureAsync()
[all …]
DHTTPLiveSource.cpp37 const sp<AMessage> &notify, in HTTPLiveSource()
84 sp<AMessage> notify = new AMessage(kWhatSessionNotify, id()); in prepareAsync()
100 sp<AMessage> NuPlayer::HTTPLiveSource::getFormat(bool audio) { in getFormat()
105 sp<AMessage> format; in getFormat()
138 sp<AMessage> NuPlayer::HTTPLiveSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
156 sp<AMessage> msg = new AMessage(kWhatFetchSubtitleData, id()); in selectTrack()
172 void NuPlayer::HTTPLiveSource::onMessageReceived(const sp<AMessage> &msg) { in onMessageReceived()
193 sp<AMessage> notify = dupNotify(); in onMessageReceived()
219 void NuPlayer::HTTPLiveSource::onSessionNotify(const sp<AMessage> &msg) { in onSessionNotify()
227 sp<AMessage> format = getFormat(false /* audio */); in onSessionNotify()
[all …]
DNuPlayerSource.h63 Source(const sp<AMessage> &notify) in Source()
81 virtual sp<AMessage> getFormat(bool audio);
96 virtual sp<AMessage> getTrackInfo(size_t /* trackIndex */) const { in getTrackInfo()
123 virtual void onMessageReceived(const sp<AMessage> &msg);
125 sp<AMessage> dupNotify() const { return mNotify->dup(); } in dupNotify()
128 void notifyVideoSizeChanged(const sp<AMessage> &format = NULL);
132 sp<AMessage> mNotify;
/frameworks/av/media/libstagefright/foundation/
DAMessage.cpp39 AMessage::AMessage(uint32_t what, ALooper::handler_id target) in AMessage() function in android::AMessage
45 AMessage::~AMessage() { in ~AMessage()
49 void AMessage::setWhat(uint32_t what) { in setWhat()
53 uint32_t AMessage::what() const { in what()
57 void AMessage::setTarget(ALooper::handler_id handlerID) { in setTarget()
61 ALooper::handler_id AMessage::target() const { in target()
65 void AMessage::clear() { in clear()
75 void AMessage::freeItemValue(Item *item) { in freeItemValue()
128 inline size_t AMessage::findItemIndex(const char *name, size_t len) const { in findItemIndex()
158 void AMessage::Item::setName(const char *name, size_t len) { in setName()
[all …]
/frameworks/av/media/libstagefright/
DMediaCodec.cpp161 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse()
177 sp<AMessage> response = new AMessage; in PostReplyWithError()
230 mCodec->setNotificationMessage(new AMessage(kWhatCodecNotify, id())); in init()
232 sp<AMessage> msg = new AMessage(kWhatInit, id()); in init()
240 sp<AMessage> response; in init()
244 status_t MediaCodec::setCallback(const sp<AMessage> &callback) { in setCallback()
245 sp<AMessage> msg = new AMessage(kWhatSetCallback, id()); in setCallback()
248 sp<AMessage> response; in setCallback()
253 const sp<AMessage> &format, in configure()
257 sp<AMessage> msg = new AMessage(kWhatConfigure, id()); in configure()
[all …]
DMediaCodecSource.cpp43 status_t start(const sp<MetaData> &meta, const sp<AMessage> &notify);
50 virtual void onMessageReceived(const sp<AMessage> &msg);
63 sp<AMessage> mNotify;
70 status_t postSynchronouslyAndReturnError(const sp<AMessage> &msg);
99 const sp<AMessage> &msg) { in postSynchronouslyAndReturnError()
100 sp<AMessage> response; in postSynchronouslyAndReturnError()
115 const sp<AMessage> &notify) { in start()
124 sp<AMessage> msg = new AMessage(kWhatStart, id()); in start()
140 (new AMessage(kWhatStop, id()))->post(); in stop()
144 (new AMessage(kWhatPause, id()))->post(); in pause()
[all …]
/frameworks/av/media/libstagefright/wifi-display/source/
DMediaPuller.cpp33 const sp<MediaSource> &source, const sp<AMessage> &notify) in MediaPuller()
50 const sp<AMessage> &msg) { in postSynchronouslyAndReturnError()
51 sp<AMessage> response; in postSynchronouslyAndReturnError()
66 return postSynchronouslyAndReturnError(new AMessage(kWhatStart, id())); in start()
69 void MediaPuller::stopAsync(const sp<AMessage> &notify) { in stopAsync()
70 sp<AMessage> msg = new AMessage(kWhatStop, id()); in stopAsync()
76 (new AMessage(kWhatPause, id()))->post(); in pause()
80 (new AMessage(kWhatResume, id()))->post(); in resume()
83 void MediaPuller::onMessageReceived(const sp<AMessage> &msg) { in onMessageReceived()
105 sp<AMessage> response = new AMessage; in onMessageReceived()
[all …]
DPlaybackSession.cpp57 Track(const sp<AMessage> &notify,
63 Track(const sp<AMessage> &notify, const sp<AMessage> &format);
67 sp<AMessage> getFormat();
100 virtual void onMessageReceived(const sp<AMessage> &msg);
108 sp<AMessage> mNotify;
113 sp<AMessage> mFormat;
122 static bool IsAudioFormat(const sp<AMessage> &format);
128 const sp<AMessage> &notify, in Track()
144 const sp<AMessage> &notify, const sp<AMessage> &format) in Track()
158 const sp<AMessage> &format) { in IsAudioFormat()
[all …]
/frameworks/wilhelm/src/android/
Dandroid_GenericPlayer.cpp139 sp<AMessage> msg = new AMessage(kWhatPrepare, id()); in prepare()
147 sp<AMessage> msg = new AMessage(kWhatPlay, id()); in play()
154 sp<AMessage> msg = new AMessage(kWhatPause, id()); in pause()
161 (new AMessage(kWhatPause, id()))->post(); in stop()
174 sp<AMessage> msg = new AMessage(kWhatSeek, id()); in seek()
182 sp<AMessage> msg = new AMessage(kWhatLoop, id()); in loop()
190 sp<AMessage> msg = new AMessage(kWhatBuffUpdateThres, id()); in setBufferingUpdateThreshold()
211 (new AMessage(kWhatVolumeUpdate, id()))->post(); in setVolume()
219 sp<AMessage> msg = new AMessage(kWhatAttachAuxEffect, id()); in attachAuxEffect()
229 sp<AMessage> msg = new AMessage(kWhatSetAuxEffectSendLevel, id()); in setAuxEffectSendLevel()
[all …]
Dandroid_GenericPlayer.h130 virtual void onMessageReceived(const sp<AMessage> &msg);
134 virtual void onNotify(const sp<AMessage> &msg);
137 virtual void onSeek(const sp<AMessage> &msg);
138 virtual void onLoop(const sp<AMessage> &msg);
141 virtual void onBufferingUpdate(const sp<AMessage> &msg);
142 virtual void onSetBufferingUpdateThreshold(const sp<AMessage> &msg);
143 virtual void onAttachAuxEffect(const sp<AMessage> &msg);
144 virtual void onSetAuxEffectSendLevel(const sp<AMessage> &msg);
145 void onSetPlayEvents(const sp<AMessage> &msg);
146 void onOneShot(const sp<AMessage> &msg);
/frameworks/av/include/media/stagefright/
DMediaCodec.h29 struct AMessage;
64 const sp<AMessage> &format,
69 status_t setCallback(const sp<AMessage> &callback);
125 status_t getOutputFormat(sp<AMessage> *format) const;
126 status_t getInputFormat(sp<AMessage> *format) const;
132 status_t getOutputFormat(size_t index, sp<AMessage> *format);
140 void requestActivityNotification(const sp<AMessage> &notify);
144 status_t setParameters(const sp<AMessage> &params);
148 virtual void onMessageReceived(const sp<AMessage> &msg);
215 sp<AMessage> mNotify;
[all …]
DACodec.h40 virtual void setNotificationMessage(const sp<AMessage> &msg);
42 void initiateSetup(const sp<AMessage> &msg);
44 virtual void initiateAllocateComponent(const sp<AMessage> &msg);
45 virtual void initiateConfigureComponent(const sp<AMessage> &msg);
53 virtual void signalSetParameters(const sp<AMessage> &msg);
58 virtual void onMessageReceived(const sp<AMessage> &msg) { in onMessageReceived()
163 sp<AMessage> mNotify;
184 sp<AMessage> mInputFormat;
185 sp<AMessage> mOutputFormat;
186 sp<AMessage> mBaseOutputFormat;
[all …]
/frameworks/av/media/libstagefright/rtsp/
DARTSPConnection.h38 void connect(const char *url, const sp<AMessage> &reply);
39 void disconnect(const sp<AMessage> &reply);
41 void sendRequest(const char *request, const sp<AMessage> &reply);
43 void observeBinaryData(const sp<AMessage> &reply);
51 virtual void onMessageReceived(const sp<AMessage> &msg);
90 KeyedVector<int32_t, sp<AMessage> > mPendingRequests;
92 sp<AMessage> mObserveBinaryMessage;
96 void onConnect(const sp<AMessage> &msg);
97 void onDisconnect(const sp<AMessage> &msg);
98 void onCompleteConnection(const sp<AMessage> &msg);
[all …]
DMyHandler.h111 const sp<AMessage> &notify,
172 sp<AMessage> notify = new AMessage('biny', id()); in connect()
175 sp<AMessage> reply = new AMessage('conn', id()); in connect()
183 sp<AMessage> notify = new AMessage('biny', id()); in loadSDP()
186 sp<AMessage> reply = new AMessage('sdpl', id()); in loadSDP()
213 (new AMessage('abor', id()))->post(); in disconnect()
217 sp<AMessage> msg = new AMessage('seek', id()); in seek()
228 sp<AMessage> msg = new AMessage('paus', id()); in pause()
235 sp<AMessage> msg = new AMessage('resu', id()); in resume()
439 virtual void onMessageReceived(const sp<AMessage> &msg) { in onMessageReceived()
[all …]
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp48 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse()
62 sp<AMessage> msg = new AMessage(kWhatSetDataSource, id()); in setDataSource()
64 sp<AMessage> response; in setDataSource()
69 sp<AMessage> msg = new AMessage(kWhatSetSurface, id()); in setSurface()
79 sp<AMessage> response; in setSurface()
84 sp<AMessage> msg = new AMessage(kWhatPrepare, id()); in prepare()
85 sp<AMessage> response; in prepare()
90 sp<AMessage> msg = new AMessage(kWhatStart, id()); in start()
91 sp<AMessage> response; in start()
96 sp<AMessage> msg = new AMessage(kWhatStop, id()); in stop()
[all …]
/frameworks/av/media/libstagefright/httplive/
DLiveSession.h44 const sp<AMessage> &notify,
62 status_t getStreamFormat(StreamType stream, sp<AMessage> *format);
75 sp<AMessage> getTrackInfo(size_t trackIndex) const;
97 virtual void onMessageReceived(const sp<AMessage> &msg);
155 sp<AMessage> mNotify;
199 sp<AMessage> mContinuation;
200 sp<AMessage> mSeekReply;
213 sp<AMessage> mSwitchDownMonitor;
219 void onConnect(const sp<AMessage> &msg);
220 status_t onSeek(const sp<AMessage> &msg);
[all …]
DPlaylistFetcher.h53 const sp<AMessage> &notify,
74 void resumeUntilAsync(const sp<AMessage> &params);
82 virtual void onMessageReceived(const sp<AMessage> &msg);
105 sp<AMessage> mNotify;
106 sp<AMessage> mStartTimeUsNotify;
121 sp<AMessage> mStopParams; // message containing the latest timestamps we should fetch.
186 status_t onStart(const sp<AMessage> &msg);
188 void onStop(const sp<AMessage> &msg);
193 status_t onResumeUntil(const sp<AMessage> &msg);
202 const sp<ABuffer> &buffer, const sp<AMessage> &itemMeta);
[all …]
DM3UParser.h40 sp<AMessage> meta();
43 bool itemAt(size_t index, AString *uri, sp<AMessage> *meta = NULL);
48 sp<AMessage> getTrackInfo(size_t index) const;
62 sp<AMessage> mMeta;
74 sp<AMessage> mMeta;
84 const AString &line, sp<AMessage> *meta, const char *key);
87 const AString &line, sp<AMessage> *meta, const char *key);
90 const AString &line, sp<AMessage> *meta) const;
93 const AString &line, sp<AMessage> *meta, const AString &baseURI);
/frameworks/av/media/ndk/
DNdkMediaFormat.cpp37 sp<AMessage> mFormat;
48 mData->mFormat = *((sp<AMessage>*)data); in AMediaFormat_fromMsg()
53 *((sp<AMessage>*)dest) = mData->mFormat; in AMediaFormat_getFormat()
63 sp<AMessage> msg = new AMessage(); in AMediaFormat_new()
77 sp<AMessage> f = mData->mFormat; in AMediaFormat_toString()
84 AMessage::Type t; in AMediaFormat_toString()
89 case AMessage::kTypeInt32: in AMediaFormat_toString()
96 case AMessage::kTypeInt64: in AMediaFormat_toString()
103 case AMessage::kTypeSize: in AMediaFormat_toString()
110 case AMessage::kTypeFloat: in AMediaFormat_toString()
[all …]
/frameworks/av/include/media/stagefright/foundation/
DANetworkSession.h30 struct AMessage;
41 const char *host, unsigned port, const sp<AMessage> &notify,
46 const sp<AMessage> &notify, int32_t *sessionID);
49 unsigned localPort, const sp<AMessage> &notify, int32_t *sessionID);
55 const sp<AMessage> &notify,
64 const sp<AMessage> &notify, int32_t *sessionID);
71 const sp<AMessage> &notify,
122 const sp<AMessage> &notify,
DALooperRoster.h35 status_t postMessage(const sp<AMessage> &msg, int64_t delayUs = 0);
36 void deliverMessage(const sp<AMessage> &msg);
39 const sp<AMessage> &msg, sp<AMessage> *response);
41 void postReply(uint32_t replyID, const sp<AMessage> &reply);
57 KeyedVector<uint32_t, sp<AMessage> > mReplies;
/frameworks/av/media/libstagefright/wifi-display/
DMediaSender.h32 struct AMessage;
51 const sp<AMessage> &notify);
58 ssize_t addTrack(const sp<AMessage> &format, uint32_t flags);
74 virtual void onMessageReceived(const sp<AMessage> &msg);
89 sp<AMessage> mFormat;
98 sp<AMessage> mNotify;
115 void onSenderNotify(const sp<AMessage> &msg);

12345678