/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 | 206 sp<AMessage> msg = new AMessage(kWhatSendSingleCallback, mHandler); local 209 msg->setPointer(kCallbackFpKey, (void *) cb); 210 msg->setPointer(kContextKey, callback->context); 211 msg->setString(kCameraIdKey, AString(cameraId)); 212 msg->post(); 266 const sp<AMessage> &msg) { 267 switch (msg->what()) { 273 bool found = msg->findPointer(kCallbackFpKey, (void**) &cb); 278 found = msg->findPointer(kContextKey, &context); 283 found = msg 265 onMessageReceived( const sp<AMessage> &msg) argument 335 sp<AMessage> msg = new AMessage(kWhatSendSingleCallback, mHandler); local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 49 const sp<AMessage> &msg, sp<AMessage> *response) { 50 status_t err = msg->postAndAwaitResponse(response); 63 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 64 msg->setString("path", path); 66 return PostAndAwaitResponse(msg, &response); 70 sp<AMessage> msg = new AMessage(kWhatSetSurface, this); local 77 msg->setObject("surface", surface); 80 return PostAndAwaitResponse(msg, &response); 84 sp<AMessage> msg = new AMessage(kWhatPrepare, this); local 86 return PostAndAwaitResponse(msg, 48 PostAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument 90 sp<AMessage> msg = new AMessage(kWhatStart, this); local 96 sp<AMessage> msg = new AMessage(kWhatStop, this); local 102 sp<AMessage> msg = new AMessage(kWhatReset, this); local 107 onMessageReceived(const sp<AMessage> &msg) argument 383 sp<AMessage> msg = new AMessage(kWhatDoMoreStuff, this); local [all...] |
H A D | stream.cpp | 278 virtual void notify(int msg, int ext1 __unused, int ext2 __unused, const Parcel *obj __unused) { argument 281 if (msg == MEDIA_ERROR || msg == MEDIA_PLAYBACK_COMPLETE) {
|
/frameworks/av/drm/libmediadrm/ |
H A D | ICrypto.cpp | 155 AString msg = reply.readCString(); local 157 *errorDetailMsg = msg;
|
/frameworks/av/include/media/ |
H A D | MediaPlayerInterface.h | 71 int msg, int ext1, int ext2, const Parcel *obj); 271 void sendEvent(int msg, int ext1=0, int ext2=0, argument 281 if (notifyCB) notifyCB(cookie, msg, ext1, ext2, obj);
|
/frameworks/av/include/media/stagefright/ |
H A D | ACodec.h | 65 void initiateSetup(const sp<AMessage> &msg); 68 virtual void initiateAllocateComponent(const sp<AMessage> &msg); 69 virtual void initiateConfigureComponent(const sp<AMessage> &msg); 84 virtual void signalSetParameters(const sp<AMessage> &msg); 89 virtual void onMessageReceived(const sp<AMessage> &msg) { argument 90 handleMessage(msg); 317 status_t setCyclicIntraMacroblockRefresh(const sp<AMessage> &msg, int32_t mode); 355 status_t configureCodec(const char *mime, const sp<AMessage> &msg); 369 const char *mime, const sp<AMessage> &msg, bool usingNativeBuffers, bool haveSwRenderer, 373 const char *mime, const sp<AMessage> &msg, [all...] |
H A D | MediaWriter.h | 61 void notify(int msg, int ext1, int ext2) { argument 63 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 | 426 virtual status_t dispatchMessage(const omx_message &msg) { argument 429 data.writeInt32(msg.fenceFd >= 0); 430 if (msg.fenceFd >= 0) { 431 data.writeFileDescriptor(msg.fenceFd, true /* takeOwnership */); 433 data.writeInt32(msg.type); 434 data.write(&msg.u, sizeof(msg.u)); 549 virtual status_t dispatchMessage(const omx_message &msg) { argument 550 return mBase->dispatchMessage(msg); 959 omx_message msg; local 994 const omx_message &msg = *it++; local 1023 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 | 852 void MediaPlayer::notify(int msg, int ext1, int ext2, const Parcel *obj) argument 854 ALOGV("message received msg=%d, ext1=%d, ext2=%d", msg, ext1, ext2); 872 if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) { 873 ALOGV("notify(%d, %d, %d) callback on disconnected mediaplayer", msg, ext1, ext2); 878 switch (msg) { 892 ALOGV("MediaPlayer::notify() MEDIA_DRM_INFO(%d, %d, %d, %p)", msg, ext1, ext2, obj); 957 ALOGV("unrecognized message: (%d, %d, %d)", msg, ext1, ext2); 968 listener->notify(msg, ext1, ext2, obj);
|
H A D | mediarecorder.cpp | 772 void MediaRecorder::notify(int msg, int ext1, int ext2) argument 774 ALOGV("message received msg=%d, ext1=%d, ext2=%d", msg, ext1, ext2); 784 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 | 1391 void* cookie, int msg, int ext1, int ext2, const Parcel *obj) 1404 if (msg == MEDIA_PLAYBACK_COMPLETE && client->mNextClient != NULL) { 1430 if (MEDIA_INFO == msg && 1444 ALOGV("[%d] notify (%p, %d, %d, %d)", client->mConnId, cookie, msg, ext1, ext2); 1445 c->notify(msg, ext1, ext2, obj); 1390 notify( void* cookie, int msg, int ext1, int ext2, const Parcel *obj) argument
|
/frameworks/av/media/libmediaplayerservice/include/ |
H A D | MediaPlayerInterface.h | 71 int msg, int ext1, int ext2, const Parcel *obj); 271 void sendEvent(int msg, int ext1=0, int ext2=0, argument 281 if (notifyCB) notifyCB(cookie, msg, ext1, ext2, obj);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 339 sp<AMessage> msg = new AMessage(kWhatPrepareAsync, this); local 340 msg->post(); 431 sp<AMessage> msg = new AMessage; local 432 err = convertMetaDataToMessage(meta, &msg); 437 notifyVideoSizeChanged(msg); 554 void NuPlayer::GenericSource::onMessageReceived(const sp<AMessage> &msg) { argument 555 switch (msg->what()) { 564 mFetchSubtitleDataGeneration, mSubtitleTrack.mPackets, msg); 571 mFetchTimedTextDataGeneration, mTimedTextTrack.mPackets, msg); 578 mFetchSubtitleDataGeneration, mSubtitleTrack.mPackets, msg); 711 fetchTextData( uint32_t sendWhat, media_track_type type, int32_t curGen, const sp<AnotherPacketSource>& packets, const sp<AMessage>& msg) argument 811 sp<AMessage> msg = new AMessage(kWhatGetFormat, this); local 909 sp<AMessage> msg = new AMessage(kWhatFetchSubtitleData, this); local 917 sp<AMessage> msg = new AMessage(kWhatFetchTimedTextData, this); local 936 sp<AMessage> msg = new AMessage(kWhatGetTrackInfo, this); local 1013 sp<AMessage> msg = new AMessage(kWhatGetSelectedTrack, this); local 1069 sp<AMessage> msg = new AMessage(kWhatSelectTrack, this); local 1083 onSelectTrack(const sp<AMessage>& msg) argument 1155 sp<AMessage> msg = new AMessage(kWhatFetchSubtitleData, this); local 1167 sp<AMessage> msg = new AMessage(kWhatFetchTimedTextData, this); local 1181 sp<AMessage> msg = new AMessage(kWhatChangeAVSource, this); local 1191 sp<AMessage> msg = new AMessage(kWhatSeek, this); local 1204 onSeek(const sp<AMessage>& msg) argument 1358 sp<AMessage> msg = new AMessage(kWhatReadBuffer, this); local 1364 onReadBuffer(const sp<AMessage>& msg) argument 1694 sp<AMessage> msg = mNotify->dup(); local 1768 sp<AMessage> msg = new AMessage(kWhatPollBuffering, this); local 1871 onMessageReceived(const sp<AMessage> &msg) argument 1895 sp<AMessage> msg = new AMessage(kWhatPrepareDrm, this); local 1923 sp<AMessage> msg = new AMessage(kWhatReleaseDrm, this); local 1938 onPrepareDrm(const sp<AMessage> &msg) argument [all...] |
H A D | HTTPLiveSource.cpp | 248 sp<AMessage> msg = new AMessage(what, this); local 249 msg->setInt32("generation", generation); 250 msg->post(); 269 const sp<AMessage> &msg, int32_t currentGeneration, 273 CHECK(msg->findInt32("generation", &generation)); 293 msg->post(delayUs > 0ll ? delayUs : 0ll); 308 msg->post(1000000ll); 311 void NuPlayer::HTTPLiveSource::onMessageReceived(const sp<AMessage> &msg) { argument 312 switch (msg->what()) { 315 onSessionNotify(msg); 268 pollForRawData( const sp<AMessage> &msg, int32_t currentGeneration, LiveSession::StreamType fetchType, int32_t pushWhat) argument 349 onSessionNotify(const sp<AMessage> &msg) argument [all...] |
H A D | NuPlayer.cpp | 140 explicit PostMessageAction(const sp<AMessage> &msg) argument 141 : mMessage(msg) { 223 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 227 msg->setObject("source", new StreamingSource(notify, source)); 228 msg->post(); 254 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 294 msg->setObject("source", source); 295 msg->post(); 299 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 316 msg 322 sp<AMessage> msg = new AMessage(kWhatSetDataSource, this); local 340 sp<AMessage> msg = new AMessage(kWhatGetDefaultBufferingSettings, this); local 353 sp<AMessage> msg = new AMessage(kWhatSetBufferingSettings, this); local 371 sp<AMessage> msg = new AMessage(kWhatSetVideoSurface, this); local 383 sp<AMessage> msg = new AMessage(kWhatSetAudioSink, this); local 401 sp<AMessage> msg = new AMessage(kWhatConfigPlayback, this); local 412 sp<AMessage> msg = new AMessage(kWhatGetPlaybackSettings, this); local 425 sp<AMessage> msg = new AMessage(kWhatConfigSync, this); local 437 sp<AMessage> msg = new AMessage(kWhatGetSyncSettings, this); local 474 sp<AMessage> msg = new AMessage(kWhatSeek, this); local 533 onMessageReceived(const sp<AMessage> &msg) argument 1645 sp<AMessage> msg = new AMessage(kWhatScanSources, this); local 1958 notifyListener(int msg, int ext1, int ext2, const Parcel *in) argument 2042 sp<AMessage> msg = new AMessage(kWhatGetTrackInfo, this); local 2051 sp<AMessage> msg = new AMessage(kWhatGetSelectedTrack, this); local 2064 sp<AMessage> msg = new AMessage(kWhatSelectTrack, this); local 2131 sp<AMessage> msg = new AMessage(kWhatPollDuration, this); local 2318 onSourceNotify(const sp<AMessage> &msg) argument 2567 onClosedCaptionNotify(const sp<AMessage> &msg) argument 2696 sp<AMessage> msg = new AMessage(kWhatPrepareDrm, this); local 2721 sp<AMessage> msg = new AMessage(kWhatReleaseDrm, this); local 2736 onPrepareDrm(const sp<AMessage> &msg) argument 2833 sp<AMessage> msg = new AMessage; local [all...] |
H A D | NuPlayerCCDecoder.cpp | 497 sp<AMessage> msg = mNotify->dup(); local 498 msg->setInt32("what", kWhatTrackAdded); 499 msg->post(); 545 sp<AMessage> msg = mNotify->dup(); local 546 msg->setInt32("what", kWhatClosedCaptionData); 547 msg->setBuffer("buffer", ccBuf); 548 msg->post();
|
H A D | NuPlayerDecoder.cpp | 120 sp<AMessage> msg = new AMessage(kWhatSetVideoSurface, this); local 122 msg->setObject("surface", surface); 124 status_t err = msg->postAndAwaitResponse(&response); 131 void NuPlayer::Decoder::onMessageReceived(const sp<AMessage> &msg) { argument 132 ALOGV("[%s] onMessage: %s", mComponentName.c_str(), msg->debugString().c_str()); 134 switch (msg->what()) { 138 CHECK(msg->findInt32("callbackID", &cbID)); 151 CHECK(msg->findInt32("index", &index)); 165 CHECK(msg->findInt32("index", &index)); 166 CHECK(msg 556 sp<AMessage> msg = new AMessage(); local 593 sp<AMessage> msg = new AMessage(kWhatDrmReleaseCrypto, this); local 607 onReleaseCrypto(const sp<AMessage>& msg) argument 662 sp<AMessage> msg = new AMessage(); local 677 sp<AMessage> msg = *mPendingInputMessages.begin(); local 823 isStaleReply(const sp<AMessage> &msg) argument 951 onInputBufferFetched(const sp<AMessage> &msg) argument 1088 onRenderBuffer(const sp<AMessage> &msg) argument 1145 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(); 81 sp<AMessage> msg = new AMessage(kWhatSetParameters, this); local 82 msg->setMessage("params", params); 83 msg->post(); 87 sp<AMessage> msg = new AMessage(kWhatSetRenderer, this); local 88 msg 50 PostAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument 93 sp<AMessage> msg = new AMessage(kWhatPause, this); local 104 sp<AMessage> msg = new AMessage(kWhatResume, this); local 122 sp<AMessage> msg = new AMessage(kWhatRequestInputBuffers, this); local 127 onMessageReceived(const sp<AMessage> &msg) argument [all...] |