Lines Matching refs:data
36 bool AudioProtocol::handleReply(const uint32_t* data, AudioParam* param) in handleReply() argument
38 if (!checkHeaderId(data, mCommand)) { in handleReply()
41 if (data[1] != 0) { // no endian change for 0 in handleReply()
42 LOGE("error in reply %d", ntohl(data[1])); in handleReply()
45 if (data[2] != 0) { in handleReply()
46 LOGE("payload length %d not zero", ntohl(data[2])); in handleReply()
52 bool AudioProtocol::handleReplyHeader(ClientSocket& socket, uint32_t* data, CommandId& id) in handleReplyHeader() argument
54 if (!socket.readData((char*)data, REPLY_HEADER_SIZE)) { in handleReplyHeader()
58 uint32_t command = ntohl(data[0]); in handleReplyHeader()
60 LOGE("Wrong header %x %x", command, data[0]); in handleReplyHeader()
65 LOGE("Wrong header %x %x", command, data[0]); in handleReplyHeader()
69 LOGE("Wrong header %x %x", command, data[0]); in handleReplyHeader()
77 bool AudioProtocol::checkHeaderId(const uint32_t* data, uint32_t command) in checkHeaderId() argument
79 if (ntohl(data[0]) != ((command & 0xffff) | 0x43210000)) { in checkHeaderId()
80 LOGE("wrong reply ID 0x%x", ntohl(data[0])); in checkHeaderId()
149 bool CmdStartRecording::handleReply(const uint32_t* data, AudioParam* param) in handleReply() argument
151 if (!checkHeaderId(data, ECmdStartRecording)) { in handleReply()
154 if (data[1] != 0) { // no endian change for 0 in handleReply()
155 LOGE("error in reply %d", ntohl(data[1])); in handleReply()
158 int len = ntohl(data[2]); in handleReply()
175 bool CmdGetDeviceInfo::handleReply(const uint32_t* data, AudioParam* param) in handleReply() argument
177 if (!checkHeaderId(data, ECmdGetDeviceInfo)) { in handleReply()
180 if (data[1] != 0) { // no endian change for 0 in handleReply()
181 LOGE("error in reply %d", ntohl(data[1])); in handleReply()
184 int len = ntohl(data[2]); in handleReply()