Searched refs:msgBuf (Results 1 – 4 of 4) sorted by relevance
/hardware/interfaces/tv/cec/1.0/default/ |
D | HdmiCecMock.cpp | 171 unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH]; in sendMessageToFifo() local 174 memset(msgBuf, 0, sizeof(msgBuf)); in sendMessageToFifo() 175 msgBuf[0] = ((static_cast<uint8_t>(message.initiator) & 0xf) << 4) | in sendMessageToFifo() 181 msgBuf[i + 1] = static_cast<unsigned char>(message.body[i]); in sendMessageToFifo() 192 ret = write(mOutputFile, msgBuf, length + 1); in sendMessageToFifo() 211 void HdmiCecMock::handleHotplugMessage(unsigned char* msgBuf) { in handleHotplugMessage() argument 212 HotplugEvent hotplugEvent{.connected = ((msgBuf[3]) & 0xf) > 0, in handleHotplugMessage() 213 .portId = static_cast<uint32_t>(msgBuf[0] & 0xf)}; in handleHotplugMessage() 220 ALOGD("[halimp] hot plug port id %x, is connected %x", (msgBuf[0] & 0xf), (msgBuf[3] & 0xf)); in handleHotplugMessage() 223 ((hotplugEvent.connected == 0) ? 0xffff : ((msgBuf[1] << 8) | (msgBuf[2]))); in handleHotplugMessage() [all …]
|
D | HdmiCecMock.h | 84 void handleHotplugMessage(unsigned char* msgBuf); 85 void handleCecMessage(unsigned char* msgBuf, int length);
|
/hardware/interfaces/tv/cec/1.1/default/ |
D | HdmiCecMock.cpp | 222 unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH]; in sendMessageToFifo() local 225 memset(msgBuf, 0, sizeof(msgBuf)); in sendMessageToFifo() 226 msgBuf[0] = ((static_cast<uint8_t>(message.initiator) & 0xf) << 4) | in sendMessageToFifo() 232 msgBuf[i + 1] = static_cast<unsigned char>(message.body[i]); in sendMessageToFifo() 243 ret = write(mOutputFile, msgBuf, length + 1); in sendMessageToFifo() 262 void HdmiCecMock::handleHotplugMessage(unsigned char* msgBuf) { in handleHotplugMessage() argument 263 HotplugEvent hotplugEvent{.connected = ((msgBuf[3]) & 0xf) > 0, in handleHotplugMessage() 264 .portId = static_cast<uint32_t>(msgBuf[0] & 0xf)}; in handleHotplugMessage() 271 ALOGD("[halimp] hot plug port id %x, is connected %x", (msgBuf[0] & 0xf), (msgBuf[3] & 0xf)); in handleHotplugMessage() 274 ((hotplugEvent.connected == 0) ? 0xffff : ((msgBuf[1] << 8) | (msgBuf[2]))); in handleHotplugMessage() [all …]
|
D | HdmiCecMock.h | 89 void handleHotplugMessage(unsigned char* msgBuf); 90 void handleCecMessage(unsigned char* msgBuf, int length);
|