Home
last modified time | relevance | path

Searched refs:deviceContext (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/native/services/inputflinger/reader/mapper/accumulator/
DSingleTouchMotionAccumulator.cpp28 void SingleTouchMotionAccumulator::reset(InputDeviceContext& deviceContext) { in reset() argument
29 mAbsX = deviceContext.getAbsoluteAxisValue(ABS_X); in reset()
30 mAbsY = deviceContext.getAbsoluteAxisValue(ABS_Y); in reset()
31 mAbsPressure = deviceContext.getAbsoluteAxisValue(ABS_PRESSURE); in reset()
32 mAbsToolWidth = deviceContext.getAbsoluteAxisValue(ABS_TOOL_WIDTH); in reset()
33 mAbsDistance = deviceContext.getAbsoluteAxisValue(ABS_DISTANCE); in reset()
34 mAbsTiltX = deviceContext.getAbsoluteAxisValue(ABS_TILT_X); in reset()
35 mAbsTiltY = deviceContext.getAbsoluteAxisValue(ABS_TILT_Y); in reset()
DCursorButtonAccumulator.cpp28 void CursorButtonAccumulator::reset(const InputDeviceContext& deviceContext) { in reset() argument
29 mBtnLeft = deviceContext.isKeyPressed(BTN_LEFT); in reset()
30 mBtnRight = deviceContext.isKeyPressed(BTN_RIGHT); in reset()
31 mBtnMiddle = deviceContext.isKeyPressed(BTN_MIDDLE); in reset()
32 mBtnBack = deviceContext.isKeyPressed(BTN_BACK); in reset()
33 mBtnSide = deviceContext.isKeyPressed(BTN_SIDE); in reset()
34 mBtnForward = deviceContext.isKeyPressed(BTN_FORWARD); in reset()
35 mBtnExtra = deviceContext.isKeyPressed(BTN_EXTRA); in reset()
36 mBtnTask = deviceContext.isKeyPressed(BTN_TASK); in reset()
DCursorScrollAccumulator.cpp28 void CursorScrollAccumulator::configure(InputDeviceContext& deviceContext) { in configure() argument
29 mHaveRelWheel = deviceContext.hasRelativeAxis(REL_WHEEL); in configure()
30 mHaveRelHWheel = deviceContext.hasRelativeAxis(REL_HWHEEL); in configure()
33 void CursorScrollAccumulator::reset(InputDeviceContext& deviceContext) { in reset() argument
DCursorScrollAccumulator.h31 void configure(InputDeviceContext& deviceContext);
32 void reset(InputDeviceContext& deviceContext);
DTouchButtonAccumulator.h30 explicit TouchButtonAccumulator(const InputDeviceContext& deviceContext) in TouchButtonAccumulator() argument
31 : mDeviceContext(deviceContext){}; in TouchButtonAccumulator()
DMultiTouchMotionAccumulator.cpp29 void MultiTouchMotionAccumulator::configure(const InputDeviceContext& deviceContext, in configure() argument
44 if (const auto status = deviceContext.getAbsoluteAxisValue(ABS_MT_SLOT, &initialSlot); in configure()
/frameworks/native/services/inputflinger/tests/
DGestureConverter_test.cpp86 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F() local
87 GestureConverter converter(*mReader->getContext(), deviceContext, DEVICE_ID); in TEST_F()
103 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F() local
104 GestureConverter converter(*mReader->getContext(), deviceContext, DEVICE_ID); in TEST_F()
121 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F() local
122 GestureConverter converter(*mReader->getContext(), deviceContext, DEVICE_ID); in TEST_F()
191 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F() local
192 GestureConverter converter(*mReader->getContext(), deviceContext, DEVICE_ID); in TEST_F()
252 InputDeviceContext deviceContext(*mDevice, EVENTHUB_ID); in TEST_F() local
253 GestureConverter converter(*mReader->getContext(), deviceContext, DEVICE_ID); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.h39 void reset(InputDeviceContext& deviceContext);
57 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
130 explicit CursorInputMapper(InputDeviceContext& deviceContext,
140 static Parameters computeParameters(const InputDeviceContext& deviceContext);
DTouchpadInputMapper.cpp286 TouchpadInputMapper::TouchpadInputMapper(InputDeviceContext& deviceContext, in TouchpadInputMapper() argument
288 : InputMapper(deviceContext, readerConfig), in TouchpadInputMapper()
291 mStateConverter(deviceContext, mMotionAccumulator), in TouchpadInputMapper()
292 mGestureConverter(*getContext(), deviceContext, getDeviceId()), in TouchpadInputMapper()
293 mCapturedEventConverter(*getContext(), deviceContext, mMotionAccumulator, getDeviceId()), in TouchpadInputMapper()
294 mMetricsId(metricsIdFromInputDeviceIdentifier(deviceContext.getDeviceIdentifier())) { in TouchpadInputMapper()
296 deviceContext.getAbsoluteAxisInfo(ABS_MT_SLOT, &slotAxisInfo); in TouchpadInputMapper()
300 deviceContext.getName().c_str()); in TouchpadInputMapper()
302 mMotionAccumulator.configure(deviceContext, slotAxisInfo.maxValue + 1, true); in TouchpadInputMapper()
305 mGestureInterpreter->SetHardwareProperties(createHardwareProperties(deviceContext)); in TouchpadInputMapper()
DCapturedTouchpadEventConverter.cpp49 InputReaderContext& readerContext, const InputDeviceContext& deviceContext, in CapturedTouchpadEventConverter() argument
53 mDeviceContext(deviceContext), in CapturedTouchpadEventConverter()
55 mHasTouchMinor(deviceContext.hasAbsoluteAxis(ABS_MT_TOUCH_MINOR)), in CapturedTouchpadEventConverter()
56 mHasToolMinor(deviceContext.hasAbsoluteAxis(ABS_MT_WIDTH_MINOR)) { in CapturedTouchpadEventConverter()
58 deviceContext.getAbsoluteAxisInfo(ABS_MT_ORIENTATION, &orientationInfo); in CapturedTouchpadEventConverter()
69 deviceContext.getAbsoluteAxisInfo(ABS_MT_PRESSURE, &pressureInfo); in CapturedTouchpadEventConverter()
75 deviceContext.getAbsoluteAxisInfo(ABS_MT_TOUCH_MAJOR, &touchMajorInfo); in CapturedTouchpadEventConverter()
76 deviceContext.getAbsoluteAxisInfo(ABS_MT_WIDTH_MAJOR, &toolMajorInfo); in CapturedTouchpadEventConverter()
DExternalStylusInputMapper.cpp26 ExternalStylusInputMapper::ExternalStylusInputMapper(InputDeviceContext& deviceContext, in ExternalStylusInputMapper() argument
28 : InputMapper(deviceContext, readerConfig), mTouchButtonAccumulator(deviceContext) {} in ExternalStylusInputMapper()
DSingleTouchInputMapper.h27 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
30 explicit SingleTouchInputMapper(InputDeviceContext& deviceContext,
DSwitchInputMapper.h26 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
41 explicit SwitchInputMapper(InputDeviceContext& deviceContext,
DInputMapper.h32 std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext, in createInputMapper() argument
35 std::unique_ptr<T> mapper(new T(deviceContext, readerConfig, args...)); in createInputMapper()
61 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
126 explicit InputMapper(InputDeviceContext& deviceContext,
DMultiTouchInputMapper.h27 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
30 explicit MultiTouchInputMapper(InputDeviceContext& deviceContext,
DExternalStylusInputMapper.h30 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
51 explicit ExternalStylusInputMapper(InputDeviceContext& deviceContext,
DRotaryEncoderInputMapper.h29 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
50 explicit RotaryEncoderInputMapper(InputDeviceContext& deviceContext,
DSwitchInputMapper.cpp23 SwitchInputMapper::SwitchInputMapper(InputDeviceContext& deviceContext, in SwitchInputMapper() argument
25 : InputMapper(deviceContext, readerConfig), mSwitchValues(0), mUpdatedSwitchMask(0) {} in SwitchInputMapper()
DVibratorInputMapper.h26 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
51 explicit VibratorInputMapper(InputDeviceContext& deviceContext,
DTouchpadInputMapper.h45 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
69 explicit TouchpadInputMapper(InputDeviceContext& deviceContext,
DSingleTouchInputMapper.cpp21 SingleTouchInputMapper::SingleTouchInputMapper(InputDeviceContext& deviceContext, in SingleTouchInputMapper() argument
23 : TouchInputMapper(deviceContext, readerConfig) {} in SingleTouchInputMapper()
DJoystickInputMapper.h26 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
92 explicit JoystickInputMapper(InputDeviceContext& deviceContext,
DKeyboardInputMapper.h27 friend std::unique_ptr<T> createInputMapper(InputDeviceContext& deviceContext,
86 KeyboardInputMapper(InputDeviceContext& deviceContext,
DInputMapper.cpp28 InputMapper::InputMapper(InputDeviceContext& deviceContext, in InputMapper() argument
30 : mDeviceContext(deviceContext) {} in InputMapper()
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DHardwareStateConverter.cpp29 HardwareStateConverter::HardwareStateConverter(const InputDeviceContext& deviceContext, in HardwareStateConverter() argument
31 : mDeviceContext(deviceContext), in HardwareStateConverter()
33 mTouchButtonAccumulator(deviceContext) { in HardwareStateConverter()

12