Home
last modified time | relevance | path

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

1234567891011

/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoderBase.cpp32 NuPlayer::DecoderBase::DecoderBase(const sp<AMessage> &notify) in DecoderBase()
36 mStats(new AMessage), in DecoderBase()
51 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse()
65 void NuPlayer::DecoderBase::configure(const sp<AMessage> &format) { in configure()
66 sp<AMessage> msg = new AMessage(kWhatConfigure, this); in configure()
80 void NuPlayer::DecoderBase::setParameters(const sp<AMessage> &params) { in setParameters()
81 sp<AMessage> msg = new AMessage(kWhatSetParameters, this); in setParameters()
87 sp<AMessage> msg = new AMessage(kWhatSetRenderer, this); in setRenderer()
93 sp<AMessage> msg = new AMessage(kWhatPause, this); in pause()
95 sp<AMessage> response; in pause()
[all …]
DNuPlayer.cpp142 explicit PostMessageAction(const sp<AMessage> &msg) in PostMessageAction()
151 sp<AMessage> mMessage;
227 sp<AMessage> notify = new AMessage(kWhatMediaClockNotify, this); in init()
232 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); in setDataSourceAsync()
234 sp<AMessage> notify = new AMessage(kWhatSourceNotify, this); in setDataSourceAsync()
263 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); in setDataSourceAsync()
266 sp<AMessage> notify = new AMessage(kWhatSourceNotify, this); in setDataSourceAsync()
308 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); in setDataSourceAsync()
310 sp<AMessage> notify = new AMessage(kWhatSourceNotify, this); in setDataSourceAsync()
331 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); in setDataSourceAsync()
[all …]
DHTTPLiveSource.cpp41 const sp<AMessage> &notify, in HTTPLiveSource()
110 sp<AMessage> notify = new AMessage(kWhatSessionNotify, this); in prepareAsync()
139 sp<AMessage> NuPlayer::HTTPLiveSource::getFormat(bool audio) { in getFormat()
149 sp<AMessage> format; in getFormat()
151 format = new AMessage(); in getFormat()
182 sp<AMessage> NuPlayer::HTTPLiveSource::getTrackInfo(size_t trackIndex) const { in getTrackInfo()
228 sp<AMessage> msg = new AMessage(what, this); in selectTrack()
249 const sp<AMessage> &msg, int32_t currentGeneration, in pollForRawData()
262 sp<AMessage> notify = dupNotify(); in pollForRawData()
291 void NuPlayer::HTTPLiveSource::onMessageReceived(const sp<AMessage> &msg) { in onMessageReceived()
[all …]
/frameworks/av/media/module/foundation/tests/
DAMessage_test.cpp53 MOCK_METHOD(void, onMessageReceived, (const sp<AMessage>&), (override));
57 sp<AMessage> m1 = new AMessage(); in TEST()
72 EXPECT_TRUE(AMessage::maxAllowedEntries() > 0); in TEST()
75 EXPECT_EQ(m1->maxAllowedEntries(), AMessage::maxAllowedEntries()); in TEST()
79 sp<AMessage> m1 = new AMessage(); in TEST()
177 sp<AMessage> msgNow1 = new AMessage(0, mockHandler); in TEST()
179 sp<AMessage> msgNow2 = new AMessage(0, mockHandler); in TEST()
196 sp<AMessage> msgNow = new AMessage(0, mockHandler); in TEST()
198 sp<AMessage> msgDelayed = new AMessage(0, mockHandler); in TEST()
213 sp<AMessage> msgIn500 = new AMessage(0, mockHandler); in TEST()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/
DNuPlayerDecoder.h29 Decoder(const sp<AMessage> &notify,
37 virtual sp<AMessage> getStats();
47 virtual void onMessageReceived(const sp<AMessage> &msg);
49 virtual void onConfigure(const sp<AMessage> &format);
50 virtual void onSetParameters(const sp<AMessage> &params);
76 sp<AMessage> mInputFormat;
77 sp<AMessage> mOutputFormat;
81 List<sp<AMessage> > mPendingInputMessages;
124 void handleOutputFormatChange(const sp<AMessage> &format);
128 bool isStaleReply(const sp<AMessage> &msg);
[all …]
DNuPlayerDecoderBase.h34 explicit DecoderBase(const sp<AMessage> &notify);
36 void configure(const sp<AMessage> &format);
38 void setParameters(const sp<AMessage> &params);
50 virtual sp<AMessage> getStats() { in getStats()
74 virtual void onMessageReceived(const sp<AMessage> &msg);
76 virtual void onConfigure(const sp<AMessage> &format) = 0;
77 virtual void onSetParameters(const sp<AMessage> &params) = 0;
87 sp<AMessage> mNotify;
90 sp<AMessage> mStats;
DNuPlayerDecoderPassThrough.h28 DecoderPassThrough(const sp<AMessage> &notify,
36 virtual void onMessageReceived(const sp<AMessage> &msg);
38 virtual void onConfigure(const sp<AMessage> &format);
39 virtual void onSetParameters(const sp<AMessage> &params);
69 bool isStaleReply(const sp<AMessage> &msg);
74 status_t fetchInputData(sp<AMessage> &reply);
77 void onInputBufferFetched(const sp<AMessage> &msg);
/frameworks/av/media/libstagefright/include/media/stagefright/
DACodec.h68 void initiateSetup(const sp<AMessage> &msg);
71 virtual void initiateAllocateComponent(const sp<AMessage> &msg);
72 virtual void initiateConfigureComponent(const sp<AMessage> &msg);
91 virtual void signalSetParameters(const sp<AMessage> &msg);
96 virtual void onMessageReceived(const sp<AMessage> &msg) { in onMessageReceived()
274 sp<AMessage> mConfigFormat;
275 sp<AMessage> mInputFormat;
276 sp<AMessage> mOutputFormat;
280 sp<AMessage> mBaseOutputFormat;
287 std::list<sp<AMessage>> mDeferredQueue;
[all …]
DUtils.h31 struct AMessage;
33 const MetaDataBase *meta, sp<AMessage> *format);
35 const sp<MetaData> &meta, sp<AMessage> *format);
37 const sp<AMessage> &format, sp<MetaData> &meta);
64 sp<AMessage> mMeta;
66 explicit HLSTime(const sp<AMessage> &meta = NULL);
74 void writeToAMessage(const sp<AMessage> &msg, const AudioPlaybackRate &rate);
75 void readFromAMessage(const sp<AMessage> &msg, AudioPlaybackRate *rate /* nonnull */);
77 void writeToAMessage(const sp<AMessage> &msg, const AVSyncSettings &sync, float videoFpsHint);
79 const sp<AMessage> &msg, AVSyncSettings *sync /* nonnull */, float *videoFps /* nonnull */);
[all …]
DMediaCodec.h55 struct AMessage;
137 pid_t pid, uid_t uid, sp<AMessage> format);
146 const sp<AMessage> &format,
152 const sp<AMessage> &format,
160 status_t setCallback(const sp<AMessage> &callback);
162 status_t setOnFrameRenderedNotification(const sp<AMessage> &notify);
164 status_t setOnFirstTunnelFrameReadyNotification(const sp<AMessage> &notify);
184 status_t releaseAsync(const sp<AMessage> &notify);
228 const sp<AMessage> &tunings,
238 const sp<AMessage> &tunings,
[all …]
DCryptoAsync.h36 virtual void onDecryptComplete(const sp<AMessage>& result) = 0;
43 virtual void onDecryptError(const std::list<sp<AMessage>>& errorMsg) = 0;
67 status_t decrypt(sp<AMessage>& msg);
75 void stop(std::list<sp<AMessage>> * const buffers = nullptr);
130 status_t decryptAndQueue(sp<AMessage>& msg);
133 status_t attachEncryptedBufferAndQueue(sp<AMessage>& msg);
136 void onMessageReceived(const sp<AMessage>& msg) override;
144 Mutexed<std::list<sp<AMessage>>> mPendingBuffers;
/frameworks/av/media/module/foundation/
DAMessage.cpp44 status_t AReplyToken::setReply(const sp<AMessage> &reply) { in setReply()
55 AMessage::AMessage(void) in AMessage() function in android::AMessage
60 AMessage::AMessage(uint32_t what, const sp<const AHandler> &handler) in AMessage() function in android::AMessage
65 AMessage::~AMessage() { in ~AMessage()
69 void AMessage::setWhat(uint32_t what) { in setWhat()
73 uint32_t AMessage::what() const { in what()
77 void AMessage::setTarget(const sp<const AHandler> &handler) { in setTarget()
89 void AMessage::clear() { in clear()
99 void AMessage::freeItemValue(Item *item) { in freeItemValue()
153 inline size_t AMessage::findItemIndex(const char *name, size_t len) const { in findItemIndex()
[all …]
/frameworks/wilhelm/src/android/
Dandroid_GenericPlayer.cpp139 sp<AMessage> msg = new AMessage(kWhatPrepare, this); in prepare()
147 sp<AMessage> msg = new AMessage(kWhatPlay, this); in play()
154 sp<AMessage> msg = new AMessage(kWhatPause, this); in pause()
161 (new AMessage(kWhatPause, this))->post(); in stop()
174 sp<AMessage> msg = new AMessage(kWhatSeek, this); in seek()
182 sp<AMessage> msg = new AMessage(kWhatLoop, this); in loop()
190 sp<AMessage> msg = new AMessage(kWhatBuffUpdateThres, this); in setBufferingUpdateThreshold()
211 (new AMessage(kWhatVolumeUpdate, this))->post(); in setVolume()
219 sp<AMessage> msg = new AMessage(kWhatAttachAuxEffect, this); in attachAuxEffect()
229 sp<AMessage> msg = new AMessage(kWhatSetAuxEffectSendLevel, this); in setAuxEffectSendLevel()
[all …]
/frameworks/av/media/libstagefright/
DMediaCodecSource.cpp58 status_t start(const sp<MetaData> &meta, const sp<AMessage> &notify);
67 virtual void onMessageReceived(const sp<AMessage> &msg);
79 sp<AMessage> mNotify;
102 status_t postSynchronouslyAndReturnError(const sp<AMessage> &msg);
156 const sp<AMessage> &msg) { in postSynchronouslyAndReturnError()
157 sp<AMessage> response; in postSynchronouslyAndReturnError()
175 status_t MediaCodecSource::Puller::start(const sp<MetaData> &meta, const sp<AMessage> &notify) { in start()
184 sp<AMessage> msg = new AMessage(kWhatStart, this); in start()
204 sp<AMessage> msg = new AMessage(kWhatStop, this); in stopSource()
220 (new AMessage(kWhatPull, this))->post(); in schedulePull()
[all …]
DCryptoAsync.cpp66 status_t CryptoAsync::decrypt(sp<AMessage> &msg) { in decrypt()
74 Mutexed<std::list<sp<AMessage>>>::Locked pendingBuffers(mPendingBuffers); in decrypt()
82 sp<AMessage> decryptMsg = new AMessage(kWhatDecrypt, this); in decrypt()
88 void CryptoAsync::stop(std::list<sp<AMessage>> * const buffers) { in stop()
89 sp<AMessage> stopMsg = new AMessage(kWhatStop, this); in stop()
91 sp<AMessage> response; in stop()
101 status_t CryptoAsync::decryptAndQueue(sp<AMessage> & msg) { in decryptAndQueue()
134 std::list<sp<AMessage>> errorList; in decryptAndQueue()
145 status_t CryptoAsync::attachEncryptedBufferAndQueue(sp<AMessage> & msg) { in attachEncryptedBufferAndQueue()
194 std::list<sp<AMessage>> errorList; in attachEncryptedBufferAndQueue()
[all …]
DMediaCodec.cpp280 sp<AMessage> &msg, const sp<BufferInfosWrapper> &bufferInfos) { in generateFlagsFromAccessUnitInfo()
812 explicit CryptoAsyncCallback(const sp<AMessage> & notify):mNotify(notify) { in CryptoAsyncCallback()
817 void onDecryptComplete(const sp<AMessage> &result) override { in onDecryptComplete()
821 void onDecryptError(const std::list<sp<AMessage>> &errorMsgs) override { in onDecryptError()
825 sp<AMessage> notify(mNotify->dup()); in onDecryptError()
840 const sp<AMessage> mNotify;
876 explicit BufferCallback(const sp<AMessage> &notify);
884 const sp<AMessage> mNotify;
887 BufferCallback::BufferCallback(const sp<AMessage> &notify) in BufferCallback()
892 sp<AMessage> notify(mNotify->dup()); in onInputBufferAvailable()
[all …]
/frameworks/av/media/libstagefright/rtsp/include/media/stagefright/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);
53 virtual void onMessageReceived(const sp<AMessage> &msg);
93 KeyedVector<int32_t, sp<AMessage> > mPendingRequests;
95 sp<AMessage> mObserveBinaryMessage;
99 void onConnect(const sp<AMessage> &msg);
100 void onDisconnect(const sp<AMessage> &msg);
101 void onCompleteConnection(const sp<AMessage> &msg);
[all …]
DMyHandler.h131 const sp<AMessage> &notify,
192 sp<AMessage> notify = new AMessage('biny', this); in connect()
195 sp<AMessage> reply = new AMessage('conn', this); in connect()
203 sp<AMessage> notify = new AMessage('biny', this); in loadSDP()
206 sp<AMessage> reply = new AMessage('sdpl', this); in loadSDP()
233 (new AMessage('abor', this))->post(); in disconnect()
237 sp<AMessage> msg = new AMessage('seek', this); in seek()
244 sp<AMessage> msg = new AMessage('see1', this); in continueSeekAfterPause()
254 sp<AMessage> msg = new AMessage('paus', this); in pause()
261 sp<AMessage> msg = new AMessage('resu', this); in resume()
[all …]
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/
DAMessage.h43 friend struct AMessage;
46 sp<AMessage> mReply;
53 bool retrieveReply(sp<AMessage> *reply) { in retrieveReply()
61 status_t setReply(const sp<AMessage> &reply);
64 struct AMessage : public RefBase { struct
65 AMessage();
66 AMessage(uint32_t what, const sp<const AHandler> &handler);
86 static sp<AMessage> FromParcel(const Parcel &parcel,
113 void setMessage(const char *name, const sp<AMessage> &obj);
130 bool findMessage(const char *name, sp<AMessage> *obj) const;
[all …]
DALooper.h32 struct AMessage;
68 friend struct AMessage; // post()
72 sp<AMessage> mMessage;
95 void post(const sp<AMessage> &msg, int64_t delayUs);
100 status_t postUnique(const sp<AMessage> &msg, const sp<RefBase> &token, int64_t delayUs);
106 status_t awaitResponse(const sp<AReplyToken> &replyToken, sp<AMessage> *response);
109 status_t postReply(const sp<AReplyToken> &replyToken, const sp<AMessage> &msg);
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp49 const sp<AMessage> &msg, sp<AMessage> *response) { in PostAndAwaitResponse()
63 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); in setDataSource()
65 sp<AMessage> response; in setDataSource()
70 sp<AMessage> msg = new AMessage(kWhatSetSurface, this); in setSurface()
79 sp<AMessage> response; in setSurface()
84 sp<AMessage> msg = new AMessage(kWhatPrepare, this); in prepare()
85 sp<AMessage> response; in prepare()
90 sp<AMessage> msg = new AMessage(kWhatStart, this); in start()
91 sp<AMessage> response; in start()
96 sp<AMessage> msg = new AMessage(kWhatStop, this); in stop()
[all …]
/frameworks/av/media/libmedia/include/media/
DMediaCodecBuffer.h30 struct AMessage;
38 MediaCodecBuffer(const sp<AMessage> &format, const sp<ABuffer> &buffer);
57 sp<AMessage> meta();
58 sp<AMessage> format();
60 void setFormat(const sp<AMessage> &format);
95 const sp<AMessage> mMeta;
96 sp<AMessage> mFormat;
/frameworks/av/media/module/mpeg2ts/include/mpeg2ts/
DAnotherPacketSource.h69 const sp<AMessage> &extra,
81 sp<AMessage> getLatestEnqueuedMeta();
82 sp<AMessage> getLatestDequeuedMeta();
83 sp<AMessage> getMetaAfterLastDequeued(int64_t delayUs);
85 void trimBuffersAfterMeta(const sp<AMessage> &meta);
86 sp<AMessage> trimBuffersBeforeMeta(const sp<AMessage> &meta);
122 sp<AMessage> mLatestEnqueuedMeta;
123 sp<AMessage> mLatestDequeuedMeta;
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.h58 const sp<AMessage> &notify,
81 void resumeUntilAsync(const sp<AMessage> &params);
91 virtual void onMessageReceived(const sp<AMessage> &msg);
117 sp<AMessage> mNotify;
118 sp<AMessage> mStartTimeUsNotify;
136 sp<AMessage> mStopParams; // message containing the latest timestamps we should fetch.
183 sp<AMessage> mSampleAesKeyItem;
221 status_t onStart(const sp<AMessage> &msg);
223 void onStop(const sp<AMessage> &msg);
231 sp<AMessage> &itemMeta,
[all …]
DM3UParser.h43 sp<AMessage> meta();
46 bool itemAt(size_t index, AString *uri, sp<AMessage> *meta = NULL);
51 sp<AMessage> getTrackInfo(size_t index) const;
68 sp<AMessage> mMeta;
85 sp<AMessage> mMeta;
95 const AString &line, sp<AMessage> *meta, const char *key);
98 const AString &line, sp<AMessage> *meta, const char *key);
101 const AString &line, sp<AMessage> *meta) const;
104 const AString &line, sp<AMessage> *meta);

1234567891011