Lines Matching refs:reply
85 static void readVector(const Parcel& reply, Vector<uint8_t>& vector) { in readVector() argument
86 uint32_t size = reply.readUint32(); in readVector()
88 reply.read(vector.editArray(), size); in readVector()
107 Parcel data, reply; in disconnect() local
109 remote()->transact(DISCONNECT, data, &reply); in disconnect()
117 Parcel data, reply; in setDataSource() local
134 remote()->transact(SET_DATA_SOURCE_URL, data, &reply); in setDataSource()
135 return reply.readInt32(); in setDataSource()
139 Parcel data, reply; in setDataSource() local
144 remote()->transact(SET_DATA_SOURCE_FD, data, &reply); in setDataSource()
145 return reply.readInt32(); in setDataSource()
149 Parcel data, reply; in setDataSource() local
152 remote()->transact(SET_DATA_SOURCE_STREAM, data, &reply); in setDataSource()
153 return reply.readInt32(); in setDataSource()
157 Parcel data, reply; in setDataSource() local
160 remote()->transact(SET_DATA_SOURCE_CALLBACK, data, &reply); in setDataSource()
161 return reply.readInt32(); in setDataSource()
167 Parcel data, reply; in setVideoSurfaceTexture() local
171 remote()->transact(SET_VIDEO_SURFACETEXTURE, data, &reply); in setVideoSurfaceTexture()
172 return reply.readInt32(); in setVideoSurfaceTexture()
177 Parcel data, reply; in setBufferingSettings() local
181 remote()->transact(SET_BUFFERING_SETTINGS, data, &reply); in setBufferingSettings()
182 return reply.readInt32(); in setBufferingSettings()
190 Parcel data, reply; in getBufferingSettings() local
192 remote()->transact(GET_BUFFERING_SETTINGS, data, &reply); in getBufferingSettings()
193 status_t err = reply.readInt32(); in getBufferingSettings()
195 buffering->mInitialMarkMs = reply.readInt32(); in getBufferingSettings()
196 buffering->mResumePlaybackMarkMs = reply.readInt32(); in getBufferingSettings()
203 Parcel data, reply; in prepareAsync() local
205 remote()->transact(PREPARE_ASYNC, data, &reply); in prepareAsync()
206 return reply.readInt32(); in prepareAsync()
211 Parcel data, reply; in start() local
213 remote()->transact(START, data, &reply); in start()
214 return reply.readInt32(); in start()
219 Parcel data, reply; in stop() local
221 remote()->transact(STOP, data, &reply); in stop()
222 return reply.readInt32(); in stop()
227 Parcel data, reply; in isPlaying() local
229 remote()->transact(IS_PLAYING, data, &reply); in isPlaying()
230 *state = reply.readInt32(); in isPlaying()
231 return reply.readInt32(); in isPlaying()
236 Parcel data, reply; in setPlaybackSettings() local
242 remote()->transact(SET_PLAYBACK_SETTINGS, data, &reply); in setPlaybackSettings()
243 return reply.readInt32(); in setPlaybackSettings()
248 Parcel data, reply; in getPlaybackSettings() local
250 remote()->transact(GET_PLAYBACK_SETTINGS, data, &reply); in getPlaybackSettings()
251 status_t err = reply.readInt32(); in getPlaybackSettings()
254 rate->mSpeed = reply.readFloat(); in getPlaybackSettings()
255 rate->mPitch = reply.readFloat(); in getPlaybackSettings()
256 rate->mFallbackMode = (AudioTimestretchFallbackMode)reply.readInt32(); in getPlaybackSettings()
257 rate->mStretchMode = (AudioTimestretchStretchMode)reply.readInt32(); in getPlaybackSettings()
264 Parcel data, reply; in setSyncSettings() local
270 remote()->transact(SET_SYNC_SETTINGS, data, &reply); in setSyncSettings()
271 return reply.readInt32(); in setSyncSettings()
276 Parcel data, reply; in getSyncSettings() local
278 remote()->transact(GET_SYNC_SETTINGS, data, &reply); in getSyncSettings()
279 status_t err = reply.readInt32(); in getSyncSettings()
282 settings.mSource = (AVSyncSource)reply.readInt32(); in getSyncSettings()
283 settings.mAudioAdjustMode = (AVSyncAudioAdjustMode)reply.readInt32(); in getSyncSettings()
284 settings.mTolerance = reply.readFloat(); in getSyncSettings()
286 *videoFps = reply.readFloat(); in getSyncSettings()
293 Parcel data, reply; in pause() local
295 remote()->transact(PAUSE, data, &reply); in pause()
296 return reply.readInt32(); in pause()
301 Parcel data, reply; in seekTo() local
305 remote()->transact(SEEK_TO, data, &reply); in seekTo()
306 return reply.readInt32(); in seekTo()
311 Parcel data, reply; in getCurrentPosition() local
313 remote()->transact(GET_CURRENT_POSITION, data, &reply); in getCurrentPosition()
314 *msec = reply.readInt32(); in getCurrentPosition()
315 return reply.readInt32(); in getCurrentPosition()
320 Parcel data, reply; in getDuration() local
322 remote()->transact(GET_DURATION, data, &reply); in getDuration()
323 *msec = reply.readInt32(); in getDuration()
324 return reply.readInt32(); in getDuration()
329 Parcel data, reply; in reset() local
331 remote()->transact(RESET, data, &reply); in reset()
332 return reply.readInt32(); in reset()
337 Parcel data, reply; in notifyAt() local
340 remote()->transact(NOTIFY_AT, data, &reply); in notifyAt()
341 return reply.readInt32(); in notifyAt()
346 Parcel data, reply; in setAudioStreamType() local
349 remote()->transact(SET_AUDIO_STREAM_TYPE, data, &reply); in setAudioStreamType()
350 return reply.readInt32(); in setAudioStreamType()
355 Parcel data, reply; in setLooping() local
358 remote()->transact(SET_LOOPING, data, &reply); in setLooping()
359 return reply.readInt32(); in setLooping()
364 Parcel data, reply; in setVolume() local
368 remote()->transact(SET_VOLUME, data, &reply); in setVolume()
369 return reply.readInt32(); in setVolume()
372 status_t invoke(const Parcel& request, Parcel *reply) in invoke() argument
376 return remote()->transact(INVOKE, request, reply); in invoke()
381 Parcel reply; in setMetadataFilter() local
384 remote()->transact(SET_METADATA_FILTER, request, &reply); in setMetadataFilter()
385 return reply.readInt32(); in setMetadataFilter()
388 status_t getMetadata(bool update_only, bool apply_filter, Parcel *reply) in getMetadata() argument
395 remote()->transact(GET_METADATA, request, reply); in getMetadata()
396 return reply->readInt32(); in getMetadata()
401 Parcel data, reply; in setAuxEffectSendLevel() local
404 remote()->transact(SET_AUX_EFFECT_SEND_LEVEL, data, &reply); in setAuxEffectSendLevel()
405 return reply.readInt32(); in setAuxEffectSendLevel()
410 Parcel data, reply; in attachAuxEffect() local
413 remote()->transact(ATTACH_AUX_EFFECT, data, &reply); in attachAuxEffect()
414 return reply.readInt32(); in attachAuxEffect()
419 Parcel data, reply; in setParameter() local
425 remote()->transact(SET_PARAMETER, data, &reply); in setParameter()
426 return reply.readInt32(); in setParameter()
429 status_t getParameter(int key, Parcel *reply) in getParameter() argument
434 return remote()->transact(GET_PARAMETER, data, reply); in getParameter()
439 Parcel data, reply; in setRetransmitEndpoint() local
450 err = remote()->transact(SET_RETRANSMIT_ENDPOINT, data, &reply); in setRetransmitEndpoint()
454 return reply.readInt32(); in setRetransmitEndpoint()
458 Parcel data, reply; in setNextPlayer() local
462 remote()->transact(SET_NEXT_PLAYER, data, &reply); in setNextPlayer()
463 return reply.readInt32(); in setNextPlayer()
468 Parcel data, reply; in getRetransmitEndpoint() local
472 err = remote()->transact(GET_RETRANSMIT_ENDPOINT, data, &reply); in getRetransmitEndpoint()
474 if ((OK != err) || (OK != (err = reply.readInt32()))) { in getRetransmitEndpoint()
486 Parcel data, reply; in applyVolumeShaper() local
507 status = remote()->transact(APPLY_VOLUME_SHAPER, data, &reply); in applyVolumeShaper()
509 status = reply.readInt32(&remoteVolumeShaperStatus); in applyVolumeShaper()
518 Parcel data, reply; in getVolumeShaperState() local
522 status_t status = remote()->transact(GET_VOLUME_SHAPER_STATE, data, &reply); in getVolumeShaperState()
527 status = state->readFromParcel(&reply); in getVolumeShaperState()
537 Parcel data, reply; in prepareDrm() local
543 status_t status = remote()->transact(PREPARE_DRM, data, &reply); in prepareDrm()
549 return reply.readInt32(); in prepareDrm()
554 Parcel data, reply; in releaseDrm() local
557 status_t status = remote()->transact(RELEASE_DRM, data, &reply); in releaseDrm()
563 return reply.readInt32(); in releaseDrm()
568 Parcel data, reply; in setOutputDevice() local
573 status_t status = remote()->transact(SET_OUTPUT_DEVICE, data, &reply); in setOutputDevice()
579 return reply.readInt32(); in setOutputDevice()
584 Parcel data, reply; in getRoutedDeviceId() local
587 status_t status = remote()->transact(GET_ROUTED_DEVICE_ID, data, &reply); in getRoutedDeviceId()
594 status = reply.readInt32(); in getRoutedDeviceId()
598 *deviceId = reply.readInt32(); in getRoutedDeviceId()
605 Parcel data, reply; in enableAudioDeviceCallback() local
610 status_t status = remote()->transact(ENABLE_AUDIO_DEVICE_CALLBACK, data, &reply); in enableAudioDeviceCallback()
616 return reply.readInt32(); in enableAudioDeviceCallback()
625 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) in onTransact() argument
629 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
634 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
644 reply->writeInt32(BAD_VALUE); in onTransact()
654 reply->writeInt32(setDataSource( in onTransact()
659 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
663 reply->writeInt32(setDataSource(fd, offset, length)); in onTransact()
667 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
671 reply->writeInt32(BAD_VALUE); in onTransact()
673 reply->writeInt32(setDataSource(source)); in onTransact()
678 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
682 reply->writeInt32(BAD_VALUE); in onTransact()
684 reply->writeInt32(setDataSource(source)); in onTransact()
689 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
692 reply->writeInt32(setVideoSurfaceTexture(bufferProducer)); in onTransact()
696 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
700 reply->writeInt32(setBufferingSettings(buffering)); in onTransact()
704 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
707 reply->writeInt32(err); in onTransact()
709 reply->writeInt32(buffering.mInitialMarkMs); in onTransact()
710 reply->writeInt32(buffering.mResumePlaybackMarkMs); in onTransact()
715 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
716 reply->writeInt32(prepareAsync()); in onTransact()
720 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
721 reply->writeInt32(start()); in onTransact()
725 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
726 reply->writeInt32(stop()); in onTransact()
730 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
733 reply->writeInt32(state); in onTransact()
734 reply->writeInt32(ret); in onTransact()
738 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
744 reply->writeInt32(setPlaybackSettings(rate)); in onTransact()
748 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
751 reply->writeInt32(err); in onTransact()
753 reply->writeFloat(rate.mSpeed); in onTransact()
754 reply->writeFloat(rate.mPitch); in onTransact()
755 reply->writeInt32((int32_t)rate.mFallbackMode); in onTransact()
756 reply->writeInt32((int32_t)rate.mStretchMode); in onTransact()
761 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
767 reply->writeInt32(setSyncSettings(sync, videoFpsHint)); in onTransact()
771 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
775 reply->writeInt32(err); in onTransact()
777 reply->writeInt32((int32_t)sync.mSource); in onTransact()
778 reply->writeInt32((int32_t)sync.mAudioAdjustMode); in onTransact()
779 reply->writeFloat(sync.mTolerance); in onTransact()
780 reply->writeFloat(videoFps); in onTransact()
785 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
786 reply->writeInt32(pause()); in onTransact()
790 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
793 reply->writeInt32(seekTo(msec, mode)); in onTransact()
797 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
800 reply->writeInt32(msec); in onTransact()
801 reply->writeInt32(ret); in onTransact()
805 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
808 reply->writeInt32(msec); in onTransact()
809 reply->writeInt32(ret); in onTransact()
813 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
814 reply->writeInt32(reset()); in onTransact()
818 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
819 reply->writeInt32(notifyAt(data.readInt64())); in onTransact()
823 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
824 reply->writeInt32(setAudioStreamType((audio_stream_type_t) data.readInt32())); in onTransact()
828 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
829 reply->writeInt32(setLooping(data.readInt32())); in onTransact()
833 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
836 reply->writeInt32(setVolume(leftVolume, rightVolume)); in onTransact()
840 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
841 status_t result = invoke(data, reply); in onTransact()
845 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
846 reply->writeInt32(setMetadataFilter(data)); in onTransact()
850 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
853 const status_t retcode = getMetadata(update_only, apply_filter, reply); in onTransact()
854 reply->setDataPosition(0); in onTransact()
855 reply->writeInt32(retcode); in onTransact()
856 reply->setDataPosition(0); in onTransact()
860 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
861 reply->writeInt32(setAuxEffectSendLevel(data.readFloat())); in onTransact()
865 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
866 reply->writeInt32(attachAuxEffect(data.readInt32())); in onTransact()
870 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
879 reply->writeInt32(setParameter(key, request)); in onTransact()
883 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
884 return getParameter(data.readInt32(), reply); in onTransact()
887 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
894 reply->writeInt32(setRetransmitEndpoint(&endpoint)); in onTransact()
896 reply->writeInt32(setRetransmitEndpoint(NULL)); in onTransact()
902 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
908 reply->writeInt32(res); in onTransact()
909 reply->write(&endpoint, sizeof(endpoint)); in onTransact()
914 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
915 reply->writeInt32(setNextPlayer(interface_cast<IMediaPlayer>(data.readStrongBinder()))); in onTransact()
921 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
941 reply->writeInt32(status); in onTransact()
945 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
951 status = state->writeToParcel(reply); in onTransact()
959 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
967 reply->writeInt32(result); in onTransact()
971 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
974 reply->writeInt32(result); in onTransact()
980 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
984 reply->writeInt32(setOutputDevice(deviceId)); in onTransact()
986 reply->writeInt32(BAD_VALUE); in onTransact()
991 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
994 reply->writeInt32(ret); in onTransact()
996 reply->writeInt32(deviceId); in onTransact()
1001 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
1005 reply->writeInt32(enableAudioDeviceCallback(enabled)); in onTransact()
1007 reply->writeInt32(BAD_VALUE); in onTransact()
1013 return BBinder::onTransact(code, data, reply, flags); in onTransact()