最終更新:2015-09-01 (火) 17:11:00 (3159d)  

EventHub
Top / EventHub

reads raw events from the evdev driver.

使われどころ

コンストラクタ

ソースコード

Android 4.0Android 4.4

Android 5.0

関数

EventHub::openDeviceLocked

  • デバイスのオープン
    status_t EventHub::openDeviceLocked(const char *devicePath);
    "New device: id=%d, fd=%d, path='%s', name='%s', classes=0x%x, configuration='%s', keyLayout='%s', keyCharacterMap='%s', builtinKeyboard=%s"

EventHub::getEvents

  • 呼び出し元:InputReader::loopOnce()
    /*
     * Wait for events to become available and returns them.
     * After returning, the EventHub holds onto a wake lock until the next call to getEvent.
     * This ensures that the device will not go to sleep while the event is being processed.
     * If the device needs to remain awake longer than that, then the caller is responsible
     * for taking care of it (say, by poking the power manager user activity timer).
     *
     * The timeout is advisory only.  If the device is asleep, it will not wake just to
     * service the timeout.
     *
     * Returns the number of events obtained, or 0 if the timeout expired.
     */

EventHub::loadConfigurationLocked

  • .idcの読み込み
    void EventHub::loadConfigurationLocked(Device* device) 
  • 呼び出し元:EventHub::openDeviceLocked
  • 見つからない時
    "No input device configuration file found for device '%s'."

dumpsys

関連