Lines Matching refs:EventHub
34 #define LOG_TAG "EventHub"
38 #include "EventHub.h"
145 // --- EventHub::Device ---
147 EventHub::Device::Device(int fd, int32_t id, const String8& path,
163 EventHub::Device::~Device() {
169 void EventHub::Device::close() {
177 // --- EventHub ---
179 const uint32_t EventHub::EPOLL_ID_INOTIFY;
180 const uint32_t EventHub::EPOLL_ID_WAKE;
181 const int EventHub::EPOLL_SIZE_HINT;
182 const int EventHub::EPOLL_MAX_EVENTS;
184 EventHub::EventHub(void) :
233 EventHub::~EventHub(void) {
250 InputDeviceIdentifier EventHub::getDeviceIdentifier(int32_t deviceId) const {
257 uint32_t EventHub::getDeviceClasses(int32_t deviceId) const {
264 int32_t EventHub::getDeviceControllerNumber(int32_t deviceId) const {
271 void EventHub::getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const {
281 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis,
311 bool EventHub::hasRelativeAxis(int32_t deviceId, int axis) const {
323 bool EventHub::hasInputProperty(int32_t deviceId, int property) const {
335 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const {
351 int32_t EventHub::getKeyCodeState(int32_t deviceId, int32_t keyCode) const {
375 int32_t EventHub::getSwitchState(int32_t deviceId, int32_t sw) const {
391 status_t EventHub::getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const {
413 bool EventHub::markSupportedKeyCodes(int32_t deviceId, size_t numCodes,
441 status_t EventHub::mapKey(int32_t deviceId,
484 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const {
498 void EventHub::setExcludedDevices(const Vector<String8>& devices) {
504 bool EventHub::hasScanCode(int32_t deviceId, int32_t scanCode) const {
515 bool EventHub
527 void EventHub::setLedState(int32_t deviceId, int32_t led, bool on) {
533 void EventHub::setLedStateLocked(Device* device, int32_t led, bool on) {
550 void EventHub::getVirtualKeyDefinitions(int32_t deviceId,
561 sp<KeyCharacterMap> EventHub::getKeyCharacterMap(int32_t deviceId) const {
570 bool EventHub::setKeyboardLayoutOverlay(int32_t deviceId,
614 void EventHub::assignDescriptorLocked(InputDeviceIdentifier& identifier) {
636 void EventHub::vibrate(int32_t deviceId, nsecs_t duration) {
670 void EventHub::cancelVibrate(int32_t deviceId) {
692 EventHub::Device* EventHub::getDeviceByDescriptorLocked(String8& descriptor) const {
703 EventHub::Device* EventHub::getDeviceLocked(int32_t deviceId) const {
711 EventHub::Device* EventHub::getDeviceByPathLocked(const char* devicePath) const {
721 size_t EventHub::getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) {
981 // when this happens, the EventHub holds onto its own user wake lock while the client
1023 void EventHub::wake() {
1036 void EventHub::scanDevicesLocked() {
1068 status_t EventHub::openDeviceLocked(const char *devicePath) {
1400 void EventHub::createVirtualKeyboardLocked() {
1415 void EventHub::addDeviceLocked(Device* device) {
1421 void EventHub::loadConfigurationLocked(Device* device) {
1438 status_t EventHub::loadVirtualKeyMapLocked(Device* device) {
1449 status_t EventHub::loadKeyMapLocked(Device* device) {
1453 bool EventHub::isExternalDeviceLocked(Device* device) {
1463 bool EventHub::deviceHasMicLocked(Device* device) {
1473 int32_t EventHub::getNextControllerNumberLocked(Device* device) {
1484 void EventHub::releaseControllerNumberLocked(Device* device) {
1493 void EventHub::setLedForController(Device* device) {
1499 bool EventHub::hasKeycodeLocked(Device* device, int keycode) const {
1517 status_t EventHub::mapLed(Device* device, int32_t led, int32_t* outScanCode) const {
1532 status_t EventHub::closeDeviceByPathLocked(const char *devicePath) {
1542 void EventHub::closeAllDevicesLocked() {
1548 void EventHub::closeDeviceLocked(Device* device) {
1600 status_t EventHub::readNotifyLocked() {
1609 ALOGV("EventHub::readNotify nfd: %d\n", mINotifyFd);
1642 status_t EventHub::scanDirLocked(const char *dirname)
1666 void EventHub::requestReopenDevices() {
1673 void EventHub::dump(String8& dump) {
1714 void EventHub::monitor() {