Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/tests/
DHardwareStateConverter_test.cpp84 std::optional<SelfContainedHardwareState> schs = mConverter->processRawEvent(event); in processAxis() local
85 EXPECT_FALSE(schs.has_value()); in processAxis()
127 std::optional<SelfContainedHardwareState> schs = processSync(time); in TEST_F() local
129 ASSERT_TRUE(schs.has_value()); in TEST_F()
130 const HardwareState& state = schs->state; in TEST_F()
179 std::optional<SelfContainedHardwareState> schs = processSync(ARBITRARY_TIME); in TEST_F() local
181 ASSERT_TRUE(schs.has_value()); in TEST_F()
182 ASSERT_EQ(2, schs->state.finger_cnt); in TEST_F()
183 const FingerState& finger1 = schs->state.fingers[0]; in TEST_F()
193 const FingerState& finger2 = schs->state.fingers[1]; in TEST_F()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DHardwareStateConverter.cpp60 SelfContainedHardwareState schs; in produceHardwareState() local
62 schs.state.timestamp = std::chrono::duration<stime_t>(std::chrono::nanoseconds(when)).count(); in produceHardwareState()
63 schs.state.msc_timestamp = in produceHardwareState()
66 schs.state.buttons_down = 0; in produceHardwareState()
68 schs.state.buttons_down |= GESTURES_BUTTON_LEFT; in produceHardwareState()
71 schs.state.buttons_down |= GESTURES_BUTTON_MIDDLE; in produceHardwareState()
74 schs.state.buttons_down |= GESTURES_BUTTON_RIGHT; in produceHardwareState()
77 schs.state.buttons_down |= GESTURES_BUTTON_BACK; in produceHardwareState()
80 schs.state.buttons_down |= GESTURES_BUTTON_FORWARD; in produceHardwareState()
83 schs.fingers.clear(); in produceHardwareState()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DTouchpadInputMapper.cpp463 SelfContainedHardwareState schs) { in sendHardwareState() argument
464 ALOGD_IF(DEBUG_TOUCHPAD_GESTURES, "New hardware state: %s", schs.state.String().c_str()); in sendHardwareState()
465 mGestureInterpreter->PushHardwareState(&schs.state); in sendHardwareState()
DTouchpadInputMapper.h77 SelfContainedHardwareState schs);