void PlatformEventController::oneShotCallback(TimerBase* timer) { DCHECK_EQ(timer, &m_timer); ASSERT(hasLastData()); ASSERT(!m_timer.isActive()); didUpdateData(); }
void DeviceEventControllerBase::oneShotCallback(Timer<DeviceEventControllerBase>* timer) { ASSERT_UNUSED(timer, timer == &m_timer); ASSERT(hasLastData()); ASSERT(!m_timer.isActive()); didUpdateData(); }
void DeviceSensorEventController::fireDeviceEvent(Timer<DeviceSensorEventController>* timer) { ASSERT_UNUSED(timer, timer == &m_timer); ASSERT(hasLastData()); m_timer.stop(); dispatchDeviceEvent(getLastEvent()); }
void PlatformEventController::oneShotCallback(Timer<PlatformEventController>* timer) { ASSERT_UNUSED(timer, timer == &m_timer); ASSERT(hasLastData()); ASSERT(!m_timer.isActive()); didUpdateData(); }
void PlatformEventController::startUpdating() { if (m_isActive) return; if (hasLastData() && !m_timer.isActive()) { // Make sure to fire the data as soon as possible. m_timer.startOneShot(0, BLINK_FROM_HERE); } registerWithDispatcher(); m_isActive = true; }