Searched refs:InputMessage (Results 1 – 4 of 4) sorted by relevance
/frameworks/native/libs/input/tests/ |
D | StructLayout_test.cpp | 35 CHECK_OFFSET(InputMessage, body, 8); in TestInputMessageAlignment() 37 CHECK_OFFSET(InputMessage::Body::Key, seq, 0); in TestInputMessageAlignment() 38 CHECK_OFFSET(InputMessage::Body::Key, eventTime, 8); in TestInputMessageAlignment() 39 CHECK_OFFSET(InputMessage::Body::Key, deviceId, 16); in TestInputMessageAlignment() 40 CHECK_OFFSET(InputMessage::Body::Key, source, 20); in TestInputMessageAlignment() 41 CHECK_OFFSET(InputMessage::Body::Key, displayId, 24); in TestInputMessageAlignment() 42 CHECK_OFFSET(InputMessage::Body::Key, action, 28); in TestInputMessageAlignment() 43 CHECK_OFFSET(InputMessage::Body::Key, flags, 32); in TestInputMessageAlignment() 44 CHECK_OFFSET(InputMessage::Body::Key, keyCode, 36); in TestInputMessageAlignment() 45 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 40); in TestInputMessageAlignment() [all …]
|
D | InputChannel_test.cpp | 78 InputMessage serverMsg; in TEST_F() 79 memset(&serverMsg, 0, sizeof(InputMessage)); in TEST_F() 80 serverMsg.header.type = InputMessage::TYPE_KEY; in TEST_F() 85 InputMessage clientMsg; in TEST_F() 94 InputMessage clientReply; in TEST_F() 95 memset(&clientReply, 0, sizeof(InputMessage)); in TEST_F() 96 clientReply.header.type = InputMessage::TYPE_FINISHED; in TEST_F() 102 InputMessage serverReply; in TEST_F() 122 InputMessage msg; in TEST_F() 138 InputMessage msg; in TEST_F() [all …]
|
/frameworks/native/include/input/ |
D | InputTransport.h | 58 struct InputMessage { struct 148 void getSanitizedCopy(InputMessage* msg) const; argument 188 status_t sendMessage(const InputMessage* msg); 200 status_t receiveMessage(InputMessage* msg); 386 InputMessage mMsg; 394 Vector<InputMessage> samples; 405 void initializeFrom(const InputMessage& msg) { in initializeFrom() 453 void addHistory(const InputMessage& msg) { in addHistory() 500 void updateTouchState(InputMessage& msg); 502 const InputMessage *next); [all …]
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 93 bool InputMessage::isValid(size_t actualSize) const { in isValid() 108 size_t InputMessage::size() const { in size() 124 void InputMessage::getSanitizedCopy(InputMessage* msg) const { in getSanitizedCopy() 132 case InputMessage::TYPE_KEY: { in getSanitizedCopy() 159 case InputMessage::TYPE_MOTION: { in getSanitizedCopy() 211 case InputMessage::TYPE_FINISHED: { in getSanitizedCopy() 284 status_t InputChannel::sendMessage(const InputMessage* msg) { in sendMessage() 286 InputMessage cleanMsg; in sendMessage() 322 status_t InputChannel::receiveMessage(InputMessage* msg) { in receiveMessage() 325 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); in receiveMessage() [all …]
|