Lines Matching refs:currentTime

250     nsecs_t currentTime = now();  in dispatchOnce()  local
251 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce()
256 nsecs_t currentTime = now(); in dispatchOnceInnerLocked() local
276 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime; in dispatchOnceInnerLocked()
294 if (currentTime >= mKeyRepeatState.nextRepeatTime) { in dispatchOnceInnerLocked()
295 mPendingEvent = synthesizeKeyRepeatLocked(currentTime); in dispatchOnceInnerLocked()
341 done = dispatchConfigurationChangedLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
349 done = dispatchDeviceResetLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
365 && isStaleEventLocked(currentTime, typedEntry)) { in dispatchOnceInnerLocked()
371 done = dispatchKeyLocked(currentTime, typedEntry, &dropReason, nextWakeupTime); in dispatchOnceInnerLocked()
381 && isStaleEventLocked(currentTime, typedEntry)) { in dispatchOnceInnerLocked()
387 done = dispatchMotionLocked(currentTime, typedEntry, in dispatchOnceInnerLocked()
584 bool InputDispatcher::isStaleEventLocked(nsecs_t currentTime, EventEntry* entry) { in isStaleEventLocked() argument
585 return currentTime - entry->eventTime >= STALE_EVENT_TIMEOUT; in isStaleEventLocked()
653 InputDispatcher::KeyEntry* InputDispatcher::synthesizeKeyRepeatLocked(nsecs_t currentTime) { in synthesizeKeyRepeatLocked() argument
661 entry->eventTime = currentTime; in synthesizeKeyRepeatLocked()
665 KeyEntry* newEntry = new KeyEntry(currentTime, in synthesizeKeyRepeatLocked()
681 mKeyRepeatState.nextRepeatTime = currentTime + mConfig.keyRepeatDelay; in synthesizeKeyRepeatLocked()
686 nsecs_t currentTime, ConfigurationChangedEntry* entry) { in dispatchConfigurationChangedLocked() argument
702 nsecs_t currentTime, DeviceResetEntry* entry) { in dispatchDeviceResetLocked() argument
714 bool InputDispatcher::dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry, in dispatchKeyLocked() argument
755 if (currentTime < entry->interceptKeyWakeupTime) { in dispatchKeyLocked()
794 int32_t injectionResult = findFocusedWindowTargetsLocked(currentTime, in dispatchKeyLocked()
808 dispatchEventLocked(currentTime, entry, inputTargets); in dispatchKeyLocked()
825 nsecs_t currentTime, MotionEntry* entry, DropReason* dropReason, nsecs_t* nextWakeupTime) { in dispatchMotionLocked() argument
849 injectionResult = findTouchedWindowTargetsLocked(currentTime, in dispatchMotionLocked()
853 injectionResult = findFocusedWindowTargetsLocked(currentTime, in dispatchMotionLocked()
883 dispatchEventLocked(currentTime, entry, inputTargets); in dispatchMotionLocked()
921 void InputDispatcher::dispatchEventLocked(nsecs_t currentTime, in dispatchEventLocked() argument
937 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget); in dispatchEventLocked()
948 int32_t InputDispatcher::handleTargetsNotReadyLocked(nsecs_t currentTime, in handleTargetsNotReadyLocked() argument
959 mInputTargetWaitStartTime = currentTime; in handleTargetsNotReadyLocked()
982 mInputTargetWaitStartTime = currentTime; in handleTargetsNotReadyLocked()
983 mInputTargetWaitTimeoutTime = currentTime + timeout; in handleTargetsNotReadyLocked()
1000 if (currentTime >= mInputTargetWaitTimeoutTime) { in handleTargetsNotReadyLocked()
1001 onANRLocked(currentTime, applicationHandle, windowHandle, in handleTargetsNotReadyLocked()
1055 nsecs_t currentTime) { in getTimeSpentWaitingForApplicationLocked() argument
1057 return currentTime - mInputTargetWaitStartTime; in getTimeSpentWaitingForApplicationLocked()
1072 int32_t InputDispatcher::findFocusedWindowTargetsLocked(nsecs_t currentTime, in findFocusedWindowTargetsLocked() argument
1081 injectionResult = handleTargetsNotReadyLocked(currentTime, entry, in findFocusedWindowTargetsLocked()
1101 reason = checkWindowReadyForMoreInputLocked(currentTime, in findFocusedWindowTargetsLocked()
1104 injectionResult = handleTargetsNotReadyLocked(currentTime, entry, in findFocusedWindowTargetsLocked()
1118 nsecs_t timeSpentWaitingForApplication = getTimeSpentWaitingForApplicationLocked(currentTime); in findFocusedWindowTargetsLocked()
1119 updateDispatchStatisticsLocked(currentTime, entry, in findFocusedWindowTargetsLocked()
1129 int32_t InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime, in findTouchedWindowTargetsLocked() argument
1412 String8 reason = checkWindowReadyForMoreInputLocked(currentTime, in findTouchedWindowTargetsLocked()
1415 injectionResult = handleTargetsNotReadyLocked(currentTime, entry, in findTouchedWindowTargetsLocked()
1554 nsecs_t timeSpentWaitingForApplication = getTimeSpentWaitingForApplicationLocked(currentTime); in findTouchedWindowTargetsLocked()
1555 updateDispatchStatisticsLocked(currentTime, entry, in findTouchedWindowTargetsLocked()
1634 String8 InputDispatcher::checkWindowReadyForMoreInputLocked(nsecs_t currentTime, in checkWindowReadyForMoreInputLocked() argument
1701 && currentTime >= connection->waitQueue.head->deliveryTime in checkWindowReadyForMoreInputLocked()
1708 (currentTime - connection->waitQueue.head->deliveryTime) * 0.000001f); in checkWindowReadyForMoreInputLocked()
1773 void InputDispatcher::prepareDispatchCycleLocked(nsecs_t currentTime, in prepareDispatchCycleLocked() argument
1810 enqueueDispatchEntriesLocked(currentTime, connection, in prepareDispatchCycleLocked()
1818 enqueueDispatchEntriesLocked(currentTime, connection, eventEntry, inputTarget); in prepareDispatchCycleLocked()
1821 void InputDispatcher::enqueueDispatchEntriesLocked(nsecs_t currentTime, in enqueueDispatchEntriesLocked() argument
1841 startDispatchCycleLocked(currentTime, connection); in enqueueDispatchEntriesLocked()
1932 void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime, in startDispatchCycleLocked() argument
1942 dispatchEntry->deliveryTime = currentTime; in startDispatchCycleLocked()
2021 abortBrokenDispatchCycleLocked(currentTime, connection, true /*notify*/); in startDispatchCycleLocked()
2035 abortBrokenDispatchCycleLocked(currentTime, connection, true /*notify*/); in startDispatchCycleLocked()
2048 void InputDispatcher::finishDispatchCycleLocked(nsecs_t currentTime, in finishDispatchCycleLocked() argument
2063 onDispatchCycleFinishedLocked(currentTime, connection, seq, handled); in finishDispatchCycleLocked()
2066 void InputDispatcher::abortBrokenDispatchCycleLocked(nsecs_t currentTime, in abortBrokenDispatchCycleLocked() argument
2086 onDispatchCycleBrokenLocked(currentTime, connection); in abortBrokenDispatchCycleLocked()
2127 nsecs_t currentTime = now(); in handleReceiveCallback() local
2137 d->finishDispatchCycleLocked(currentTime, connection, seq, handled); in handleReceiveCallback()
2199 nsecs_t currentTime = now(); in synthesizeCancelationEventsForConnectionLocked() local
2202 connection->inputState.synthesizeCancelationEvents(currentTime, in synthesizeCancelationEventsForConnectionLocked()
2246 startDispatchCycleLocked(currentTime, connection); in synthesizeCancelationEventsForConnectionLocked()
3200 nsecs_t currentTime = now(); in dumpDispatchStateLocked() local
3209 (currentTime - entry->eventTime) * 0.000001f); in dumpDispatchStateLocked()
3221 (currentTime - mPendingEvent->eventTime) * 0.000001f); in dumpDispatchStateLocked()
3233 (currentTime - entry->eventTime) * 0.000001f); in dumpDispatchStateLocked()
3270 (currentTime - entry->eventEntry->eventTime) * 0.000001f); in dumpDispatchStateLocked()
3286 (currentTime - entry->eventEntry->eventTime) * 0.000001f, in dumpDispatchStateLocked()
3287 (currentTime - entry->deliveryTime) * 0.000001f); in dumpDispatchStateLocked()
3382 nsecs_t currentTime = now(); in unregisterInputChannelLocked() local
3383 abortBrokenDispatchCycleLocked(currentTime, connection, notify); in unregisterInputChannelLocked()
3411 nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) { in onDispatchCycleFinishedLocked() argument
3415 commandEntry->eventTime = currentTime; in onDispatchCycleFinishedLocked()
3421 nsecs_t currentTime, const sp<Connection>& connection) { in onDispatchCycleBrokenLocked() argument
3431 nsecs_t currentTime, const sp<InputApplicationHandle>& applicationHandle, in onANRLocked() argument
3434 float dispatchLatency = (currentTime - eventTime) * 0.000001f; in onANRLocked()
3435 float waitDuration = (currentTime - waitStartTime) * 0.000001f; in onANRLocked()
3769 void InputDispatcher::updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry, in updateDispatchStatisticsLocked() argument
4245 void InputDispatcher::InputState::synthesizeCancelationEvents(nsecs_t currentTime, in synthesizeCancelationEvents() argument
4250 outEvents.push(new KeyEntry(currentTime, in synthesizeCancelationEvents()
4260 outEvents.push(new MotionEntry(currentTime, in synthesizeCancelationEvents()