Lines Matching refs:message
76 Return<SendMessageResult> HdmiCecMock::sendMessage(const CecMessage& message) { in sendMessage() argument
77 if (message.body.size() == 0) { in sendMessage()
80 sendMessageToFifo(message); in sendMessage()
170 int HdmiCecMock::sendMessageToFifo(const CecMessage& message) { in sendMessageToFifo() argument
175 msgBuf[0] = ((static_cast<uint8_t>(message.initiator) & 0xf) << 4) | in sendMessageToFifo()
176 (static_cast<uint8_t>(message.destination) & 0xf); in sendMessageToFifo()
178 size_t length = std::min(static_cast<size_t>(message.body.size()), in sendMessageToFifo()
181 msgBuf[i + 1] = static_cast<unsigned char>(message.body[i]); in sendMessageToFifo()
236 CecMessage message; in handleCecMessage() local
239 message.body.resize(length); in handleCecMessage()
242 message.body[i] = static_cast<uint8_t>(msgBuf[i + 1]); in handleCecMessage()
243 ALOGD("[halimp] msg body %x", message.body[i]); in handleCecMessage()
246 message.initiator = static_cast<CecLogicalAddress>((msgBuf[0] >> 4) & 0xf); in handleCecMessage()
247 ALOGD("[halimp] msg init %x", message.initiator); in handleCecMessage()
248 message.destination = static_cast<CecLogicalAddress>((msgBuf[0] >> 0) & 0xf); in handleCecMessage()
249 ALOGD("[halimp] msg dest %x", message.destination); in handleCecMessage()
254 mCallback->onCecMessage(message); in handleCecMessage()