Home
last modified time | relevance | path

Searched refs:InputMessage (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/libs/input/tests/
DStructLayout_test.cpp35 CHECK_OFFSET(InputMessage, body, 8); in TestInputMessageAlignment()
37 CHECK_OFFSET(InputMessage::Body::Key, seq, 0); in TestInputMessageAlignment()
38 CHECK_OFFSET(InputMessage::Body::Key, eventId, 4); in TestInputMessageAlignment()
39 CHECK_OFFSET(InputMessage::Body::Key, eventTime, 8); in TestInputMessageAlignment()
40 CHECK_OFFSET(InputMessage::Body::Key, deviceId, 16); in TestInputMessageAlignment()
41 CHECK_OFFSET(InputMessage::Body::Key, source, 20); in TestInputMessageAlignment()
42 CHECK_OFFSET(InputMessage::Body::Key, displayId, 24); in TestInputMessageAlignment()
43 CHECK_OFFSET(InputMessage::Body::Key, hmac, 28); in TestInputMessageAlignment()
44 CHECK_OFFSET(InputMessage::Body::Key, action, 60); in TestInputMessageAlignment()
45 CHECK_OFFSET(InputMessage::Body::Key, flags, 64); in TestInputMessageAlignment()
[all …]
DInputChannel_test.cpp86 InputMessage serverMsg; in TEST_F()
87 memset(&serverMsg, 0, sizeof(InputMessage)); in TEST_F()
88 serverMsg.header.type = InputMessage::Type::KEY; in TEST_F()
93 InputMessage clientMsg; in TEST_F()
102 InputMessage clientReply; in TEST_F()
103 memset(&clientReply, 0, sizeof(InputMessage)); in TEST_F()
104 clientReply.header.type = InputMessage::Type::FINISHED; in TEST_F()
110 InputMessage serverReply; in TEST_F()
130 InputMessage msg; in TEST_F()
146 InputMessage msg; in TEST_F()
[all …]
/frameworks/native/include/input/
DInputTransport.h62 struct InputMessage { struct
174 void getSanitizedCopy(InputMessage* msg) const; argument
217 status_t sendMessage(const InputMessage* msg);
229 status_t receiveMessage(InputMessage* msg);
422 InputMessage mMsg;
430 Vector<InputMessage> samples;
441 void initializeFrom(const InputMessage& msg) { in initializeFrom()
489 void addHistory(const InputMessage& msg) { in addHistory()
536 void updateTouchState(InputMessage& msg);
538 const InputMessage *next);
[all …]
/frameworks/native/libs/input/
DInputTransport.cpp97 bool InputMessage::isValid(size_t actualSize) const { in isValid()
113 size_t InputMessage::size() const { in size()
131 void InputMessage::getSanitizedCopy(InputMessage* msg) const { in getSanitizedCopy()
139 case InputMessage::Type::KEY: { in getSanitizedCopy()
170 case InputMessage::Type::MOTION: { in getSanitizedCopy()
234 case InputMessage::Type::FINISHED: { in getSanitizedCopy()
239 case InputMessage::Type::FOCUS: { in getSanitizedCopy()
305 status_t InputChannel::sendMessage(const InputMessage* msg) { in sendMessage()
307 InputMessage cleanMsg; in sendMessage()
343 status_t InputChannel::receiveMessage(InputMessage* msg) { in receiveMessage()
[all …]