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 | 76 InputMessage serverMsg; in TEST_F() 77 memset(&serverMsg, 0, sizeof(InputMessage)); in TEST_F() 78 serverMsg.header.type = InputMessage::TYPE_KEY; in TEST_F() 83 InputMessage clientMsg; in TEST_F() 92 InputMessage clientReply; in TEST_F() 93 memset(&clientReply, 0, sizeof(InputMessage)); in TEST_F() 94 clientReply.header.type = InputMessage::TYPE_FINISHED; in TEST_F() 100 InputMessage serverReply; in TEST_F() 120 InputMessage msg; in TEST_F() 136 InputMessage msg; in TEST_F() [all …]
|
/frameworks/native/include/input/ |
D | InputTransport.h | 53 struct InputMessage { struct 142 void getSanitizedCopy(InputMessage* msg) const; argument 181 status_t sendMessage(const InputMessage* msg); 193 status_t receiveMessage(InputMessage* msg); 367 InputMessage mMsg; 375 Vector<InputMessage> samples; 386 void initializeFrom(const InputMessage& msg) { in initializeFrom() 422 void addHistory(const InputMessage& msg) { in addHistory() 470 void updateTouchState(InputMessage& msg); 471 bool rewriteMessage(const TouchState& state, InputMessage& msg); [all …]
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 72 bool InputMessage::isValid(size_t actualSize) const { in isValid() 87 size_t InputMessage::size() const { in size() 103 void InputMessage::getSanitizedCopy(InputMessage* msg) const { in getSanitizedCopy() 111 case InputMessage::TYPE_KEY: { in getSanitizedCopy() 138 case InputMessage::TYPE_MOTION: { in getSanitizedCopy() 188 case InputMessage::TYPE_FINISHED: { in getSanitizedCopy() 251 status_t InputChannel::sendMessage(const InputMessage* msg) { in sendMessage() 253 InputMessage cleanMsg; in sendMessage() 289 status_t InputChannel::receiveMessage(InputMessage* msg) { in receiveMessage() 292 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); in receiveMessage() [all …]
|