最終更新:2016-07-05 (火) 18:21:24 (2824d)
EventHub::getEvents
Top / EventHub::getEvents
/* * 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. */
呼び出し元
コード
メモ
- for (;;) で無限ループ