Lines Matching refs:reply

38 static status_t readVector(const Parcel& reply, Vector<uint8_t>& vector) {  in readVector()  argument
40 status_t status = reply.readUint32(&size); in readVector()
42 status = size <= reply.dataAvail() ? OK : BAD_VALUE; in readVector()
48 status = reply.read(vector.editArray(), size); in readVector()
86 Parcel data, reply; in disconnect() local
88 remote()->transact(DISCONNECT, data, &reply); in disconnect()
96 Parcel data, reply; in setDataSource() local
113 remote()->transact(SET_DATA_SOURCE_URL, data, &reply); in setDataSource()
114 return reply.readInt32(); in setDataSource()
118 Parcel data, reply; in setDataSource() local
123 remote()->transact(SET_DATA_SOURCE_FD, data, &reply); in setDataSource()
124 return reply.readInt32(); in setDataSource()
128 Parcel data, reply; in setDataSource() local
131 remote()->transact(SET_DATA_SOURCE_STREAM, data, &reply); in setDataSource()
132 return reply.readInt32(); in setDataSource()
136 Parcel data, reply; in setDataSource() local
139 remote()->transact(SET_DATA_SOURCE_CALLBACK, data, &reply); in setDataSource()
140 return reply.readInt32(); in setDataSource()
144 Parcel data, reply; in setDataSource() local
147 remote()->transact(SET_DATA_SOURCE_RTP, data, &reply); in setDataSource()
149 return reply.readInt32(); in setDataSource()
155 Parcel data, reply; in setVideoSurfaceTexture() local
159 remote()->transact(SET_VIDEO_SURFACETEXTURE, data, &reply); in setVideoSurfaceTexture()
160 return reply.readInt32(); in setVideoSurfaceTexture()
165 Parcel data, reply; in setBufferingSettings() local
169 remote()->transact(SET_BUFFERING_SETTINGS, data, &reply); in setBufferingSettings()
170 return reply.readInt32(); in setBufferingSettings()
178 Parcel data, reply; in getBufferingSettings() local
180 remote()->transact(GET_BUFFERING_SETTINGS, data, &reply); in getBufferingSettings()
181 status_t err = reply.readInt32(); in getBufferingSettings()
183 buffering->mInitialMarkMs = reply.readInt32(); in getBufferingSettings()
184 buffering->mResumePlaybackMarkMs = reply.readInt32(); in getBufferingSettings()
191 Parcel data, reply; in prepareAsync() local
193 remote()->transact(PREPARE_ASYNC, data, &reply); in prepareAsync()
194 return reply.readInt32(); in prepareAsync()
199 Parcel data, reply; in start() local
201 remote()->transact(START, data, &reply); in start()
202 return reply.readInt32(); in start()
207 Parcel data, reply; in stop() local
209 remote()->transact(STOP, data, &reply); in stop()
210 return reply.readInt32(); in stop()
215 Parcel data, reply; in isPlaying() local
217 remote()->transact(IS_PLAYING, data, &reply); in isPlaying()
218 *state = reply.readInt32(); in isPlaying()
219 return reply.readInt32(); in isPlaying()
224 Parcel data, reply; in setPlaybackSettings() local
230 remote()->transact(SET_PLAYBACK_SETTINGS, data, &reply); in setPlaybackSettings()
231 return reply.readInt32(); in setPlaybackSettings()
236 Parcel data, reply; in getPlaybackSettings() local
238 remote()->transact(GET_PLAYBACK_SETTINGS, data, &reply); in getPlaybackSettings()
239 status_t err = reply.readInt32(); in getPlaybackSettings()
242 rate->mSpeed = reply.readFloat(); in getPlaybackSettings()
243 rate->mPitch = reply.readFloat(); in getPlaybackSettings()
244 rate->mFallbackMode = (AudioTimestretchFallbackMode)reply.readInt32(); in getPlaybackSettings()
245 rate->mStretchMode = (AudioTimestretchStretchMode)reply.readInt32(); in getPlaybackSettings()
252 Parcel data, reply; in setSyncSettings() local
258 remote()->transact(SET_SYNC_SETTINGS, data, &reply); in setSyncSettings()
259 return reply.readInt32(); in setSyncSettings()
264 Parcel data, reply; in getSyncSettings() local
266 remote()->transact(GET_SYNC_SETTINGS, data, &reply); in getSyncSettings()
267 status_t err = reply.readInt32(); in getSyncSettings()
270 settings.mSource = (AVSyncSource)reply.readInt32(); in getSyncSettings()
271 settings.mAudioAdjustMode = (AVSyncAudioAdjustMode)reply.readInt32(); in getSyncSettings()
272 settings.mTolerance = reply.readFloat(); in getSyncSettings()
274 *videoFps = reply.readFloat(); in getSyncSettings()
281 Parcel data, reply; in pause() local
283 remote()->transact(PAUSE, data, &reply); in pause()
284 return reply.readInt32(); in pause()
289 Parcel data, reply; in seekTo() local
293 remote()->transact(SEEK_TO, data, &reply); in seekTo()
294 return reply.readInt32(); in seekTo()
299 Parcel data, reply; in getCurrentPosition() local
301 remote()->transact(GET_CURRENT_POSITION, data, &reply); in getCurrentPosition()
302 *msec = reply.readInt32(); in getCurrentPosition()
303 return reply.readInt32(); in getCurrentPosition()
308 Parcel data, reply; in getDuration() local
310 remote()->transact(GET_DURATION, data, &reply); in getDuration()
311 *msec = reply.readInt32(); in getDuration()
312 return reply.readInt32(); in getDuration()
317 Parcel data, reply; in reset() local
319 remote()->transact(RESET, data, &reply); in reset()
320 return reply.readInt32(); in reset()
325 Parcel data, reply; in notifyAt() local
328 remote()->transact(NOTIFY_AT, data, &reply); in notifyAt()
329 return reply.readInt32(); in notifyAt()
334 Parcel data, reply; in setAudioStreamType() local
337 remote()->transact(SET_AUDIO_STREAM_TYPE, data, &reply); in setAudioStreamType()
338 return reply.readInt32(); in setAudioStreamType()
343 Parcel data, reply; in setLooping() local
346 remote()->transact(SET_LOOPING, data, &reply); in setLooping()
347 return reply.readInt32(); in setLooping()
352 Parcel data, reply; in setVolume() local
356 remote()->transact(SET_VOLUME, data, &reply); in setVolume()
357 return reply.readInt32(); in setVolume()
360 status_t invoke(const Parcel& request, Parcel *reply) in invoke() argument
364 return remote()->transact(INVOKE, request, reply); in invoke()
369 Parcel reply; in setMetadataFilter() local
372 remote()->transact(SET_METADATA_FILTER, request, &reply); in setMetadataFilter()
373 return reply.readInt32(); in setMetadataFilter()
376 status_t getMetadata(bool update_only, bool apply_filter, Parcel *reply) in getMetadata() argument
383 remote()->transact(GET_METADATA, request, reply); in getMetadata()
384 return reply->readInt32(); in getMetadata()
389 Parcel data, reply; in setAuxEffectSendLevel() local
392 remote()->transact(SET_AUX_EFFECT_SEND_LEVEL, data, &reply); in setAuxEffectSendLevel()
393 return reply.readInt32(); in setAuxEffectSendLevel()
398 Parcel data, reply; in attachAuxEffect() local
401 remote()->transact(ATTACH_AUX_EFFECT, data, &reply); in attachAuxEffect()
402 return reply.readInt32(); in attachAuxEffect()
407 Parcel data, reply; in setParameter() local
413 remote()->transact(SET_PARAMETER, data, &reply); in setParameter()
414 return reply.readInt32(); in setParameter()
417 status_t getParameter(int key, Parcel *reply) in getParameter() argument
422 return remote()->transact(GET_PARAMETER, data, reply); in getParameter()
427 Parcel data, reply; in setRetransmitEndpoint() local
438 err = remote()->transact(SET_RETRANSMIT_ENDPOINT, data, &reply); in setRetransmitEndpoint()
442 return reply.readInt32(); in setRetransmitEndpoint()
446 Parcel data, reply; in setNextPlayer() local
450 remote()->transact(SET_NEXT_PLAYER, data, &reply); in setNextPlayer()
451 return reply.readInt32(); in setNextPlayer()
456 Parcel data, reply; in getRetransmitEndpoint() local
460 err = remote()->transact(GET_RETRANSMIT_ENDPOINT, data, &reply); in getRetransmitEndpoint()
462 if ((OK != err) || (OK != (err = reply.readInt32()))) { in getRetransmitEndpoint()
474 Parcel data, reply; in applyVolumeShaper() local
495 status = remote()->transact(APPLY_VOLUME_SHAPER, data, &reply); in applyVolumeShaper()
497 status = reply.readInt32(&remoteVolumeShaperStatus); in applyVolumeShaper()
506 Parcel data, reply; in getVolumeShaperState() local
510 status_t status = remote()->transact(GET_VOLUME_SHAPER_STATE, data, &reply); in getVolumeShaperState()
515 status = state->readFromParcel(&reply); in getVolumeShaperState()
525 Parcel data, reply; in prepareDrm() local
531 status_t status = remote()->transact(PREPARE_DRM, data, &reply); in prepareDrm()
537 return reply.readInt32(); in prepareDrm()
542 Parcel data, reply; in releaseDrm() local
545 status_t status = remote()->transact(RELEASE_DRM, data, &reply); in releaseDrm()
551 return reply.readInt32(); in releaseDrm()
556 Parcel data, reply; in setOutputDevice() local
561 status_t status = remote()->transact(SET_OUTPUT_DEVICE, data, &reply); in setOutputDevice()
567 return reply.readInt32(); in setOutputDevice()
572 Parcel data, reply; in getRoutedDeviceId() local
575 status_t status = remote()->transact(GET_ROUTED_DEVICE_ID, data, &reply); in getRoutedDeviceId()
582 status = reply.readInt32(); in getRoutedDeviceId()
586 *deviceId = reply.readInt32(); in getRoutedDeviceId()
593 Parcel data, reply; in enableAudioDeviceCallback() local
598 status_t status = remote()->transact(ENABLE_AUDIO_DEVICE_CALLBACK, data, &reply); in enableAudioDeviceCallback()
604 return reply.readInt32(); in enableAudioDeviceCallback()
613 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) in onTransact() argument
617 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
622 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
632 reply->writeInt32(BAD_VALUE); in onTransact()
642 reply->writeInt32(setDataSource( in onTransact()
647 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
651 reply->writeInt32(setDataSource(fd, offset, length)); in onTransact()
655 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
659 reply->writeInt32(BAD_VALUE); in onTransact()
661 reply->writeInt32(setDataSource(source)); in onTransact()
666 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
670 reply->writeInt32(BAD_VALUE); in onTransact()
672 reply->writeInt32(setDataSource(source)); in onTransact()
677 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
679 reply->writeInt32(setDataSource(rtpParams)); in onTransact()
683 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
686 reply->writeInt32(setVideoSurfaceTexture(bufferProducer)); in onTransact()
690 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
694 reply->writeInt32(setBufferingSettings(buffering)); in onTransact()
698 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
701 reply->writeInt32(err); in onTransact()
703 reply->writeInt32(buffering.mInitialMarkMs); in onTransact()
704 reply->writeInt32(buffering.mResumePlaybackMarkMs); in onTransact()
709 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
710 reply->writeInt32(prepareAsync()); in onTransact()
714 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
715 reply->writeInt32(start()); in onTransact()
719 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
720 reply->writeInt32(stop()); in onTransact()
724 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
727 reply->writeInt32(state); in onTransact()
728 reply->writeInt32(ret); in onTransact()
732 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
738 reply->writeInt32(setPlaybackSettings(rate)); in onTransact()
742 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
745 reply->writeInt32(err); in onTransact()
747 reply->writeFloat(rate.mSpeed); in onTransact()
748 reply->writeFloat(rate.mPitch); in onTransact()
749 reply->writeInt32((int32_t)rate.mFallbackMode); in onTransact()
750 reply->writeInt32((int32_t)rate.mStretchMode); in onTransact()
755 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
761 reply->writeInt32(setSyncSettings(sync, videoFpsHint)); in onTransact()
765 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
769 reply->writeInt32(err); in onTransact()
771 reply->writeInt32((int32_t)sync.mSource); in onTransact()
772 reply->writeInt32((int32_t)sync.mAudioAdjustMode); in onTransact()
773 reply->writeFloat(sync.mTolerance); in onTransact()
774 reply->writeFloat(videoFps); in onTransact()
779 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
780 reply->writeInt32(pause()); in onTransact()
784 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
787 reply->writeInt32(seekTo(msec, mode)); in onTransact()
791 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
794 reply->writeInt32(msec); in onTransact()
795 reply->writeInt32(ret); in onTransact()
799 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
802 reply->writeInt32(msec); in onTransact()
803 reply->writeInt32(ret); in onTransact()
807 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
808 reply->writeInt32(reset()); in onTransact()
812 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
813 reply->writeInt32(notifyAt(data.readInt64())); in onTransact()
817 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
818 reply->writeInt32(setAudioStreamType((audio_stream_type_t) data.readInt32())); in onTransact()
822 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
823 reply->writeInt32(setLooping(data.readInt32())); in onTransact()
827 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
830 reply->writeInt32(setVolume(leftVolume, rightVolume)); in onTransact()
834 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
835 status_t result = invoke(data, reply); in onTransact()
839 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
840 reply->writeInt32(setMetadataFilter(data)); in onTransact()
844 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
847 const status_t retcode = getMetadata(update_only, apply_filter, reply); in onTransact()
848 reply->setDataPosition(0); in onTransact()
849 reply->writeInt32(retcode); in onTransact()
850 reply->setDataPosition(0); in onTransact()
854 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
855 reply->writeInt32(setAuxEffectSendLevel(data.readFloat())); in onTransact()
859 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
860 reply->writeInt32(attachAuxEffect(data.readInt32())); in onTransact()
864 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
873 reply->writeInt32(setParameter(key, request)); in onTransact()
877 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
878 return getParameter(data.readInt32(), reply); in onTransact()
881 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
888 reply->writeInt32(setRetransmitEndpoint(&endpoint)); in onTransact()
890 reply->writeInt32(setRetransmitEndpoint(NULL)); in onTransact()
896 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
902 reply->writeInt32(res); in onTransact()
903 reply->write(&endpoint, sizeof(endpoint)); in onTransact()
908 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
909 reply->writeInt32(setNextPlayer(interface_cast<IMediaPlayer>(data.readStrongBinder()))); in onTransact()
915 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
935 reply->writeInt32(status); in onTransact()
939 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
945 status = state->writeToParcel(reply); in onTransact()
953 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
963 reply->writeInt32(result); in onTransact()
967 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
970 reply->writeInt32(result); in onTransact()
976 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
980 reply->writeInt32(setOutputDevice(deviceId)); in onTransact()
982 reply->writeInt32(BAD_VALUE); in onTransact()
987 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
990 reply->writeInt32(ret); in onTransact()
992 reply->writeInt32(deviceId); in onTransact()
997 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
1001 reply->writeInt32(enableAudioDeviceCallback(enabled)); in onTransact()
1003 reply->writeInt32(BAD_VALUE); in onTransact()
1009 return BBinder::onTransact(code, data, reply, flags); in onTransact()