Searched refs:msgBuf (Results 1 – 8 of 8) 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);
|
/hardware/interfaces/tv/hdmi/connection/aidl/default/ |
D | HdmiConnectionMock.cpp | 130 void HdmiConnectionMock::handleHotplugMessage(unsigned char* msgBuf) { in handleHotplugMessage() argument 131 bool connected = ((msgBuf[3]) & 0xf) > 0; in handleHotplugMessage() 132 int32_t portId = static_cast<uint32_t>(msgBuf[0] & 0xf); in handleHotplugMessage() 139 ALOGD("[halimp_aidl] hot plug port id %x, is connected %x", (msgBuf[0] & 0xf), in handleHotplugMessage() 140 (msgBuf[3] & 0xf)); in handleHotplugMessage() 143 mPhysicalAddress = (connected ? 0xffff : ((msgBuf[1] << 8) | (msgBuf[2]))); in handleHotplugMessage() 155 unsigned char msgBuf[MESSAGE_BODY_MAX_LENGTH]; in threadLoop() local 166 memset(msgBuf, 0, sizeof(msgBuf)); in threadLoop() 169 r = readMessageFromFifo(msgBuf, MESSAGE_BODY_MAX_LENGTH); in threadLoop() 175 printEventBuf((const char*)msgBuf, r); in threadLoop() [all …]
|
D | HdmiConnectionMock.h | 58 void handleHotplugMessage(unsigned char* msgBuf);
|
/hardware/interfaces/tv/hdmi/cec/aidl/default/ |
D | HdmiCecMock.cpp | 156 unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH + 1] = {0}; in sendMessageToFifo() local 159 msgBuf[0] = ((static_cast<uint8_t>(message.initiator) & 0xf) << 4) | in sendMessageToFifo() 165 msgBuf[i + 1] = static_cast<unsigned char>(message.body[i]); in sendMessageToFifo() 176 ret = write(mOutputFile, msgBuf, length + 1); in sendMessageToFifo() 198 void HdmiCecMock::handleCecMessage(unsigned char* msgBuf, int msgSize) { in handleCecMessage() argument 205 message.body[i] = static_cast<uint8_t>(msgBuf[i + 1]); in handleCecMessage() 209 message.initiator = static_cast<CecLogicalAddress>((msgBuf[0] >> 4) & 0xf); in handleCecMessage() 211 message.destination = static_cast<CecLogicalAddress>((msgBuf[0] >> 0) & 0xf); in handleCecMessage() 221 unsigned char msgBuf[CEC_MESSAGE_BODY_MAX_LENGTH]; in threadLoop() local 237 memset(msgBuf, 0, sizeof(msgBuf)); in threadLoop() [all …]
|
D | HdmiCecMock.h | 65 void handleCecMessage(unsigned char* msgBuf, int length);
|