Lines Matching refs:reader
51 reader = std::make_unique<InputReader>(fuzzEventHub, fuzzPolicy, fuzzListener); in FuzzInputReader()
54 void dump(std::string& dump) { reader->dump(dump); } in dump()
56 void monitor() { reader->monitor(); } in monitor()
58 status_t start() { return reader->start(); } in start()
60 status_t stop() { return reader->stop(); } in stop()
62 std::vector<InputDeviceInfo> getInputDevices() const { return reader->getInputDevices(); } in getInputDevices()
65 return reader->getScanCodeState(deviceId, sourceMask, scanCode); in getScanCodeState()
69 return reader->getKeyCodeState(deviceId, sourceMask, keyCode); in getKeyCodeState()
73 return reader->getSwitchState(deviceId, sourceMask, sw); in getSwitchState()
76 void toggleCapsLockState(int32_t deviceId) { reader->toggleCapsLockState(deviceId); } in toggleCapsLockState()
80 return reader->hasKeys(deviceId, sourceMask, keyCodes, outFlags); in hasKeys()
84 reader->requestRefreshConfiguration(changes); in requestRefreshConfiguration()
89 reader->vibrate(deviceId, sequence, repeat, token); in vibrate()
92 void cancelVibrate(int32_t deviceId, int32_t token) { reader->cancelVibrate(deviceId, token); } in cancelVibrate()
94 bool isVibrating(int32_t deviceId) { return reader->isVibrating(deviceId); } in isVibrating()
97 return reader->getVibratorIds(deviceId); in getVibratorIds()
101 return reader->getBatteryCapacity(deviceId); in getBatteryCapacity()
105 return reader->getBatteryStatus(deviceId); in getBatteryStatus()
109 return reader->getBatteryDevicePath(deviceId); in getBatteryDevicePath()
113 return reader->getLights(deviceId); in getLights()
117 return reader->getSensors(deviceId); in getSensors()
121 return reader->canDispatchToDisplay(deviceId, displayId); in canDispatchToDisplay()
127 return reader->enableSensor(deviceId, sensorType, samplingPeriod, maxBatchReportLatency); in enableSensor()
131 return reader->disableSensor(deviceId, sensorType); in disableSensor()
135 return reader->flushSensor(deviceId, sensorType); in flushSensor()
139 return reader->setLightColor(deviceId, lightId, color); in setLightColor()
143 return reader->setLightPlayerId(deviceId, lightId, playerId); in setLightPlayerId()
147 return reader->getLightColor(deviceId, lightId); in getLightColor()
151 return reader->getLightPlayerId(deviceId, lightId); in getLightPlayerId()
155 reader->addKeyRemapping(deviceId, fromKeyCode, toKeyCode); in addKeyRemapping()
159 return reader->getKeyCodeForKeyLocation(deviceId, locationKeyCode); in getKeyCodeForKeyLocation()
163 return reader->getBluetoothAddress(deviceId); in getBluetoothAddress()
167 reader->sysfsNodeChanged(sysfsNodePath); in sysfsNodeChanged()
170 DeviceId getLastUsedInputDeviceId() override { return reader->getLastUsedInputDeviceId(); } in getLastUsedInputDeviceId()
173 std::unique_ptr<InputReaderInterface> reader; member in android::FuzzInputReader
183 std::unique_ptr<FuzzInputReader> reader = in LLVMFuzzerTestOneInput() local
193 reader->vibrate(fdp->ConsumeIntegral<int32_t>(), pattern, in LLVMFuzzerTestOneInput()
196 reader->start(); in LLVMFuzzerTestOneInput()
203 reader->dump(dump); in LLVMFuzzerTestOneInput()
205 [&]() -> void { reader->monitor(); }, in LLVMFuzzerTestOneInput()
206 [&]() -> void { reader->getInputDevices(); }, in LLVMFuzzerTestOneInput()
208 reader->getScanCodeState(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
213 reader->getKeyCodeState(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
218 reader->getSwitchState(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
222 [&]() -> void { reader->toggleCapsLockState(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
230 reader->hasKeys(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
234 reader->requestRefreshConfiguration( in LLVMFuzzerTestOneInput()
238 reader->cancelVibrate(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
242 reader->canDispatchToDisplay(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
247 reader->getKeyCodeForKeyLocation(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
250 [&]() -> void { reader->getBatteryCapacity(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
251 [&]() -> void { reader->getBatteryStatus(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
252 [&]() -> void { reader->getBatteryDevicePath(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
253 [&]() -> void { reader->getLights(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
254 [&]() -> void { reader->getSensors(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
256 reader->getLightPlayerId(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
260 reader->getLightColor(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
264 reader->setLightPlayerId(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
269 reader->setLightColor(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
274 reader->flushSensor(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
279 reader->disableSensor(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
284 reader->enableSensor(fdp->ConsumeIntegral<int32_t>(), in LLVMFuzzerTestOneInput()
290 [&]() -> void { reader->getBluetoothAddress(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
294 reader->stop(); in LLVMFuzzerTestOneInput()