Home
last modified time | relevance | path

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

12

/frameworks/native/services/inputflinger/reader/mapper/
DInputMapper.cpp31 InputMapper::InputMapper(InputDeviceContext& deviceContext, in InputMapper() function in android::InputMapper
35 InputMapper::~InputMapper() {} in ~InputMapper()
37 void InputMapper::populateDeviceInfo(InputDeviceInfo& info) { in populateDeviceInfo()
41 void InputMapper::dump(std::string& dump) {} in dump()
43 std::list<NotifyArgs> InputMapper::reconfigure(nsecs_t when, const InputReaderConfiguration& config, in reconfigure()
48 std::list<NotifyArgs> InputMapper::reset(nsecs_t when) { in reset()
52 std::list<NotifyArgs> InputMapper::timeoutExpired(nsecs_t when) { in timeoutExpired()
56 int32_t InputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState()
60 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState()
64 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.cpp46 : InputMapper(deviceContext, readerConfig), in RotaryEncoderInputMapper()
60 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
106 std::list<NotifyArgs> out = InputMapper::reconfigure(when, config, changes); in reconfigure()
141 return InputMapper::reset(when); in reset()
DInputMapper.h56 class InputMapper {
67 virtual ~InputMapper();
128 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()
258 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()
192 return InputMapper::reset(when); in reset()
DExternalStylusInputMapper.h29 class ExternalStylusInputMapper : public InputMapper {
DSwitchInputMapper.cpp25 : InputMapper(deviceContext, readerConfig), mSwitchValues(0), mUpdatedSwitchMask(0) {} in SwitchInputMapper()
DKeyboardInputMapper.cpp101 : InputMapper(deviceContext, readerConfig), mMapperSource(source) {} in KeyboardInputMapper()
133 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
176 std::list<NotifyArgs> out = InputMapper::reconfigure(when, config, changes); in reconfigure()
237 out += InputMapper::reset(when); in reset()
DVibratorInputMapper.h23 class VibratorInputMapper : public InputMapper {
DRotaryEncoderInputMapper.h27 class RotaryEncoderInputMapper : public InputMapper {
DCursorInputMapper.cpp77 : InputMapper(deviceContext, readerConfig), in CursorInputMapper()
85 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
140 std::list<NotifyArgs> out = InputMapper::reconfigure(when, readerConfig, changes); in reconfigure()
215 return InputMapper::reset(when); in reset()
DTouchpadInputMapper.cpp246 : InputMapper(deviceContext, readerConfig), in TouchpadInputMapper()
294 InputMapper::populateDeviceInfo(info); in populateDeviceInfo()
419 out += InputMapper::reset(when); in reset()
DTouchpadInputMapper.h43 class TouchpadInputMapper : public InputMapper {
DCursorInputMapper.h47 class CursorInputMapper : public InputMapper {
DJoystickInputMapper.h23 class JoystickInputMapper : public InputMapper {
DKeyboardInputMapper.h26 class KeyboardInputMapper : public InputMapper {
DSensorInputMapper.h28 class SensorInputMapper : public InputMapper {
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp168 for_each_mapper([&dump](InputMapper& mapper) { mapper.dump(dump); }); in dump()
179 std::vector<std::unique_ptr<InputMapper>> mappers; in addEmptyEventHubDevice()
363 for_each_mapper([this, when, &readerConfig, changes, &out](InputMapper& mapper) { in configureInternal()
392 for_each_mapper([&](InputMapper& mapper) { out += mapper.reset(when); }); in reset()
429 for_each_mapper_in_subdevice(rawEvent->deviceId, [&](InputMapper& mapper) { in process()
456 for_each_mapper([&](InputMapper& mapper) { out += mapper.timeoutExpired(when); }); in timeoutExpired()
462 for_each_mapper([&](InputMapper& mapper) { out += mapper.updateExternalStylusState(state); }); in updateExternalStylusState()
475 [&outDeviceInfo](InputMapper& mapper) { mapper.populateDeviceInfo(outDeviceInfo); }); in getDeviceInfo()
484 return getState(sourceMask, keyCode, &InputMapper::getKeyCodeState); in getKeyCodeState()
488 return getState(sourceMask, scanCode, &InputMapper::getScanCodeState); in getScanCodeState()
[all …]
/frameworks/native/services/inputflinger/tests/
DInputMapperTest.h71 std::unique_ptr<InputMapper> mMapper;
135 std::list<NotifyArgs> process(InputMapper& mapper, nsecs_t when, nsecs_t readTime, int32_t type,
137 void resetMapper(InputMapper& mapper, nsecs_t when);
139 std::list<NotifyArgs> handleTimeout(InputMapper& mapper, nsecs_t when);
DInputMapperTest.cpp200 std::list<NotifyArgs> InputMapperTest::process(InputMapper& mapper, nsecs_t when, nsecs_t readTime, in process()
218 void InputMapperTest::resetMapper(InputMapper& mapper, nsecs_t when) { in resetMapper()
227 std::list<NotifyArgs> InputMapperTest::handleTimeout(InputMapper& mapper, nsecs_t when) { in handleTimeout()
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h39 class InputMapper; variable
195 using MapperVector = std::vector<std::unique_ptr<InputMapper>>;
216 typedef int32_t (InputMapper::*GetStateFunc)(uint32_t sourceMask, int32_t code);
219 std::vector<std::unique_ptr<InputMapper>> createMappers(
237 inline void for_each_mapper(std::function<void(InputMapper&)> f) { in for_each_mapper()
249 std::function<void(InputMapper&)> f) { in for_each_mapper_in_subdevice()
273 std::function<std::optional<T>(InputMapper&)> f) const { in first_in_mappers()
DInputReaderContext.h31 class InputMapper; variable

12