Lines Matching refs:reply
88 static void readVector(const Parcel& reply, Vector<uint8_t>& vector) { in readVector() argument
89 uint32_t size = reply.readUint32(); in readVector()
91 reply.read(vector.editArray(), size); in readVector()
110 Parcel data, reply; in disconnect() local
112 remote()->transact(DISCONNECT, data, &reply); in disconnect()
120 Parcel data, reply; in setDataSource() local
137 remote()->transact(SET_DATA_SOURCE_URL, data, &reply); in setDataSource()
138 return reply.readInt32(); in setDataSource()
142 Parcel data, reply; in setDataSource() local
147 remote()->transact(SET_DATA_SOURCE_FD, data, &reply); in setDataSource()
148 return reply.readInt32(); in setDataSource()
152 Parcel data, reply; in setDataSource() local
155 remote()->transact(SET_DATA_SOURCE_STREAM, data, &reply); in setDataSource()
156 return reply.readInt32(); in setDataSource()
160 Parcel data, reply; in setDataSource() local
163 remote()->transact(SET_DATA_SOURCE_CALLBACK, data, &reply); in setDataSource()
164 return reply.readInt32(); in setDataSource()
170 Parcel data, reply; in setVideoSurfaceTexture() local
174 remote()->transact(SET_VIDEO_SURFACETEXTURE, data, &reply); in setVideoSurfaceTexture()
175 return reply.readInt32(); in setVideoSurfaceTexture()
180 Parcel data, reply; in setBufferingSettings() local
184 remote()->transact(SET_BUFFERING_SETTINGS, data, &reply); in setBufferingSettings()
185 return reply.readInt32(); in setBufferingSettings()
193 Parcel data, reply; in getBufferingSettings() local
195 remote()->transact(GET_BUFFERING_SETTINGS, data, &reply); in getBufferingSettings()
196 status_t err = reply.readInt32(); in getBufferingSettings()
198 buffering->mInitialMarkMs = reply.readInt32(); in getBufferingSettings()
199 buffering->mResumePlaybackMarkMs = reply.readInt32(); in getBufferingSettings()
206 Parcel data, reply; in prepareAsync() local
208 remote()->transact(PREPARE_ASYNC, data, &reply); in prepareAsync()
209 return reply.readInt32(); in prepareAsync()
214 Parcel data, reply; in start() local
216 remote()->transact(START, data, &reply); in start()
217 return reply.readInt32(); in start()
222 Parcel data, reply; in stop() local
224 remote()->transact(STOP, data, &reply); in stop()
225 return reply.readInt32(); in stop()
230 Parcel data, reply; in isPlaying() local
232 remote()->transact(IS_PLAYING, data, &reply); in isPlaying()
233 *state = reply.readInt32(); in isPlaying()
234 return reply.readInt32(); in isPlaying()
239 Parcel data, reply; in setPlaybackSettings() local
245 remote()->transact(SET_PLAYBACK_SETTINGS, data, &reply); in setPlaybackSettings()
246 return reply.readInt32(); in setPlaybackSettings()
251 Parcel data, reply; in getPlaybackSettings() local
253 remote()->transact(GET_PLAYBACK_SETTINGS, data, &reply); in getPlaybackSettings()
254 status_t err = reply.readInt32(); in getPlaybackSettings()
257 rate->mSpeed = reply.readFloat(); in getPlaybackSettings()
258 rate->mPitch = reply.readFloat(); in getPlaybackSettings()
259 rate->mFallbackMode = (AudioTimestretchFallbackMode)reply.readInt32(); in getPlaybackSettings()
260 rate->mStretchMode = (AudioTimestretchStretchMode)reply.readInt32(); in getPlaybackSettings()
267 Parcel data, reply; in setSyncSettings() local
273 remote()->transact(SET_SYNC_SETTINGS, data, &reply); in setSyncSettings()
274 return reply.readInt32(); in setSyncSettings()
279 Parcel data, reply; in getSyncSettings() local
281 remote()->transact(GET_SYNC_SETTINGS, data, &reply); in getSyncSettings()
282 status_t err = reply.readInt32(); in getSyncSettings()
285 settings.mSource = (AVSyncSource)reply.readInt32(); in getSyncSettings()
286 settings.mAudioAdjustMode = (AVSyncAudioAdjustMode)reply.readInt32(); in getSyncSettings()
287 settings.mTolerance = reply.readFloat(); in getSyncSettings()
289 *videoFps = reply.readFloat(); in getSyncSettings()
296 Parcel data, reply; in pause() local
298 remote()->transact(PAUSE, data, &reply); in pause()
299 return reply.readInt32(); in pause()
304 Parcel data, reply; in seekTo() local
308 remote()->transact(SEEK_TO, data, &reply); in seekTo()
309 return reply.readInt32(); in seekTo()
314 Parcel data, reply; in getCurrentPosition() local
316 remote()->transact(GET_CURRENT_POSITION, data, &reply); in getCurrentPosition()
317 *msec = reply.readInt32(); in getCurrentPosition()
318 return reply.readInt32(); in getCurrentPosition()
323 Parcel data, reply; in getDuration() local
325 remote()->transact(GET_DURATION, data, &reply); in getDuration()
326 *msec = reply.readInt32(); in getDuration()
327 return reply.readInt32(); in getDuration()
332 Parcel data, reply; in reset() local
334 remote()->transact(RESET, data, &reply); in reset()
335 return reply.readInt32(); in reset()
340 Parcel data, reply; in notifyAt() local
343 remote()->transact(NOTIFY_AT, data, &reply); in notifyAt()
344 return reply.readInt32(); in notifyAt()
349 Parcel data, reply; in setAudioStreamType() local
352 remote()->transact(SET_AUDIO_STREAM_TYPE, data, &reply); in setAudioStreamType()
353 return reply.readInt32(); in setAudioStreamType()
358 Parcel data, reply; in setLooping() local
361 remote()->transact(SET_LOOPING, data, &reply); in setLooping()
362 return reply.readInt32(); in setLooping()
367 Parcel data, reply; in setVolume() local
371 remote()->transact(SET_VOLUME, data, &reply); in setVolume()
372 return reply.readInt32(); in setVolume()
375 status_t invoke(const Parcel& request, Parcel *reply) in invoke() argument
379 return remote()->transact(INVOKE, request, reply); in invoke()
384 Parcel reply; in setMetadataFilter() local
387 remote()->transact(SET_METADATA_FILTER, request, &reply); in setMetadataFilter()
388 return reply.readInt32(); in setMetadataFilter()
391 status_t getMetadata(bool update_only, bool apply_filter, Parcel *reply) in getMetadata() argument
398 remote()->transact(GET_METADATA, request, reply); in getMetadata()
399 return reply->readInt32(); in getMetadata()
404 Parcel data, reply; in setAuxEffectSendLevel() local
407 remote()->transact(SET_AUX_EFFECT_SEND_LEVEL, data, &reply); in setAuxEffectSendLevel()
408 return reply.readInt32(); in setAuxEffectSendLevel()
413 Parcel data, reply; in attachAuxEffect() local
416 remote()->transact(ATTACH_AUX_EFFECT, data, &reply); in attachAuxEffect()
417 return reply.readInt32(); in attachAuxEffect()
422 Parcel data, reply; in setParameter() local
428 remote()->transact(SET_PARAMETER, data, &reply); in setParameter()
429 return reply.readInt32(); in setParameter()
432 status_t getParameter(int key, Parcel *reply) in getParameter() argument
437 return remote()->transact(GET_PARAMETER, data, reply); in getParameter()
442 Parcel data, reply; in setRetransmitEndpoint() local
453 err = remote()->transact(SET_RETRANSMIT_ENDPOINT, data, &reply); in setRetransmitEndpoint()
457 return reply.readInt32(); in setRetransmitEndpoint()
461 Parcel data, reply; in setNextPlayer() local
465 remote()->transact(SET_NEXT_PLAYER, data, &reply); in setNextPlayer()
466 return reply.readInt32(); in setNextPlayer()
471 Parcel data, reply; in getRetransmitEndpoint() local
475 err = remote()->transact(GET_RETRANSMIT_ENDPOINT, data, &reply); in getRetransmitEndpoint()
477 if ((OK != err) || (OK != (err = reply.readInt32()))) { in getRetransmitEndpoint()
489 Parcel data, reply; in applyVolumeShaper() local
510 status = remote()->transact(APPLY_VOLUME_SHAPER, data, &reply); in applyVolumeShaper()
512 status = reply.readInt32(&remoteVolumeShaperStatus); in applyVolumeShaper()
521 Parcel data, reply; in getVolumeShaperState() local
525 status_t status = remote()->transact(GET_VOLUME_SHAPER_STATE, data, &reply); in getVolumeShaperState()
530 status = state->readFromParcel(&reply); in getVolumeShaperState()
540 Parcel data, reply; in prepareDrm() local
546 status_t status = remote()->transact(PREPARE_DRM, data, &reply); in prepareDrm()
552 return reply.readInt32(); in prepareDrm()
557 Parcel data, reply; in releaseDrm() local
560 status_t status = remote()->transact(RELEASE_DRM, data, &reply); in releaseDrm()
566 return reply.readInt32(); in releaseDrm()
571 Parcel data, reply; in setOutputDevice() local
576 status_t status = remote()->transact(SET_OUTPUT_DEVICE, data, &reply); in setOutputDevice()
582 return reply.readInt32(); in setOutputDevice()
587 Parcel data, reply; in getRoutedDeviceId() local
590 status_t status = remote()->transact(GET_ROUTED_DEVICE_ID, data, &reply); in getRoutedDeviceId()
597 status = reply.readInt32(); in getRoutedDeviceId()
601 *deviceId = reply.readInt32(); in getRoutedDeviceId()
608 Parcel data, reply; in enableAudioDeviceCallback() local
613 status_t status = remote()->transact(ENABLE_AUDIO_DEVICE_CALLBACK, data, &reply); in enableAudioDeviceCallback()
619 return reply.readInt32(); in enableAudioDeviceCallback()
628 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) in onTransact() argument
632 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
637 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
647 reply->writeInt32(BAD_VALUE); in onTransact()
657 reply->writeInt32(setDataSource( in onTransact()
662 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
666 reply->writeInt32(setDataSource(fd, offset, length)); in onTransact()
670 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
674 reply->writeInt32(BAD_VALUE); in onTransact()
676 reply->writeInt32(setDataSource(source)); in onTransact()
681 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
685 reply->writeInt32(BAD_VALUE); in onTransact()
687 reply->writeInt32(setDataSource(source)); in onTransact()
692 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
695 reply->writeInt32(setVideoSurfaceTexture(bufferProducer)); in onTransact()
699 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
703 reply->writeInt32(setBufferingSettings(buffering)); in onTransact()
707 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
710 reply->writeInt32(err); in onTransact()
712 reply->writeInt32(buffering.mInitialMarkMs); in onTransact()
713 reply->writeInt32(buffering.mResumePlaybackMarkMs); in onTransact()
718 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
719 reply->writeInt32(prepareAsync()); in onTransact()
723 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
724 reply->writeInt32(start()); in onTransact()
728 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
729 reply->writeInt32(stop()); in onTransact()
733 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
736 reply->writeInt32(state); in onTransact()
737 reply->writeInt32(ret); in onTransact()
741 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
747 reply->writeInt32(setPlaybackSettings(rate)); in onTransact()
751 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
754 reply->writeInt32(err); in onTransact()
756 reply->writeFloat(rate.mSpeed); in onTransact()
757 reply->writeFloat(rate.mPitch); in onTransact()
758 reply->writeInt32((int32_t)rate.mFallbackMode); in onTransact()
759 reply->writeInt32((int32_t)rate.mStretchMode); in onTransact()
764 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
770 reply->writeInt32(setSyncSettings(sync, videoFpsHint)); in onTransact()
774 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
778 reply->writeInt32(err); in onTransact()
780 reply->writeInt32((int32_t)sync.mSource); in onTransact()
781 reply->writeInt32((int32_t)sync.mAudioAdjustMode); in onTransact()
782 reply->writeFloat(sync.mTolerance); in onTransact()
783 reply->writeFloat(videoFps); in onTransact()
788 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
789 reply->writeInt32(pause()); in onTransact()
793 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
796 reply->writeInt32(seekTo(msec, mode)); in onTransact()
800 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
803 reply->writeInt32(msec); in onTransact()
804 reply->writeInt32(ret); in onTransact()
808 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
811 reply->writeInt32(msec); in onTransact()
812 reply->writeInt32(ret); in onTransact()
816 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
817 reply->writeInt32(reset()); in onTransact()
821 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
822 reply->writeInt32(notifyAt(data.readInt64())); in onTransact()
826 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
827 reply->writeInt32(setAudioStreamType((audio_stream_type_t) data.readInt32())); in onTransact()
831 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
832 reply->writeInt32(setLooping(data.readInt32())); in onTransact()
836 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
839 reply->writeInt32(setVolume(leftVolume, rightVolume)); in onTransact()
843 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
844 status_t result = invoke(data, reply); in onTransact()
848 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
849 reply->writeInt32(setMetadataFilter(data)); in onTransact()
853 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
856 const status_t retcode = getMetadata(update_only, apply_filter, reply); in onTransact()
857 reply->setDataPosition(0); in onTransact()
858 reply->writeInt32(retcode); in onTransact()
859 reply->setDataPosition(0); in onTransact()
863 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
864 reply->writeInt32(setAuxEffectSendLevel(data.readFloat())); in onTransact()
868 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
869 reply->writeInt32(attachAuxEffect(data.readInt32())); in onTransact()
873 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
882 reply->writeInt32(setParameter(key, request)); in onTransact()
886 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
887 return getParameter(data.readInt32(), reply); in onTransact()
890 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
897 reply->writeInt32(setRetransmitEndpoint(&endpoint)); in onTransact()
899 reply->writeInt32(setRetransmitEndpoint(NULL)); in onTransact()
905 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
911 reply->writeInt32(res); in onTransact()
912 reply->write(&endpoint, sizeof(endpoint)); in onTransact()
917 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
918 reply->writeInt32(setNextPlayer(interface_cast<IMediaPlayer>(data.readStrongBinder()))); in onTransact()
924 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
944 reply->writeInt32(status); in onTransact()
948 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
954 status = state->writeToParcel(reply); in onTransact()
962 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
970 reply->writeInt32(result); in onTransact()
974 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
977 reply->writeInt32(result); in onTransact()
983 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
987 reply->writeInt32(setOutputDevice(deviceId)); in onTransact()
989 reply->writeInt32(BAD_VALUE); in onTransact()
994 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
997 reply->writeInt32(ret); in onTransact()
999 reply->writeInt32(deviceId); in onTransact()
1004 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
1008 reply->writeInt32(enableAudioDeviceCallback(enabled)); in onTransact()
1010 reply->writeInt32(BAD_VALUE); in onTransact()
1016 return BBinder::onTransact(code, data, reply, flags); in onTransact()