Lines Matching refs:data
87 static void writeVector(Parcel& data, Vector<uint8_t> const& vector) { in writeVector() argument
88 data.writeUint32(vector.size()); in writeVector()
89 data.write(vector.array(), vector.size()); in writeVector()
103 Parcel data, reply; in disconnect() local
104 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in disconnect()
105 remote()->transact(DISCONNECT, data, &reply); in disconnect()
113 Parcel data, reply; in setDataSource() local
114 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setDataSource()
115 data.writeInt32(httpService != NULL); in setDataSource()
117 data.writeStrongBinder(IInterface::asBinder(httpService)); in setDataSource()
119 data.writeCString(url); in setDataSource()
121 data.writeInt32(0); in setDataSource()
124 data.writeInt32(headers->size()); in setDataSource()
126 data.writeString8(headers->keyAt(i)); in setDataSource()
127 data.writeString8(headers->valueAt(i)); in setDataSource()
130 remote()->transact(SET_DATA_SOURCE_URL, data, &reply); in setDataSource()
135 Parcel data, reply; in setDataSource() local
136 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setDataSource()
137 data.writeFileDescriptor(fd); in setDataSource()
138 data.writeInt64(offset); in setDataSource()
139 data.writeInt64(length); in setDataSource()
140 remote()->transact(SET_DATA_SOURCE_FD, data, &reply); in setDataSource()
145 Parcel data, reply; in setDataSource() local
146 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setDataSource()
147 data.writeStrongBinder(IInterface::asBinder(source)); in setDataSource()
148 remote()->transact(SET_DATA_SOURCE_STREAM, data, &reply); in setDataSource()
153 Parcel data, reply; in setDataSource() local
154 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setDataSource()
155 data.writeStrongBinder(IInterface::asBinder(source)); in setDataSource()
156 remote()->transact(SET_DATA_SOURCE_CALLBACK, data, &reply); in setDataSource()
163 Parcel data, reply; in setVideoSurfaceTexture() local
164 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setVideoSurfaceTexture()
166 data.writeStrongBinder(b); in setVideoSurfaceTexture()
167 remote()->transact(SET_VIDEO_SURFACETEXTURE, data, &reply); in setVideoSurfaceTexture()
173 Parcel data, reply; in setBufferingSettings() local
174 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setBufferingSettings()
175 buffering.writeToParcel(&data); in setBufferingSettings()
176 remote()->transact(SET_BUFFERING_SETTINGS, data, &reply); in setBufferingSettings()
185 Parcel data, reply; in getDefaultBufferingSettings() local
186 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getDefaultBufferingSettings()
187 remote()->transact(GET_DEFAULT_BUFFERING_SETTINGS, data, &reply); in getDefaultBufferingSettings()
197 Parcel data, reply; in prepareAsync() local
198 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in prepareAsync()
199 remote()->transact(PREPARE_ASYNC, data, &reply); in prepareAsync()
205 Parcel data, reply; in start() local
206 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in start()
207 remote()->transact(START, data, &reply); in start()
213 Parcel data, reply; in stop() local
214 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in stop()
215 remote()->transact(STOP, data, &reply); in stop()
221 Parcel data, reply; in isPlaying() local
222 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in isPlaying()
223 remote()->transact(IS_PLAYING, data, &reply); in isPlaying()
230 Parcel data, reply; in setPlaybackSettings() local
231 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setPlaybackSettings()
232 data.writeFloat(rate.mSpeed); in setPlaybackSettings()
233 data.writeFloat(rate.mPitch); in setPlaybackSettings()
234 data.writeInt32((int32_t)rate.mFallbackMode); in setPlaybackSettings()
235 data.writeInt32((int32_t)rate.mStretchMode); in setPlaybackSettings()
236 remote()->transact(SET_PLAYBACK_SETTINGS, data, &reply); in setPlaybackSettings()
242 Parcel data, reply; in getPlaybackSettings() local
243 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getPlaybackSettings()
244 remote()->transact(GET_PLAYBACK_SETTINGS, data, &reply); in getPlaybackSettings()
258 Parcel data, reply; in setSyncSettings() local
259 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setSyncSettings()
260 data.writeInt32((int32_t)sync.mSource); in setSyncSettings()
261 data.writeInt32((int32_t)sync.mAudioAdjustMode); in setSyncSettings()
262 data.writeFloat(sync.mTolerance); in setSyncSettings()
263 data.writeFloat(videoFpsHint); in setSyncSettings()
264 remote()->transact(SET_SYNC_SETTINGS, data, &reply); in setSyncSettings()
270 Parcel data, reply; in getSyncSettings() local
271 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getSyncSettings()
272 remote()->transact(GET_SYNC_SETTINGS, data, &reply); in getSyncSettings()
287 Parcel data, reply; in pause() local
288 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in pause()
289 remote()->transact(PAUSE, data, &reply); in pause()
295 Parcel data, reply; in seekTo() local
296 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in seekTo()
297 data.writeInt32(msec); in seekTo()
298 data.writeInt32(mode); in seekTo()
299 remote()->transact(SEEK_TO, data, &reply); in seekTo()
305 Parcel data, reply; in getCurrentPosition() local
306 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getCurrentPosition()
307 remote()->transact(GET_CURRENT_POSITION, data, &reply); in getCurrentPosition()
314 Parcel data, reply; in getDuration() local
315 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getDuration()
316 remote()->transact(GET_DURATION, data, &reply); in getDuration()
323 Parcel data, reply; in reset() local
324 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in reset()
325 remote()->transact(RESET, data, &reply); in reset()
331 Parcel data, reply; in setAudioStreamType() local
332 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setAudioStreamType()
333 data.writeInt32((int32_t) stream); in setAudioStreamType()
334 remote()->transact(SET_AUDIO_STREAM_TYPE, data, &reply); in setAudioStreamType()
340 Parcel data, reply; in setLooping() local
341 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setLooping()
342 data.writeInt32(loop); in setLooping()
343 remote()->transact(SET_LOOPING, data, &reply); in setLooping()
349 Parcel data, reply; in setVolume() local
350 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setVolume()
351 data.writeFloat(leftVolume); in setVolume()
352 data.writeFloat(rightVolume); in setVolume()
353 remote()->transact(SET_VOLUME, data, &reply); in setVolume()
386 Parcel data, reply; in setAuxEffectSendLevel() local
387 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setAuxEffectSendLevel()
388 data.writeFloat(level); in setAuxEffectSendLevel()
389 remote()->transact(SET_AUX_EFFECT_SEND_LEVEL, data, &reply); in setAuxEffectSendLevel()
395 Parcel data, reply; in attachAuxEffect() local
396 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in attachAuxEffect()
397 data.writeInt32(effectId); in attachAuxEffect()
398 remote()->transact(ATTACH_AUX_EFFECT, data, &reply); in attachAuxEffect()
404 Parcel data, reply; in setParameter() local
405 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setParameter()
406 data.writeInt32(key); in setParameter()
408 data.appendFrom(const_cast<Parcel *>(&request), 0, request.dataSize()); in setParameter()
410 remote()->transact(SET_PARAMETER, data, &reply); in setParameter()
416 Parcel data; in getParameter() local
417 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getParameter()
418 data.writeInt32(key); in getParameter()
419 return remote()->transact(GET_PARAMETER, data, reply); in getParameter()
424 Parcel data, reply; in setRetransmitEndpoint() local
427 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setRetransmitEndpoint()
429 data.writeInt32(sizeof(*endpoint)); in setRetransmitEndpoint()
430 data.write(endpoint, sizeof(*endpoint)); in setRetransmitEndpoint()
432 data.writeInt32(0); in setRetransmitEndpoint()
435 err = remote()->transact(SET_RETRANSMIT_ENDPOINT, data, &reply); in setRetransmitEndpoint()
443 Parcel data, reply; in setNextPlayer() local
444 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in setNextPlayer()
446 data.writeStrongBinder(b); in setNextPlayer()
447 remote()->transact(SET_NEXT_PLAYER, data, &reply); in setNextPlayer()
453 Parcel data, reply; in getRetransmitEndpoint() local
456 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getRetransmitEndpoint()
457 err = remote()->transact(GET_RETRANSMIT_ENDPOINT, data, &reply); in getRetransmitEndpoint()
463 data.read(endpoint, sizeof(*endpoint)); in getRetransmitEndpoint()
471 Parcel data, reply; in applyVolumeShaper() local
472 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in applyVolumeShaper()
476 ? data.writeInt32(0) in applyVolumeShaper()
477 : (tmp = data.writeInt32(1)) != NO_ERROR in applyVolumeShaper()
478 ? tmp : configuration->writeToParcel(&data); in applyVolumeShaper()
484 ? status = data.writeInt32(0) in applyVolumeShaper()
485 : (tmp = data.writeInt32(1)) != NO_ERROR in applyVolumeShaper()
486 ? tmp : operation->writeToParcel(&data); in applyVolumeShaper()
492 status = remote()->transact(APPLY_VOLUME_SHAPER, data, &reply); in applyVolumeShaper()
503 Parcel data, reply; in getVolumeShaperState() local
504 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in getVolumeShaperState()
506 data.writeInt32(id); in getVolumeShaperState()
507 status_t status = remote()->transact(GET_VOLUME_SHAPER_STATE, data, &reply); in getVolumeShaperState()
522 Parcel data, reply; in prepareDrm() local
523 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in prepareDrm()
525 data.write(uuid, 16); in prepareDrm()
526 writeVector(data, drmSessionId); in prepareDrm()
528 status_t status = remote()->transact(PREPARE_DRM, data, &reply); in prepareDrm()
539 Parcel data, reply; in releaseDrm() local
540 data.writeInterfaceToken(IMediaPlayer::getInterfaceDescriptor()); in releaseDrm()
542 status_t status = remote()->transact(RELEASE_DRM, data, &reply); in releaseDrm()
557 uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) in onTransact() argument
561 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
566 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
569 if (data.readInt32()) { in onTransact()
571 interface_cast<IMediaHTTPService>(data.readStrongBinder()); in onTransact()
574 const char* url = data.readCString(); in onTransact()
580 int32_t numHeaders = data.readInt32(); in onTransact()
582 String8 key = data.readString8(); in onTransact()
583 String8 value = data.readString8(); in onTransact()
591 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
592 int fd = data.readFileDescriptor(); in onTransact()
593 int64_t offset = data.readInt64(); in onTransact()
594 int64_t length = data.readInt64(); in onTransact()
599 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
601 interface_cast<IStreamSource>(data.readStrongBinder()); in onTransact()
610 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
612 interface_cast<IDataSource>(data.readStrongBinder()); in onTransact()
621 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
623 interface_cast<IGraphicBufferProducer>(data.readStrongBinder()); in onTransact()
628 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
630 buffering.readFromParcel(&data); in onTransact()
635 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
645 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
650 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
655 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
660 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
668 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
670 rate.mSpeed = data.readFloat(); in onTransact()
671 rate.mPitch = data.readFloat(); in onTransact()
672 rate.mFallbackMode = (AudioTimestretchFallbackMode)data.readInt32(); in onTransact()
673 rate.mStretchMode = (AudioTimestretchStretchMode)data.readInt32(); in onTransact()
678 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
691 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
693 sync.mSource = (AVSyncSource)data.readInt32(); in onTransact()
694 sync.mAudioAdjustMode = (AVSyncAudioAdjustMode)data.readInt32(); in onTransact()
695 sync.mTolerance = data.readFloat(); in onTransact()
696 float videoFpsHint = data.readFloat(); in onTransact()
701 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
715 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
720 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
721 int msec = data.readInt32(); in onTransact()
722 MediaPlayerSeekMode mode = (MediaPlayerSeekMode)data.readInt32(); in onTransact()
727 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
735 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
743 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
748 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
749 reply->writeInt32(setAudioStreamType((audio_stream_type_t) data.readInt32())); in onTransact()
753 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
754 reply->writeInt32(setLooping(data.readInt32())); in onTransact()
758 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
759 float leftVolume = data.readFloat(); in onTransact()
760 float rightVolume = data.readFloat(); in onTransact()
765 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
766 status_t result = invoke(data, reply); in onTransact()
770 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
771 reply->writeInt32(setMetadataFilter(data)); in onTransact()
775 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
776 bool update_only = static_cast<bool>(data.readInt32()); in onTransact()
777 bool apply_filter = static_cast<bool>(data.readInt32()); in onTransact()
785 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
786 reply->writeInt32(setAuxEffectSendLevel(data.readFloat())); in onTransact()
790 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
791 reply->writeInt32(attachAuxEffect(data.readInt32())); in onTransact()
795 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
796 int key = data.readInt32(); in onTransact()
799 if (data.dataAvail() > 0) { in onTransact()
801 const_cast<Parcel *>(&data), data.dataPosition(), data.dataAvail()); in onTransact()
808 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
809 return getParameter(data.readInt32(), reply); in onTransact()
812 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
816 int amt = data.readInt32(); in onTransact()
818 data.read(&endpoint, sizeof(struct sockaddr_in)); in onTransact()
827 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
839 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
840 reply->writeInt32(setNextPlayer(interface_cast<IMediaPlayer>(data.readStrongBinder()))); in onTransact()
846 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
851 status_t status = data.readInt32(&present); in onTransact()
854 status = configuration->readFromParcel(data); in onTransact()
857 status = data.readInt32(&present); in onTransact()
861 status = operation->readFromParcel(data); in onTransact()
870 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
872 status_t status = data.readInt32(&id); in onTransact()
884 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
887 data.read(uuid, sizeof(uuid)); in onTransact()
889 readVector(data, drmSessionId); in onTransact()
896 CHECK_INTERFACE(IMediaPlayer, data, reply); in onTransact()
903 return BBinder::onTransact(code, data, reply, flags); in onTransact()