Lines Matching refs:message
77 ScopedAStatus HdmiCecMock::sendMessage(const CecMessage& message, SendMessageResult* _aidl_return) { in sendMessage() argument
78 if (message.body.size() == 0) { in sendMessage()
81 sendMessageToFifo(message); in sendMessage()
155 int HdmiCecMock::sendMessageToFifo(const CecMessage& message) { in sendMessageToFifo() argument
159 msgBuf[0] = ((static_cast<uint8_t>(message.initiator) & 0xf) << 4) | in sendMessageToFifo()
160 (static_cast<uint8_t>(message.destination) & 0xf); in sendMessageToFifo()
162 size_t length = std::min(static_cast<size_t>(message.body.size()), in sendMessageToFifo()
165 msgBuf[i + 1] = static_cast<unsigned char>(message.body[i]); in sendMessageToFifo()
199 CecMessage message; in handleCecMessage() local
202 message.body.resize(length); in handleCecMessage()
205 message.body[i] = static_cast<uint8_t>(msgBuf[i + 1]); in handleCecMessage()
206 ALOGD("[halimp_aidl] msg body %x", message.body[i]); in handleCecMessage()
209 message.initiator = static_cast<CecLogicalAddress>((msgBuf[0] >> 4) & 0xf); in handleCecMessage()
210 ALOGD("[halimp_aidl] msg init %hhd", message.initiator); in handleCecMessage()
211 message.destination = static_cast<CecLogicalAddress>((msgBuf[0] >> 0) & 0xf); in handleCecMessage()
212 ALOGD("[halimp_aidl] msg dest %hhd", message.destination); in handleCecMessage()
215 mCallback->onCecMessage(message); in handleCecMessage()