Lines Matching refs:data
71 Parcel data, reply; in freeNode() local
72 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in freeNode()
73 remote()->transact(FREE_NODE, data, &reply); in freeNode()
80 Parcel data, reply; in sendCommand() local
81 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in sendCommand()
82 data.writeInt32(cmd); in sendCommand()
83 data.writeInt32(param); in sendCommand()
84 remote()->transact(SEND_COMMAND, data, &reply); in sendCommand()
92 Parcel data, reply; in getParameter() local
93 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in getParameter()
94 data.writeInt32(index); in getParameter()
95 data.writeInt64(size); in getParameter()
96 data.write(params, size); in getParameter()
97 remote()->transact(GET_PARAMETER, data, &reply); in getParameter()
112 Parcel data, reply; in setParameter() local
113 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in setParameter()
114 data.writeInt32(index); in setParameter()
115 data.writeInt64(size); in setParameter()
116 data.write(params, size); in setParameter()
117 remote()->transact(SET_PARAMETER, data, &reply); in setParameter()
125 Parcel data, reply; in getConfig() local
126 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in getConfig()
127 data.writeInt32(index); in getConfig()
128 data.writeInt64(size); in getConfig()
129 data.write(params, size); in getConfig()
130 remote()->transact(GET_CONFIG, data, &reply); in getConfig()
145 Parcel data, reply; in setConfig() local
146 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in setConfig()
147 data.writeInt32(index); in setConfig()
148 data.writeInt64(size); in setConfig()
149 data.write(params, size); in setConfig()
150 remote()->transact(SET_CONFIG, data, &reply); in setConfig()
157 Parcel data, reply; in setPortMode() local
158 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in setPortMode()
159 data.writeInt32(port_index); in setPortMode()
160 data.writeInt32(mode); in setPortMode()
161 remote()->transact(SET_PORT_MODE, data, &reply); in setPortMode()
168 Parcel data, reply; in getGraphicBufferUsage() local
169 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in getGraphicBufferUsage()
170 data.writeInt32(port_index); in getGraphicBufferUsage()
171 remote()->transact(GET_GRAPHIC_BUFFER_USAGE, data, &reply); in getGraphicBufferUsage()
180 Parcel data, reply; in useBuffer() local
181 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in useBuffer()
182 data.writeInt32(port_index); in useBuffer()
184 status_t err = omxBuf.writeToParcel(&data); in useBuffer()
189 remote()->transact(USE_BUFFER, data, &reply); in useBuffer()
205 Parcel data, reply; in setInputSurface() local
206 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in setInputSurface()
208 data.writeStrongBinder(IInterface::asBinder(bufferSource)); in setInputSurface()
210 status_t err = remote()->transact(SET_INPUT_SURFACE, data, &reply); in setInputSurface()
225 Parcel data, reply; in prepareForAdaptivePlayback() local
226 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in prepareForAdaptivePlayback()
227 data.writeInt32(port_index); in prepareForAdaptivePlayback()
228 data.writeInt32((int32_t)enable); in prepareForAdaptivePlayback()
229 data.writeInt32(max_width); in prepareForAdaptivePlayback()
230 data.writeInt32(max_height); in prepareForAdaptivePlayback()
231 remote()->transact(PREPARE_FOR_ADAPTIVE_PLAYBACK, data, &reply); in prepareForAdaptivePlayback()
240 Parcel data, reply; in configureVideoTunnelMode() local
241 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in configureVideoTunnelMode()
242 data.writeInt32(portIndex); in configureVideoTunnelMode()
243 data.writeInt32((int32_t)tunneled); in configureVideoTunnelMode()
244 data.writeInt32(audioHwSync); in configureVideoTunnelMode()
245 remote()->transact(CONFIGURE_VIDEO_TUNNEL_MODE, data, &reply); in configureVideoTunnelMode()
258 Parcel data, reply; in allocateSecureBuffer() local
259 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in allocateSecureBuffer()
260 data.writeInt32(port_index); in allocateSecureBuffer()
261 data.writeInt64(size); in allocateSecureBuffer()
262 remote()->transact(ALLOC_SECURE_BUFFER, data, &reply); in allocateSecureBuffer()
285 Parcel data, reply; in freeBuffer() local
286 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in freeBuffer()
287 data.writeInt32(port_index); in freeBuffer()
288 data.writeInt32((int32_t)buffer); in freeBuffer()
289 remote()->transact(FREE_BUFFER, data, &reply); in freeBuffer()
296 Parcel data, reply; in fillBuffer() local
297 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in fillBuffer()
298 data.writeInt32((int32_t)buffer); in fillBuffer()
299 status_t err = omxBuf.writeToParcel(&data); in fillBuffer()
303 data.writeInt32(fenceFd >= 0); in fillBuffer()
305 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in fillBuffer()
307 remote()->transact(FILL_BUFFER, data, &reply); in fillBuffer()
315 Parcel data, reply; in emptyBuffer() local
316 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in emptyBuffer()
317 data.writeInt32((int32_t)buffer); in emptyBuffer()
318 status_t err = omxBuf.writeToParcel(&data); in emptyBuffer()
322 data.writeInt32(flags); in emptyBuffer()
323 data.writeInt64(timestamp); in emptyBuffer()
324 data.writeInt32(fenceFd >= 0); in emptyBuffer()
326 data.writeFileDescriptor(fenceFd, true /* takeOwnership */); in emptyBuffer()
328 remote()->transact(EMPTY_BUFFER, data, &reply); in emptyBuffer()
336 Parcel data, reply; in getExtensionIndex() local
337 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in getExtensionIndex()
338 data.writeCString(parameter_name); in getExtensionIndex()
340 remote()->transact(GET_EXTENSION_INDEX, data, &reply); in getExtensionIndex()
353 Parcel data, reply; in dispatchMessage() local
354 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in dispatchMessage()
355 data.writeInt32(msg.fenceFd >= 0); in dispatchMessage()
357 data.writeFileDescriptor(msg.fenceFd, true /* takeOwnership */); in dispatchMessage()
359 data.writeInt32(msg.type); in dispatchMessage()
360 data.write(&msg.u, sizeof(msg.u)); in dispatchMessage()
362 remote()->transact(DISPATCH_MESSAGE, data, &reply); in dispatchMessage()
368 Parcel data, reply; in setQuirks() local
369 data.writeInterfaceToken(IOMXNode::getInterfaceDescriptor()); in setQuirks()
370 data.writeInt32(quirks); in setQuirks()
372 remote()->transact(SET_QUIRKS, data, &reply); in setQuirks()
484 #define CHECK_OMX_INTERFACE(interface, data, reply) \ argument
485 do { if (!(data).enforceInterface(interface::getInterfaceDescriptor())) { \
491 uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags) { in onTransact() argument
495 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
504 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
507 static_cast<OMX_COMMANDTYPE>(data.readInt32()); in onTransact()
509 OMX_S32 param = data.readInt32(); in onTransact()
520 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
522 OMX_INDEXTYPE index = static_cast<OMX_INDEXTYPE>(data.readInt32()); in onTransact()
524 size_t size = data.readInt64(); in onTransact()
547 err = data.read(params, size); in onTransact()
606 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
607 OMX_U32 port_index = data.readInt32(); in onTransact()
608 IOMX::PortMode mode = (IOMX::PortMode) data.readInt32(); in onTransact()
616 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
618 OMX_U32 port_index = data.readInt32(); in onTransact()
630 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
632 OMX_U32 port_index = data.readInt32(); in onTransact()
635 status_t err = omxBuf.readFromParcel(&data); in onTransact()
653 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
656 interface_cast<IOMXBufferSource>(data.readStrongBinder()); in onTransact()
666 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
668 OMX_U32 port_index = data.readInt32(); in onTransact()
669 OMX_BOOL enable = (OMX_BOOL)data.readInt32(); in onTransact()
670 OMX_U32 max_width = data.readInt32(); in onTransact()
671 OMX_U32 max_height = data.readInt32(); in onTransact()
682 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
684 OMX_U32 port_index = data.readInt32(); in onTransact()
685 OMX_BOOL tunneled = (OMX_BOOL)data.readInt32(); in onTransact()
686 OMX_U32 audio_hw_sync = data.readInt32(); in onTransact()
701 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
703 OMX_U32 port_index = data.readInt32(); in onTransact()
710 size_t size = data.readInt64(); in onTransact()
732 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
734 OMX_U32 port_index = data.readInt32(); in onTransact()
735 buffer_id buffer = (buffer_id)data.readInt32(); in onTransact()
743 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
745 buffer_id buffer = (buffer_id)data.readInt32(); in onTransact()
748 status_t err = omxBuf.readFromParcel(&data); in onTransact()
753 bool haveFence = data.readInt32(); in onTransact()
754 int fenceFd = haveFence ? ::dup(data.readFileDescriptor()) : -1; in onTransact()
763 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
765 buffer_id buffer = (buffer_id)data.readInt32(); in onTransact()
767 status_t err = omxBuf.readFromParcel(&data); in onTransact()
771 OMX_U32 flags = data.readInt32(); in onTransact()
772 OMX_TICKS timestamp = data.readInt64(); in onTransact()
773 bool haveFence = data.readInt32(); in onTransact()
774 int fenceFd = haveFence ? ::dup(data.readFileDescriptor()) : -1; in onTransact()
783 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
785 const char *parameter_name = data.readCString(); in onTransact()
807 CHECK_OMX_INTERFACE(IOMXNode, data, reply); in onTransact()
809 int haveFence = data.readInt32(); in onTransact()
810 msg.fenceFd = haveFence ? ::dup(data.readFileDescriptor()) : -1; in onTransact()
811 msg.type = (typeof(msg.type))data.readInt32(); in onTransact()
812 status_t err = data.read(&msg.u, sizeof(msg.u)); in onTransact()
823 return BBinder::onTransact(code, data, reply, flags); in onTransact()
836 Parcel data, reply; in onMessages() local
841 data.writeInterfaceToken(IOMXObserver::getInterfaceDescriptor()); in onMessages()
844 data.writeInt32(msg.fenceFd >= 0); in onMessages()
846 data.writeFileDescriptor(msg.fenceFd, true /* takeOwnership */); in onMessages()
848 data.writeInt32(msg.type); in onMessages()
849 data.write(&msg.u, sizeof(msg.u)); in onMessages()
852 data.writeInt32(-1); // mark end in onMessages()
853 remote()->transact(OBSERVER_ON_MSG, data, &reply, IBinder::FLAG_ONEWAY); in onMessages()
860 uint32_t code, const Parcel &data, Parcel *reply, uint32_t flags) { in onTransact() argument
864 CHECK_OMX_INTERFACE(IOMXObserver, data, reply); in onTransact()
868 int haveFence = data.readInt32(); in onTransact()
873 msg.fenceFd = haveFence ? ::dup(data.readFileDescriptor()) : -1; in onTransact()
874 msg.type = (typeof(msg.type))data.readInt32(); in onTransact()
875 err = data.read(&msg.u, sizeof(msg.u)); in onTransact()
888 return BBinder::onTransact(code, data, reply, flags); in onTransact()