Lines Matching refs:data
94 static void writeVector(Parcel& data, Vector<uint8_t> const& vector) { in writeVector() argument
95 data.writeUint32(vector.size()); in writeVector()
96 data.write(vector.array(), vector.size()); in writeVector()
110 Parcel data, reply; in disconnect() local
111 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in disconnect()
112 remote()->transact(DISCONNECT, data, &reply); in disconnect()
120 Parcel data, reply; in setDataSource() local
121 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setDataSource()
122 data.writeInt32(httpService != NULL); in setDataSource()
124 data.writeStrongBinder(IInterface::asBinder(httpService)); in setDataSource()
126 data.writeCString(url); in setDataSource()
128 data.writeInt32(0); in setDataSource()
131 data.writeInt32(headers->size()); in setDataSource()
133 data.writeString8(headers->keyAt(i)); in setDataSource()
134 data.writeString8(headers->valueAt(i)); in setDataSource()
137 remote()->transact(SET_DATA_SOURCE_URL, data, &reply); in setDataSource()
142 Parcel data, reply; in setDataSource() local
143 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setDataSource()
144 data.writeFileDescriptor(fd); in setDataSource()
145 data.writeInt64(offset); in setDataSource()
146 data.writeInt64(length); in setDataSource()
147 remote()->transact(SET_DATA_SOURCE_FD, data, &reply); in setDataSource()
152 Parcel data, reply; in setDataSource() local
153 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setDataSource()
154 data.writeStrongBinder(IInterface::asBinder(source)); in setDataSource()
155 remote()->transact(SET_DATA_SOURCE_STREAM, data, &reply); in setDataSource()
160 Parcel data, reply; in setDataSource() local
161 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setDataSource()
162 data.writeStrongBinder(IInterface::asBinder(source)); in setDataSource()
163 remote()->transact(SET_DATA_SOURCE_CALLBACK, data, &reply); in setDataSource()
170 Parcel data, reply; in setVideoSurfaceTexture() local
171 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setVideoSurfaceTexture()
173 data.writeStrongBinder(b); in setVideoSurfaceTexture()
174 remote()->transact(SET_VIDEO_SURFACETEXTURE, data, &reply); in setVideoSurfaceTexture()
180 Parcel data, reply; in setBufferingSettings() local
181 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setBufferingSettings()
182 data.writeInt32(buffering.mInitialMarkMs); in setBufferingSettings()
183 data.writeInt32(buffering.mResumePlaybackMarkMs); in setBufferingSettings()
184 remote()->transact(SET_BUFFERING_SETTINGS, data, &reply); in setBufferingSettings()
193 Parcel data, reply; in getBufferingSettings() local
194 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getBufferingSettings()
195 remote()->transact(GET_BUFFERING_SETTINGS, data, &reply); in getBufferingSettings()
206 Parcel data, reply; in prepareAsync() local
207 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in prepareAsync()
208 remote()->transact(PREPARE_ASYNC, data, &reply); in prepareAsync()
214 Parcel data, reply; in start() local
215 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in start()
216 remote()->transact(START, data, &reply); in start()
222 Parcel data, reply; in stop() local
223 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in stop()
224 remote()->transact(STOP, data, &reply); in stop()
230 Parcel data, reply; in isPlaying() local
231 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in isPlaying()
232 remote()->transact(IS_PLAYING, data, &reply); in isPlaying()
239 Parcel data, reply; in setPlaybackSettings() local
240 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setPlaybackSettings()
241 data.writeFloat(rate.mSpeed); in setPlaybackSettings()
242 data.writeFloat(rate.mPitch); in setPlaybackSettings()
243 data.writeInt32((int32_t)rate.mFallbackMode); in setPlaybackSettings()
244 data.writeInt32((int32_t)rate.mStretchMode); in setPlaybackSettings()
245 remote()->transact(SET_PLAYBACK_SETTINGS, data, &reply); in setPlaybackSettings()
251 Parcel data, reply; in getPlaybackSettings() local
252 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getPlaybackSettings()
253 remote()->transact(GET_PLAYBACK_SETTINGS, data, &reply); in getPlaybackSettings()
267 Parcel data, reply; in setSyncSettings() local
268 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setSyncSettings()
269 data.writeInt32((int32_t)sync.mSource); in setSyncSettings()
270 data.writeInt32((int32_t)sync.mAudioAdjustMode); in setSyncSettings()
271 data.writeFloat(sync.mTolerance); in setSyncSettings()
272 data.writeFloat(videoFpsHint); in setSyncSettings()
273 remote()->transact(SET_SYNC_SETTINGS, data, &reply); in setSyncSettings()
279 Parcel data, reply; in getSyncSettings() local
280 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getSyncSettings()
281 remote()->transact(GET_SYNC_SETTINGS, data, &reply); in getSyncSettings()
296 Parcel data, reply; in pause() local
297 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in pause()
298 remote()->transact(PAUSE, data, &reply); in pause()
304 Parcel data, reply; in seekTo() local
305 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in seekTo()
306 data.writeInt32(msec); in seekTo()
307 data.writeInt32(mode); in seekTo()
308 remote()->transact(SEEK_TO, data, &reply); in seekTo()
314 Parcel data, reply; in getCurrentPosition() local
315 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getCurrentPosition()
316 remote()->transact(GET_CURRENT_POSITION, data, &reply); in getCurrentPosition()
323 Parcel data, reply; in getDuration() local
324 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getDuration()
325 remote()->transact(GET_DURATION, data, &reply); in getDuration()
332 Parcel data, reply; in reset() local
333 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in reset()
334 remote()->transact(RESET, data, &reply); in reset()
340 Parcel data, reply; in notifyAt() local
341 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in notifyAt()
342 data.writeInt64(mediaTimeUs); in notifyAt()
343 remote()->transact(NOTIFY_AT, data, &reply); in notifyAt()
349 Parcel data, reply; in setAudioStreamType() local
350 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setAudioStreamType()
351 data.writeInt32((int32_t) stream); in setAudioStreamType()
352 remote()->transact(SET_AUDIO_STREAM_TYPE, data, &reply); in setAudioStreamType()
358 Parcel data, reply; in setLooping() local
359 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setLooping()
360 data.writeInt32(loop); in setLooping()
361 remote()->transact(SET_LOOPING, data, &reply); in setLooping()
367 Parcel data, reply; in setVolume() local
368 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setVolume()
369 data.writeFloat(leftVolume); in setVolume()
370 data.writeFloat(rightVolume); in setVolume()
371 remote()->transact(SET_VOLUME, data, &reply); in setVolume()
404 Parcel data, reply; in setAuxEffectSendLevel() local
405 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setAuxEffectSendLevel()
406 data.writeFloat(level); in setAuxEffectSendLevel()
407 remote()->transact(SET_AUX_EFFECT_SEND_LEVEL, data, &reply); in setAuxEffectSendLevel()
413 Parcel data, reply; in attachAuxEffect() local
414 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in attachAuxEffect()
415 data.writeInt32(effectId); in attachAuxEffect()
416 remote()->transact(ATTACH_AUX_EFFECT, data, &reply); in attachAuxEffect()
422 Parcel data, reply; in setParameter() local
423 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setParameter()
424 data.writeInt32(key); in setParameter()
426 data.appendFrom(const_cast<Parcel *>(&request), 0, request.dataSize()); in setParameter()
428 remote()->transact(SET_PARAMETER, data, &reply); in setParameter()
434 Parcel data; in getParameter() local
435 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getParameter()
436 data.writeInt32(key); in getParameter()
437 return remote()->transact(GET_PARAMETER, data, reply); in getParameter()
442 Parcel data, reply; in setRetransmitEndpoint() local
445 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setRetransmitEndpoint()
447 data.writeInt32(sizeof(*endpoint)); in setRetransmitEndpoint()
448 data.write(endpoint, sizeof(*endpoint)); in setRetransmitEndpoint()
450 data.writeInt32(0); in setRetransmitEndpoint()
453 err = remote()->transact(SET_RETRANSMIT_ENDPOINT, data, &reply); in setRetransmitEndpoint()
461 Parcel data, reply; in setNextPlayer() local
462 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setNextPlayer()
464 data.writeStrongBinder(b); in setNextPlayer()
465 remote()->transact(SET_NEXT_PLAYER, data, &reply); in setNextPlayer()
471 Parcel data, reply; in getRetransmitEndpoint() local
474 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getRetransmitEndpoint()
475 err = remote()->transact(GET_RETRANSMIT_ENDPOINT, data, &reply); in getRetransmitEndpoint()
481 data.read(endpoint, sizeof(*endpoint)); in getRetransmitEndpoint()
489 Parcel data, reply; in applyVolumeShaper() local
490 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in applyVolumeShaper()
494 ? data.writeInt32(0) in applyVolumeShaper()
495 : (tmp = data.writeInt32(1)) != NO_ERROR in applyVolumeShaper()
496 ? tmp : configuration->writeToParcel(&data); in applyVolumeShaper()
502 ? status = data.writeInt32(0) in applyVolumeShaper()
503 : (tmp = data.writeInt32(1)) != NO_ERROR in applyVolumeShaper()
504 ? tmp : operation->writeToParcel(&data); in applyVolumeShaper()
510 status = remote()->transact(APPLY_VOLUME_SHAPER, data, &reply); in applyVolumeShaper()
521 Parcel data, reply; in getVolumeShaperState() local
522 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getVolumeShaperState()
524 data.writeInt32(id); in getVolumeShaperState()
525 status_t status = remote()->transact(GET_VOLUME_SHAPER_STATE, data, &reply); in getVolumeShaperState()
540 Parcel data, reply; in prepareDrm() local
541 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in prepareDrm()
543 data.write(uuid, 16); in prepareDrm()
544 writeVector(data, drmSessionId); in prepareDrm()
546 status_t status = remote()->transact(PREPARE_DRM, data, &reply); in prepareDrm()
557 Parcel data, reply; in releaseDrm() local
558 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in releaseDrm()
560 status_t status = remote()->transact(RELEASE_DRM, data, &reply); in releaseDrm()
571 Parcel data, reply; in setOutputDevice() local
572 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setOutputDevice()
574 data.writeInt32(deviceId); in setOutputDevice()
576 status_t status = remote()->transact(SET_OUTPUT_DEVICE, data, &reply); in setOutputDevice()
587 Parcel data, reply; in getRoutedDeviceId() local
588 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getRoutedDeviceId()
590 status_t status = remote()->transact(GET_ROUTED_DEVICE_ID, data, &reply); in getRoutedDeviceId()
608 Parcel data, reply; in enableAudioDeviceCallback() local
609 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in enableAudioDeviceCallback()
611 data.writeBool(enabled); in enableAudioDeviceCallback()
613 status_t status = remote()->transact(ENABLE_AUDIO_DEVICE_CALLBACK, data, &reply); 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()
640 if (data.readInt32()) { in onTransact()
642 interface_cast<IMediaHTTPService>(data.readStrongBinder()); in onTransact()
645 const char* url = data.readCString(); in onTransact()
651 int32_t numHeaders = data.readInt32(); in onTransact()
653 String8 key = data.readString8(); in onTransact()
654 String8 value = data.readString8(); in onTransact()
662 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
663 int fd = data.readFileDescriptor(); in onTransact()
664 int64_t offset = data.readInt64(); in onTransact()
665 int64_t length = data.readInt64(); in onTransact()
670 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
672 interface_cast<IStreamSource>(data.readStrongBinder()); in onTransact()
681 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
683 interface_cast<IDataSource>(data.readStrongBinder()); in onTransact()
692 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
694 interface_cast<IGraphicBufferProducer>(data.readStrongBinder()); in onTransact()
699 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
701 buffering.mInitialMarkMs = data.readInt32(); in onTransact()
702 buffering.mResumePlaybackMarkMs = data.readInt32(); in onTransact()
707 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
718 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
723 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
728 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
733 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
741 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
743 rate.mSpeed = data.readFloat(); in onTransact()
744 rate.mPitch = data.readFloat(); in onTransact()
745 rate.mFallbackMode = (AudioTimestretchFallbackMode)data.readInt32(); in onTransact()
746 rate.mStretchMode = (AudioTimestretchStretchMode)data.readInt32(); in onTransact()
751 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
764 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
766 sync.mSource = (AVSyncSource)data.readInt32(); in onTransact()
767 sync.mAudioAdjustMode = (AVSyncAudioAdjustMode)data.readInt32(); in onTransact()
768 sync.mTolerance = data.readFloat(); in onTransact()
769 float videoFpsHint = data.readFloat(); in onTransact()
774 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
788 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
793 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
794 int msec = data.readInt32(); in onTransact()
795 MediaPlayerSeekMode mode = (MediaPlayerSeekMode)data.readInt32(); in onTransact()
800 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
808 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
816 CHECK_INTERFACE(IMediaPlayer, data, reply); 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()
837 float leftVolume = data.readFloat(); in onTransact()
838 float rightVolume = data.readFloat(); 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()
854 bool update_only = static_cast<bool>(data.readInt32()); in onTransact()
855 bool apply_filter = static_cast<bool>(data.readInt32()); 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()
874 int key = data.readInt32(); in onTransact()
877 if (data.dataAvail() > 0) { in onTransact()
879 const_cast<Parcel *>(&data), data.dataPosition(), data.dataAvail()); 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()
894 int amt = data.readInt32(); in onTransact()
896 data.read(&endpoint, sizeof(struct sockaddr_in)); in onTransact()
905 CHECK_INTERFACE(IMediaPlayer, data, reply); 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()
929 status_t status = data.readInt32(&present); in onTransact()
932 status = configuration->readFromParcel(&data); in onTransact()
935 status = data.readInt32(&present); in onTransact()
939 status = operation->readFromParcel(&data); in onTransact()
948 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
950 status_t status = data.readInt32(&id); in onTransact()
962 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
965 data.read(uuid, sizeof(uuid)); in onTransact()
967 readVector(data, drmSessionId); in onTransact()
974 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
983 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
985 status_t status = data.readInt32(&deviceId); in onTransact()
994 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
1004 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
1006 status_t status = data.readBool(&enabled); in onTransact()
1016 return BBinder::onTransact(code, data, reply, flags); in onTransact()