Home
last modified time | relevance | path

Searched refs:InputMapper (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/native/services/inputflinger/reader/mapper/
DInputMapper.cpp30 InputMapper::InputMapper(InputDeviceContext& deviceContext, in InputMapper() function in android::InputMapper
34 InputMapper::~InputMapper() {} in ~InputMapper()
36 void InputMapper::populateDeviceInfo(InputDeviceInfo& info) { in populateDeviceInfo()
40 void InputMapper::dump(std::string& dump) {} in dump()
42 std::list<NotifyArgs> InputMapper::reconfigure(nsecs_t when, const InputReaderConfiguration& config, in reconfigure()
47 std::list<NotifyArgs> InputMapper::reset(nsecs_t when) { in reset()
51 std::list<NotifyArgs> InputMapper::timeoutExpired(nsecs_t when) { in timeoutExpired()
55 int32_t InputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState()
59 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState()
63 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState()
[all …]
DExternalStylusInputMapper.cpp28 : InputMapper(deviceContext, readerConfig), mTouchButtonAccumulator(deviceContext) {} in ExternalStylusInputMapper()
35 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
61 return InputMapper::reset(when); in reset()
DRotaryEncoderInputMapper.cpp32 : InputMapper(deviceContext, readerConfig), mOrientation(ui::ROTATION_0) { in RotaryEncoderInputMapper()
43 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
72 std::list<NotifyArgs> out = InputMapper::reconfigure(when, config, changes); in reconfigure()
101 return InputMapper::reset(when); in reset()
DInputMapper.h54 class InputMapper {
65 virtual ~InputMapper();
126 explicit InputMapper(InputDeviceContext& deviceContext,
DVibratorInputMapper.cpp25 : InputMapper(deviceContext, readerConfig), mVibrating(false), mSequence(0) {} in VibratorInputMapper()
34 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
DSwitchInputMapper.h23 class SwitchInputMapper : public InputMapper {
DJoystickInputMapper.cpp25 : InputMapper(deviceContext, readerConfig) {} in JoystickInputMapper()
34 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
110 std::list<NotifyArgs> out = InputMapper::reconfigure(when, config, changes); in reconfigure()
259 return InputMapper::reset(when); in reset()
DSensorInputMapper.cpp57 : InputMapper(deviceContext, readerConfig) {} in SensorInputMapper()
78 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
123 std::list<NotifyArgs> out = InputMapper::reconfigure(when, config, changes); in reconfigure()
193 return InputMapper::reset(when); in reset()
DExternalStylusInputMapper.h27 class ExternalStylusInputMapper : public InputMapper {
DRotaryEncoderInputMapper.h27 class RotaryEncoderInputMapper : public InputMapper {
DSwitchInputMapper.cpp25 : InputMapper(deviceContext, readerConfig), mSwitchValues(0), mUpdatedSwitchMask(0) {} in SwitchInputMapper()
DKeyboardInputMapper.cpp101 : InputMapper(deviceContext, readerConfig), mSource(source) {} in KeyboardInputMapper()
133 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
174 std::list<NotifyArgs> out = InputMapper::reconfigure(when, config, changes); in reconfigure()
235 out += InputMapper::reset(when); in reset()
DVibratorInputMapper.h23 class VibratorInputMapper : public InputMapper {
DCursorInputMapper.cpp79 : InputMapper(deviceContext, readerConfig), in CursorInputMapper()
88 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
143 std::list<NotifyArgs> out = InputMapper::reconfigure(when, readerConfig, changes); in reconfigure()
215 return InputMapper::reset(when); in reset()
DTouchpadInputMapper.cpp236 : InputMapper(deviceContext, readerConfig), in TouchpadInputMapper()
284 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
406 out += InputMapper::reset(when); in reset()
DTouchpadInputMapper.h43 class TouchpadInputMapper : public InputMapper {
DCursorInputMapper.h50 class CursorInputMapper : public InputMapper {
DJoystickInputMapper.h23 class JoystickInputMapper : public InputMapper {
DKeyboardInputMapper.h24 class KeyboardInputMapper : public InputMapper {
DSensorInputMapper.h28 class SensorInputMapper : public InputMapper {
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp166 for_each_mapper([&dump](InputMapper& mapper) { mapper.dump(dump); }); in dump()
177 std::vector<std::unique_ptr<InputMapper>> mappers; in addEmptyEventHubDevice()
357 for_each_mapper([this, when, &readerConfig, changes, &out](InputMapper& mapper) { in configureInternal()
374 for_each_mapper([&](InputMapper& mapper) { out += mapper.reset(when); }); in reset()
411 for_each_mapper_in_subdevice(rawEvent->deviceId, [&](InputMapper& mapper) { in process()
438 for_each_mapper([&](InputMapper& mapper) { out += mapper.timeoutExpired(when); }); in timeoutExpired()
444 for_each_mapper([&](InputMapper& mapper) { out += mapper.updateExternalStylusState(state); }); in updateExternalStylusState()
457 [&outDeviceInfo](InputMapper& mapper) { mapper.populateDeviceInfo(outDeviceInfo); }); in getDeviceInfo()
466 return getState(sourceMask, keyCode, &InputMapper::getKeyCodeState); in getKeyCodeState()
470 return getState(sourceMask, scanCode, &InputMapper::getScanCodeState); in getScanCodeState()
[all …]
/frameworks/native/services/inputflinger/tests/
DInputMapperTest.h73 std::unique_ptr<InputMapper> mMapper;
136 std::list<NotifyArgs> process(InputMapper& mapper, nsecs_t when, nsecs_t readTime, int32_t type,
138 void resetMapper(InputMapper& mapper, nsecs_t when);
140 std::list<NotifyArgs> handleTimeout(InputMapper& mapper, nsecs_t when);
DInputMapperTest.cpp189 std::list<NotifyArgs> InputMapperTest::process(InputMapper& mapper, nsecs_t when, nsecs_t readTime, in process()
207 void InputMapperTest::resetMapper(InputMapper& mapper, nsecs_t when) { in resetMapper()
216 std::list<NotifyArgs> InputMapperTest::handleTimeout(InputMapper& mapper, nsecs_t when) { in handleTimeout()
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h39 class InputMapper; variable
193 using MapperVector = std::vector<std::unique_ptr<InputMapper>>;
213 typedef int32_t (InputMapper::*GetStateFunc)(uint32_t sourceMask, int32_t code);
216 std::vector<std::unique_ptr<InputMapper>> createMappers(
234 inline void for_each_mapper(std::function<void(InputMapper&)> f) { in for_each_mapper()
246 std::function<void(InputMapper&)> f) { in for_each_mapper_in_subdevice()
270 std::function<std::optional<T>(InputMapper&)> f) const { in first_in_mappers()
DInputReaderContext.h30 class InputMapper; variable

12