/frameworks/av/camera/ndk/impl/ |
H A D | ACameraDevice.cpp | 263 sp<AMessage> msg = new AMessage(kWhatSessionStateCb, mHandler); local 264 msg->setPointer(kContextKey, session->mUserSessionCallback.context); 265 msg->setObject(kSessionSpKey, session); 266 msg->setPointer(kCallbackFpKey, (void*) session->mUserSessionCallback.onActive); 267 msg->post(); 419 sp<AMessage> msg = new AMessage(kWhatSessionStateCb, mHandler); local 420 msg->setPointer(kContextKey, session->mUserSessionCallback.context); 421 msg->setObject(kSessionSpKey, session); 422 msg->setPointer(kCallbackFpKey, (void*) session->mUserSessionCallback.onActive); 423 msg 427 sp<AMessage> msg = new AMessage(kWhatSessionStateCb, mHandler); local 566 sp<AMessage> msg = new AMessage(kWhatSessionStateCb, mHandler); local 724 sp<AMessage> msg = new AMessage(kWhatCaptureBufferLost, mHandler); local 743 sp<AMessage> msg = new AMessage(kWhatCaptureFail, mHandler); local 758 onMessageReceived( const sp<AMessage> &msg) argument 1052 sp<AMessage> msg = new AMessage(kWhatCaptureSeqAbort, mHandler); local 1102 sp<AMessage> msg = new AMessage(kWhatCaptureSeqEnd, mHandler); local 1153 sp<AMessage> msg = new AMessage(kWhatOnDisconnected, dev->mHandler); local 1177 sp<AMessage> msg = new AMessage(kWhatOnError, dev->mHandler); local 1220 sp<AMessage> msg = new AMessage(kWhatSessionStateCb, dev->mHandler); local 1263 sp<AMessage> msg = new AMessage(kWhatCaptureStart, dev->mHandler); local 1326 sp<AMessage> msg = new AMessage(kWhatCaptureResult, dev->mHandler); local [all...] |
H A D | ACameraManager.cpp | 170 sp<AMessage> msg = new AMessage(kWhatSendSingleCallback, mHandler); local 173 msg->setPointer(kCallbackFpKey, (void *) cb); 174 msg->setPointer(kContextKey, callback->context); 175 msg->setInt32(kCameraIdKey, cameraId); 176 msg->post(); 218 const sp<AMessage> &msg) { 219 switch (msg->what()) { 225 bool found = msg->findPointer(kCallbackFpKey, (void**) &cb); 230 found = msg->findPointer(kContextKey, &context); 235 found = msg 217 onMessageReceived( const sp<AMessage> &msg) argument 287 sp<AMessage> msg = new AMessage(kWhatSendSingleCallback, mHandler); local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 48 const sp<AMessage> &msg, sp<AMessage> *response) { 49 status_t err = msg->postAndAwaitResponse(response); 62 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 63 msg->setString("path", path); 65 return PostAndAwaitResponse(msg, &response); 69 sp<AMessage> msg = new AMessage(kWhatSetSurface, this); local 76 msg->setObject("surface", surface); 79 return PostAndAwaitResponse(msg, &response); 83 sp<AMessage> msg = new AMessage(kWhatPrepare, this); local 85 return PostAndAwaitResponse(msg, 47 PostAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument 89 sp<AMessage> msg = new AMessage(kWhatStart, this); local 95 sp<AMessage> msg = new AMessage(kWhatStop, this); local 101 sp<AMessage> msg = new AMessage(kWhatReset, this); local 106 onMessageReceived(const sp<AMessage> &msg) argument 382 sp<AMessage> msg = new AMessage(kWhatDoMoreStuff, this); local [all...] |
H A D | sf2.cpp | 99 virtual void onMessageReceived(const sp<AMessage> &msg) { argument 106 switch (msg->what()) { 211 CHECK(msg->findInt32("what", &what)); 214 onFillThisBuffer(msg); 221 onDrainThisBuffer(msg); 294 sp<AMessage> msg = new AMessage; local 295 msg->setString("mime", mime); 302 msg->setInt32("width", width); 303 msg->setInt32("height", height); 311 msg 440 onFillThisBuffer(const sp<AMessage> &msg) argument 554 onDrainThisBuffer(const sp<AMessage> &msg) argument [all...] |
H A D | stream.cpp | 272 virtual void notify(int msg, int ext1 __unused, int ext2 __unused, const Parcel *obj __unused) { argument 275 if (msg == MEDIA_ERROR || msg == MEDIA_PLAYBACK_COMPLETE) {
|
/frameworks/av/include/media/ |
H A D | MediaPlayerInterface.h | 70 int msg, int ext1, int ext2, const Parcel *obj); 255 void sendEvent(int msg, int ext1=0, int ext2=0, argument 265 if (notifyCB) notifyCB(cookie, msg, ext1, ext2, obj);
|
/frameworks/av/include/media/stagefright/ |
H A D | ACodec.h | 45 virtual void setNotificationMessage(const sp<AMessage> &msg); 47 void initiateSetup(const sp<AMessage> &msg); 49 virtual void initiateAllocateComponent(const sp<AMessage> &msg); 50 virtual void initiateConfigureComponent(const sp<AMessage> &msg); 65 virtual void signalSetParameters(const sp<AMessage> &msg); 70 virtual void onMessageReceived(const sp<AMessage> &msg) { argument 71 handleMessage(msg); 310 status_t setCyclicIntraMacroblockRefresh(const sp<AMessage> &msg, int32_t mode); 348 status_t configureCodec(const char *mime, const sp<AMessage> &msg); 362 const char *mime, const sp<AMessage> &msg, boo [all...] |
H A D | MediaWriter.h | 60 void notify(int msg, int ext1, int ext2) { argument 62 mListener->notify(msg, ext1, ext2);
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | AHandlerReflector.h | 32 virtual void onMessageReceived(const sp<AMessage> &msg) { argument 35 target->onMessageReceived(msg);
|
/frameworks/av/media/libmedia/ |
H A D | IHDCP.cpp | 45 int msg, int ext1, int ext2, const Parcel *obj) { 48 data.writeInt32(msg); 178 int msg = data.readInt32(); local 190 notify(msg, ext1, ext2, &obj); 44 notify( int msg, int ext1, int ext2, const Parcel *obj) argument
|
H A D | IMediaPlayerClient.cpp | 38 virtual void notify(int msg, int ext1, int ext2, const Parcel *obj) argument 42 data.writeInt32(msg); 62 int msg = data.readInt32(); local 70 notify(msg, ext1, ext2, &obj);
|
H A D | IMediaRecorderClient.cpp | 38 virtual void notify(int msg, int ext1, int ext2) argument 42 data.writeInt32(msg); 59 int msg = data.readInt32(); local 62 notify(msg, ext1, ext2);
|
H A D | IOMX.cpp | 1239 const omx_message &msg = *it++; local 1242 data.writeInt32(msg.node); 1245 data.writeInt32(msg.fenceFd >= 0); 1246 if (msg.fenceFd >= 0) { 1247 data.writeFileDescriptor(msg.fenceFd, true /* takeOwnership */); 1249 data.writeInt32(msg.type); 1250 data.write(&msg.u, sizeof(msg.u)); 1251 ALOGV("onMessage writing message %d, size %zu", msg.type, sizeof(msg)); 1276 omx_message msg; local [all...] |
H A D | IStreamSource.cpp | 162 Command cmd, bool synchronous, const sp<AMessage> &msg) { 168 if (msg != NULL) { 170 msg->writeToParcel(&data); 201 sp<AMessage> msg; local 204 msg = AMessage::FromParcel(data); 207 issueCommand(cmd, synchronous, msg); 161 issueCommand( Command cmd, bool synchronous, const sp<AMessage> &msg) argument
|
H A D | mediaplayer.cpp | 798 void MediaPlayer::notify(int msg, int ext1, int ext2, const Parcel *obj) argument 800 ALOGV("message received msg=%d, ext1=%d, ext2=%d", msg, ext1, ext2); 818 if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) { 819 ALOGV("notify(%d, %d, %d) callback on disconnected mediaplayer", msg, ext1, ext2); 824 switch (msg) { 898 ALOGV("unrecognized message: (%d, %d, %d)", msg, ext1, ext2); 909 listener->notify(msg, ext1, ext2, obj);
|
H A D | mediarecorder.cpp | 724 void MediaRecorder::notify(int msg, int ext1, int ext2) argument 726 ALOGV("message received msg=%d, ext1=%d, ext2=%d", msg, ext1, ext2); 736 listener->notify(msg, ext1, ext2);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | HDCP.cpp | 162 void HDCP::ObserveWrapper(void *me, int msg, int ext1, int ext2) { argument 163 static_cast<HDCP *>(me)->observe(msg, ext1, ext2); 166 void HDCP::observe(int msg, int ext1, int ext2) { argument 170 mObserver->notify(msg, ext1, ext2, NULL /* obj */);
|
H A D | MediaPlayerService.cpp | 1268 void* cookie, int msg, int ext1, int ext2, const Parcel *obj) 1279 if (msg == MEDIA_PLAYBACK_COMPLETE && client->mNextClient != NULL) { 1290 if (MEDIA_INFO == msg && 1304 ALOGV("[%d] notify (%p, %d, %d, %d)", client->mConnId, cookie, msg, ext1, ext2); 1305 c->notify(msg, ext1, ext2, obj); 1267 notify( void* cookie, int msg, int ext1, int ext2, const Parcel *obj) argument
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 317 sp<AMessage> msg = dupNotify(); local 318 msg->setInt32("what", kWhatDrmNoLicense); 319 msg->post(); 367 sp<AMessage> msg = new AMessage(kWhatPrepareAsync, this); local 368 msg->post(); 434 sp<AMessage> msg = new AMessage; local 435 err = convertMetaDataToMessage(meta, &msg); 440 notifyVideoSizeChanged(msg); 541 sp<AMessage> msg = new AMessage(kWhatStopWidevine, this); local 543 (void) msg 591 onMessageReceived(const sp<AMessage> &msg) argument 740 fetchTextData( uint32_t sendWhat, media_track_type type, int32_t curGen, sp<AnotherPacketSource> packets, sp<AMessage> msg) argument 840 sp<AMessage> msg = new AMessage(kWhatGetFormat, this); local 936 sp<AMessage> msg = new AMessage(kWhatFetchSubtitleData, this); local 944 sp<AMessage> msg = new AMessage(kWhatFetchTimedTextData, this); local 1012 sp<AMessage> msg = new AMessage(kWhatGetSelectedTrack, this); local 1068 sp<AMessage> msg = new AMessage(kWhatSelectTrack, this); local 1082 onSelectTrack(sp<AMessage> msg) argument 1154 sp<AMessage> msg = new AMessage(kWhatFetchSubtitleData, this); local 1166 sp<AMessage> msg = new AMessage(kWhatFetchTimedTextData, this); local 1180 sp<AMessage> msg = new AMessage(kWhatChangeAVSource, this); local 1190 sp<AMessage> msg = new AMessage(kWhatSeek, this); local 1202 onSeek(sp<AMessage> msg) argument 1348 sp<AMessage> msg = new AMessage(kWhatReadBuffer, this); local 1354 onReadBuffer(sp<AMessage> msg) argument 1639 sp<AMessage> msg = mNotify->dup(); local 1715 sp<AMessage> msg = new AMessage(kWhatPollBuffering, this); local 1815 onMessageReceived(const sp<AMessage> &msg) argument [all...] |
H A D | HTTPLiveSource.cpp | 192 sp<AMessage> msg = new AMessage(what, this); local 193 msg->setInt32("generation", generation); 194 msg->post(); 209 const sp<AMessage> &msg, int32_t currentGeneration, 213 CHECK(msg->findInt32("generation", &generation)); 233 msg->post(delayUs > 0ll ? delayUs : 0ll); 248 msg->post(1000000ll); 251 void NuPlayer::HTTPLiveSource::onMessageReceived(const sp<AMessage> &msg) { argument 252 switch (msg->what()) { 255 onSessionNotify(msg); 208 pollForRawData( const sp<AMessage> &msg, int32_t currentGeneration, LiveSession::StreamType fetchType, int32_t pushWhat) argument 289 onSessionNotify(const sp<AMessage> &msg) argument [all...] |
H A D | NuPlayer.cpp | 134 PostMessageAction(const sp<AMessage> &msg) argument 135 : mMessage(msg) { 213 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 217 msg->setObject("source", new StreamingSource(notify, source)); 218 msg->post(); 243 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 275 msg->setObject("source", source); 276 msg->post(); 280 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 294 msg 299 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 320 sp<AMessage> msg = new AMessage(kWhatSetVideoSurface, this); local 332 sp<AMessage> msg = new AMessage(kWhatSetAudioSink, this); local 350 sp<AMessage> msg = new AMessage(kWhatConfigPlayback, this); local 361 sp<AMessage> msg = new AMessage(kWhatGetPlaybackSettings, this); local 374 sp<AMessage> msg = new AMessage(kWhatConfigSync, this); local 386 sp<AMessage> msg = new AMessage(kWhatGetSyncSettings, this); local 423 sp<AMessage> msg = new AMessage(kWhatSeek, this); local 481 onMessageReceived(const sp<AMessage> &msg) argument 1479 sp<AMessage> msg = new AMessage(kWhatScanSources, this); local 1749 notifyListener(int msg, int ext1, int ext2, const Parcel *in) argument 1831 sp<AMessage> msg = new AMessage(kWhatGetTrackInfo, this); local 1840 sp<AMessage> msg = new AMessage(kWhatGetSelectedTrack, this); local 1853 sp<AMessage> msg = new AMessage(kWhatSelectTrack, this); local 1920 sp<AMessage> msg = new AMessage(kWhatPollDuration, this); local 2098 onSourceNotify(const sp<AMessage> &msg) argument 2317 onClosedCaptionNotify(const sp<AMessage> &msg) argument 2422 sp<AMessage> msg = new AMessage; local [all...] |
H A D | NuPlayerCCDecoder.cpp | 491 sp<AMessage> msg = mNotify->dup(); local 492 msg->setInt32("what", kWhatTrackAdded); 493 msg->post(); 539 sp<AMessage> msg = mNotify->dup(); local 540 msg->setInt32("what", kWhatClosedCaptionData); 541 msg->setBuffer("buffer", ccBuf); 542 msg->post();
|
H A D | NuPlayerDecoder.cpp | 96 sp<AMessage> msg = new AMessage(kWhatSetVideoSurface, this); local 98 msg->setObject("surface", surface); 100 status_t err = msg->postAndAwaitResponse(&response); 107 void NuPlayer::Decoder::onMessageReceived(const sp<AMessage> &msg) { argument 108 ALOGV("[%s] onMessage: %s", mComponentName.c_str(), msg->debugString().c_str()); 110 switch (msg->what()) { 114 CHECK(msg->findInt32("callbackID", &cbID)); 127 CHECK(msg->findInt32("index", &index)); 141 CHECK(msg->findInt32("index", &index)); 142 CHECK(msg 455 sp<AMessage> msg = new AMessage(); local 521 sp<AMessage> msg = new AMessage(); local 536 sp<AMessage> msg = *mPendingInputMessages.begin(); local 678 isStaleReply(const sp<AMessage> &msg) argument 773 onInputBufferFetched(const sp<AMessage> &msg) argument 901 onRenderBuffer(const sp<AMessage> &msg) argument 958 sp<AMessage> msg = mNotify->dup(); local [all...] |
H A D | NuPlayerDecoderBase.cpp | 51 const sp<AMessage> &msg, sp<AMessage> *response) { 52 status_t err = msg->postAndAwaitResponse(response); 66 sp<AMessage> msg = new AMessage(kWhatConfigure, this); local 67 msg->setMessage("format", format); 68 msg->post(); 76 sp<AMessage> msg = new AMessage(kWhatSetParameters, this); local 77 msg->setMessage("params", params); 78 msg->post(); 82 sp<AMessage> msg = new AMessage(kWhatSetRenderer, this); local 83 msg 50 PostAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument 88 sp<AMessage> msg = new AMessage(kWhatPause, this); local 95 sp<AMessage> msg = new AMessage(kWhatGetInputBuffers, this); local 107 sp<AMessage> msg = new AMessage(kWhatResume, this); local 125 sp<AMessage> msg = new AMessage(kWhatRequestInputBuffers, this); local 130 onMessageReceived(const sp<AMessage> &msg) argument [all...] |
H A D | NuPlayerDecoderPassThrough.cpp | 100 bool NuPlayer::DecoderPassThrough::isStaleReply(const sp<AMessage> &msg) { argument 102 CHECK(msg->findInt32("generation", &generation)); 119 sp<AMessage> msg = new AMessage(); local 121 err = fetchInputData(msg); 126 onInputBufferFetched(msg); 247 sp<AMessage> msg = mNotify->dup(); local 248 msg->setInt32("what", kWhatInputDiscontinuity); 251 msg->setInt32("formatChange", false); 252 msg->post(); 287 const sp<AMessage> &msg) { 286 onInputBufferFetched( const sp<AMessage> &msg) argument 413 onMessageReceived(const sp<AMessage> &msg) argument [all...] |