Lines Matching refs:FakeEventHub

27 const std::string FakeEventHub::BATTERY_DEVPATH = "/sys/devices/mydevice/power_supply/mybattery";
29 FakeEventHub::~FakeEventHub() { in ~FakeEventHub()
35 void FakeEventHub::addDevice(int32_t deviceId, const std::string& name, in addDevice()
45 void FakeEventHub::removeDevice(int32_t deviceId) { in removeDevice()
52 bool FakeEventHub::isDeviceEnabled(int32_t deviceId) const { in isDeviceEnabled()
61 status_t FakeEventHub::enableDevice(int32_t deviceId) { in enableDevice()
76 status_t FakeEventHub::disableDevice(int32_t deviceId) { in disableDevice()
89 void FakeEventHub::finishDeviceScan() { in finishDeviceScan()
93 void FakeEventHub::addConfigurationProperty(int32_t deviceId, const char* key, const char* value) { in addConfigurationProperty()
97 void FakeEventHub::addConfigurationMap(int32_t deviceId, const PropertyMap* configuration) { in addConfigurationMap()
101 void FakeEventHub::addAbsoluteAxis(int32_t deviceId, int axis, int32_t minValue, int32_t maxValue, in addAbsoluteAxis()
115 void FakeEventHub::addRelativeAxis(int32_t deviceId, int32_t axis) { in addRelativeAxis()
119 void FakeEventHub::setKeyCodeState(int32_t deviceId, int32_t keyCode, int32_t state) { in setKeyCodeState()
123 void FakeEventHub::setRawLayoutInfo(int32_t deviceId, RawLayoutInfo info) { in setRawLayoutInfo()
127 void FakeEventHub::setScanCodeState(int32_t deviceId, int32_t scanCode, int32_t state) { in setScanCodeState()
131 void FakeEventHub::setSwitchState(int32_t deviceId, int32_t switchCode, int32_t state) { in setSwitchState()
135 void FakeEventHub::setAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t value) { in setAbsoluteAxisValue()
139 void FakeEventHub::addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t keyCode, in addKey()
153 void FakeEventHub::addKeyCodeMapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) { in addKeyCodeMapping()
157 void FakeEventHub::addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping()
162 void FakeEventHub::addLed(int32_t deviceId, int32_t led, bool initialState) { in addLed()
166 void FakeEventHub::addSensorAxis(int32_t deviceId, int32_t absCode, in addSensorAxis()
174 void FakeEventHub::setMscEvent(int32_t deviceId, int32_t mscEvent) { in setMscEvent()
180 void FakeEventHub::addRawLightInfo(int32_t rawId, RawLightInfo&& info) { in addRawLightInfo()
184 void FakeEventHub::fakeLightBrightness(int32_t rawId, int32_t brightness) { in fakeLightBrightness()
188 void FakeEventHub::fakeLightIntensities(int32_t rawId, in fakeLightIntensities()
193 bool FakeEventHub::getLedState(int32_t deviceId, int32_t led) { in getLedState()
197 std::vector<std::string>& FakeEventHub::getExcludedDevices() { in getExcludedDevices()
201 void FakeEventHub::addVirtualKeyDefinition(int32_t deviceId, in addVirtualKeyDefinition()
206 void FakeEventHub::enqueueEvent(nsecs_t when, nsecs_t readTime, int32_t deviceId, int32_t type, in enqueueEvent()
223 void FakeEventHub::setVideoFrames( in setVideoFrames()
228 void FakeEventHub::assertQueueIsEmpty() { in assertQueueIsEmpty()
239 FakeEventHub::Device* FakeEventHub::getDevice(int32_t deviceId) const { in getDevice()
244 ftl::Flags<InputDeviceClass> FakeEventHub::getDeviceClasses(int32_t deviceId) const { in getDeviceClasses()
249 InputDeviceIdentifier FakeEventHub::getDeviceIdentifier(int32_t deviceId) const { in getDeviceIdentifier()
254 int32_t FakeEventHub::getDeviceControllerNumber(int32_t) const { in getDeviceControllerNumber()
258 std::optional<PropertyMap> FakeEventHub::getConfiguration(int32_t deviceId) const { in getConfiguration()
266 status_t FakeEventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, in getAbsoluteAxisInfo()
280 bool FakeEventHub::hasRelativeAxis(int32_t deviceId, int axis) const { in hasRelativeAxis()
288 bool FakeEventHub::hasInputProperty(int32_t, int) const { in hasInputProperty()
292 bool FakeEventHub::hasMscEvent(int32_t deviceId, int mscEvent) const { in hasMscEvent()
300 status_t FakeEventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in mapKey()
323 const FakeEventHub::KeyInfo* FakeEventHub::getKey(Device* device, int32_t scanCode, in getKey()
340 status_t FakeEventHub::mapAxis(int32_t, int32_t, AxisInfo*) const { in mapAxis()
344 base::Result<std::pair<InputDeviceSensorType, int32_t>> FakeEventHub::mapSensor( in mapSensor()
358 void FakeEventHub::setExcludedDevices(const std::vector<std::string>& devices) { in setExcludedDevices()
362 std::vector<RawEvent> FakeEventHub::getEvents(int) { in getEvents()
372 std::vector<TouchVideoFrame> FakeEventHub::getVideoFrames(int32_t deviceId) { in getVideoFrames()
382 int32_t FakeEventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { in getScanCodeState()
393 std::optional<RawLayoutInfo> FakeEventHub::getRawLayoutInfo(int32_t deviceId) const { in getRawLayoutInfo()
398 int32_t FakeEventHub::getKeyCodeState(int32_t deviceId, int32_t keyCode) const { in getKeyCodeState()
409 int32_t FakeEventHub::getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState()
420 status_t FakeEventHub::getAbsoluteAxisValue(int32_t deviceId, int32_t axis, in getAbsoluteAxisValue()
434 void FakeEventHub::setMtSlotValues(int32_t deviceId, int32_t axis, in setMtSlotValues()
443 base::Result<std::vector<int32_t>> FakeEventHub::getMtSlotValues(int32_t deviceId, int32_t axis, in getMtSlotValues()
466 int32_t FakeEventHub::getKeyCodeForKeyLocation(int32_t deviceId, int32_t locationKeyCode) const { in getKeyCodeForKeyLocation()
476 bool FakeEventHub::markSupportedKeyCodes(int32_t deviceId, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes()
497 bool FakeEventHub::hasScanCode(int32_t deviceId, int32_t scanCode) const { in hasScanCode()
506 bool FakeEventHub::hasKeyCode(int32_t deviceId, int32_t keyCode) const { in hasKeyCode()
524 bool FakeEventHub::hasLed(int32_t deviceId, int32_t led) const { in hasLed()
529 void FakeEventHub::setLedState(int32_t deviceId, int32_t led, bool on) { in setLedState()
543 void FakeEventHub::getVirtualKeyDefinitions( in getVirtualKeyDefinitions()
553 const std::shared_ptr<KeyCharacterMap> FakeEventHub::getKeyCharacterMap(int32_t) const { in getKeyCharacterMap()
557 bool FakeEventHub::setKeyboardLayoutOverlay(int32_t, std::shared_ptr<KeyCharacterMap>) { in setKeyboardLayoutOverlay()
561 std::vector<int32_t> FakeEventHub::getVibratorIds(int32_t deviceId) const { in getVibratorIds()
565 std::optional<int32_t> FakeEventHub::getBatteryCapacity(int32_t, int32_t) const { in getBatteryCapacity()
569 std::optional<int32_t> FakeEventHub::getBatteryStatus(int32_t, int32_t) const { in getBatteryStatus()
573 std::vector<int32_t> FakeEventHub::getRawBatteryIds(int32_t deviceId) const { in getRawBatteryIds()
577 std::optional<RawBatteryInfo> FakeEventHub::getRawBatteryInfo(int32_t deviceId, in getRawBatteryInfo()
587 std::vector<int32_t> FakeEventHub::getRawLightIds(int32_t deviceId) const { in getRawLightIds()
595 std::optional<RawLightInfo> FakeEventHub::getRawLightInfo(int32_t deviceId, int32_t lightId) const { in getRawLightInfo()
603 void FakeEventHub::setLightBrightness(int32_t deviceId, int32_t lightId, int32_t brightness) { in setLightBrightness()
607 void FakeEventHub::setLightIntensities(int32_t deviceId, int32_t lightId, in setLightIntensities()
612 std::optional<int32_t> FakeEventHub::getLightBrightness(int32_t deviceId, int32_t lightId) const { in getLightBrightness()
620 std::optional<std::unordered_map<LightColor, int32_t>> FakeEventHub::getLightIntensities( in getLightIntensities()
629 void FakeEventHub::setSysfsRootPath(int32_t deviceId, std::string sysfsRootPath) const { in setSysfsRootPath()
637 void FakeEventHub::sysfsNodeChanged(const std::string& sysfsNodePath) { in sysfsNodeChanged()