Home
last modified time | relevance | path

Searched refs:mStylusState (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/services/inputflinger/reader/mapper/
DExternalStylusInputMapper.cpp47 dumpStylusState(dump, mStylusState); in dump()
76 mStylusState.clear(); in sync()
78 mStylusState.when = when; in sync()
80 mStylusState.toolType = mTouchButtonAccumulator.getToolType(); in sync()
81 if (mStylusState.toolType == ToolType::UNKNOWN) { in sync()
82 mStylusState.toolType = ToolType::STYLUS; in sync()
87 mStylusState.pressure = (rawPressure - mRawPressureAxis.minValue) / in sync()
90 mStylusState.pressure = mTouchButtonAccumulator.isHovering() ? 0.0f : 1.0f; in sync()
93 mStylusState.buttons = mTouchButtonAccumulator.getButtonState(); in sync()
95 return getContext()->dispatchExternalStylusState(mStylusState); in sync()
DExternalStylusInputMapper.h49 StylusState mStylusState; variable
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp6734 mStylusState.when = ARBITRARY_TIME; in initializeInputMapperWithExternalStylus()
6735 mStylusState.pressure = 0.f; in initializeInputMapperWithExternalStylus()
6736 mStylusState.toolType = ToolType::STYLUS; in initializeInputMapperWithExternalStylus()
6744 std::list<NotifyArgs> generatedArgs = mapper.updateExternalStylusState(mStylusState); in processExternalStylusState()
6754 StylusState mStylusState{}; member in android::ExternalStylusFusionTest
6769 mStylusState.pressure = 1.f; in testStartFusedStylusGesture()
6795 mStylusState.pressure = 0.f; in testSuccessfulFusionGesture()
6865 mStylusState.pressure = 1.f; in TEST_F()
6906 mStylusState.pressure = 0.8f; in TEST_F()
6916 mStylusState.pressure = 0.6f; in TEST_F()
[all …]