Home
last modified time | relevance | path

Searched refs:InputDeviceNode (Results 1 – 13 of 13) sorted by relevance

/aosp12/hardware/libhardware/tests/input/evdev/
H A DInputHub_test.cpp42 using DeviceCbFunc = std::function<void(const std::shared_ptr<InputDeviceNode>&)>;
45 static const DeviceCbFunc kNoopDeviceCb = [](const std::shared_ptr<InputDeviceNode>&){}; in __anon58c117c50202() argument
61 virtual void onDeviceAdded(const std::shared_ptr<InputDeviceNode>& node) override { in onDeviceAdded()
64 virtual void onDeviceRemoved(const std::shared_ptr<InputDeviceNode>& node) override { in onDeviceRemoved()
101 [&](const std::shared_ptr<InputDeviceNode>& node) { in TEST_F()
133 std::shared_ptr<InputDeviceNode> tempNode; in TEST_F()
136 [&](const std::shared_ptr<InputDeviceNode>& node) { in TEST_F()
140 [&](const std::shared_ptr<InputDeviceNode>& node) { in TEST_F()
182 [&](const std::shared_ptr<InputDeviceNode>& node, InputEvent& event, in TEST_F()
212 [&](const std::shared_ptr<InputDeviceNode>&, InputEvent&, nsecs_t) { in TEST_F() argument
[all …]
H A DInputMocks.h30 class MockInputDeviceNode : public InputDeviceNode {
/aosp12/hardware/libhardware/modules/input/evdev/
H A DInputHub.h57 class InputDeviceNode {
111 InputDeviceNode() = default;
112 virtual ~InputDeviceNode() = default;
118 virtual void onInputEvent(const std::shared_ptr<InputDeviceNode>& node, InputEvent& event,
120 virtual void onDeviceAdded(const std::shared_ptr<InputDeviceNode>& node) = 0;
121 virtual void onDeviceRemoved(const std::shared_ptr<InputDeviceNode>& node) = 0;
172 std::shared_ptr<InputDeviceNode> openNode(const std::string& path);
173 status_t closeNode(const InputDeviceNode* node);
175 std::shared_ptr<InputDeviceNode> findNodeByPath(const std::string& path);
223 std::unordered_map<int, std::shared_ptr<InputDeviceNode>> mDeviceNodes;
H A DInputDeviceManager.h43 virtual void onInputEvent(const std::shared_ptr<InputDeviceNode>& node, InputEvent& event,
45 virtual void onDeviceAdded(const std::shared_ptr<InputDeviceNode>& node) override;
46 virtual void onDeviceRemoved(const std::shared_ptr<InputDeviceNode>& node) override;
54 DeviceMap<InputDeviceNode, InputDeviceInterface> mDevices;
H A DInputDeviceManager.cpp28 void InputDeviceManager::onInputEvent(const std::shared_ptr<InputDeviceNode>& node, InputEvent& eve… in onInputEvent()
37 void InputDeviceManager::onDeviceAdded(const std::shared_ptr<InputDeviceNode>& node) { in onDeviceAdded()
41 void InputDeviceManager::onDeviceRemoved(const std::shared_ptr<InputDeviceNode>& node) { in onDeviceRemoved()
H A DInputMapper.h24 class InputDeviceNode; variable
48 virtual bool configureInputReport(InputDeviceNode* devNode, InputReportDefinition* report) { in configureInputReport()
58 virtual bool configureOutputReport(InputDeviceNode* devNode, InputReportDefinition* report) { in configureOutputReport()
H A DInputDevice.h33 class InputDeviceNode; variable
58 EvdevDevice(InputHostInterface* host, const std::shared_ptr<InputDeviceNode>& node);
69 std::shared_ptr<InputDeviceNode> mDeviceNode;
H A DInputDevice.cpp43 static InputBus getInputBus(const std::shared_ptr<InputDeviceNode>& node) { in getInputBus()
96 EvdevDevice::EvdevDevice(InputHostInterface* host, const std::shared_ptr<InputDeviceNode>& node) : in EvdevDevice()
H A DSwitchInputMapper.h34 virtual bool configureInputReport(InputDeviceNode* devNode,
H A DMouseInputMapper.h33 virtual bool configureInputReport(InputDeviceNode* devNode,
H A DInputHub.cpp69 class EvdevDeviceNode : public InputDeviceNode {
554 std::shared_ptr<InputDeviceNode> deviceNode; in poll()
740 std::shared_ptr<InputDeviceNode> InputHub::openNode(const std::string& path) { in openNode()
783 status_t InputHub::closeNode(const InputDeviceNode* node) { in closeNode()
803 std::shared_ptr<InputDeviceNode> InputHub::findNodeByPath(const std::string& path) { in findNodeByPath()
H A DSwitchInputMapper.cpp84 bool SwitchInputMapper::configureInputReport(InputDeviceNode* devNode, in configureInputReport()
H A DMouseInputMapper.cpp51 bool MouseInputMapper::configureInputReport(InputDeviceNode* devNode, in configureInputReport()