Lines Matching refs:currentTime

268     nsecs_t currentTime = now();  in dispatchOnce()  local
269 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce()
274 nsecs_t currentTime = now(); in dispatchOnceInnerLocked() local
294 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime; in dispatchOnceInnerLocked()
312 if (currentTime >= mKeyRepeatState.nextRepeatTime) { in dispatchOnceInnerLocked()
313 mPendingEvent = synthesizeKeyRepeatLocked(currentTime); in dispatchOnceInnerLocked()
359 done = dispatchConfigurationChangedLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
366 done = dispatchDeviceResetLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
381 if (dropReason == DROP_REASON_NOT_DROPPED && isStaleEvent(currentTime, typedEntry)) { in dispatchOnceInnerLocked()
387 done = dispatchKeyLocked(currentTime, typedEntry, &dropReason, nextWakeupTime); in dispatchOnceInnerLocked()
396 if (dropReason == DROP_REASON_NOT_DROPPED && isStaleEvent(currentTime, typedEntry)) { in dispatchOnceInnerLocked()
402 done = dispatchMotionLocked(currentTime, typedEntry, &dropReason, nextWakeupTime); in dispatchOnceInnerLocked()
641 bool InputDispatcher::isStaleEvent(nsecs_t currentTime, EventEntry* entry) { in isStaleEvent() argument
642 return currentTime - entry->eventTime >= STALE_EVENT_TIMEOUT; in isStaleEvent()
710 KeyEntry* InputDispatcher::synthesizeKeyRepeatLocked(nsecs_t currentTime) { in synthesizeKeyRepeatLocked() argument
718 entry->eventTime = currentTime; in synthesizeKeyRepeatLocked()
723 new KeyEntry(SYNTHESIZED_EVENT_SEQUENCE_NUM, currentTime, entry->deviceId, in synthesizeKeyRepeatLocked()
739 mKeyRepeatState.nextRepeatTime = currentTime + mConfig.keyRepeatDelay; in synthesizeKeyRepeatLocked()
743 bool InputDispatcher::dispatchConfigurationChangedLocked(nsecs_t currentTime, in dispatchConfigurationChangedLocked() argument
759 bool InputDispatcher::dispatchDeviceResetLocked(nsecs_t currentTime, DeviceResetEntry* entry) { in dispatchDeviceResetLocked() argument
771 bool InputDispatcher::dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry, in dispatchKeyLocked() argument
811 if (currentTime < entry->interceptKeyWakeupTime) { in dispatchKeyLocked()
855 findFocusedWindowTargetsLocked(currentTime, entry, inputTargets, nextWakeupTime); in dispatchKeyLocked()
869 dispatchEventLocked(currentTime, entry, inputTargets); in dispatchKeyLocked()
884 bool InputDispatcher::dispatchMotionLocked(nsecs_t currentTime, MotionEntry* entry, in dispatchMotionLocked() argument
912 findTouchedWindowTargetsLocked(currentTime, entry, inputTargets, nextWakeupTime, in dispatchMotionLocked()
917 findFocusedWindowTargetsLocked(currentTime, entry, inputTargets, nextWakeupTime); in dispatchMotionLocked()
960 dispatchEventLocked(currentTime, entry, inputTargets); in dispatchMotionLocked()
995 void InputDispatcher::dispatchEventLocked(nsecs_t currentTime, EventEntry* eventEntry, in dispatchEventLocked() argument
1010 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget); in dispatchEventLocked()
1022 nsecs_t currentTime, const EventEntry* entry, in handleTargetsNotReadyLocked() argument
1031 mInputTargetWaitStartTime = currentTime; in handleTargetsNotReadyLocked()
1053 mInputTargetWaitStartTime = currentTime; in handleTargetsNotReadyLocked()
1054 mInputTargetWaitTimeoutTime = currentTime + timeout; in handleTargetsNotReadyLocked()
1071 if (currentTime >= mInputTargetWaitTimeoutTime) { in handleTargetsNotReadyLocked()
1072 onANRLocked(currentTime, applicationHandle, windowHandle, entry->eventTime, in handleTargetsNotReadyLocked()
1125 nsecs_t InputDispatcher::getTimeSpentWaitingForApplicationLocked(nsecs_t currentTime) { in getTimeSpentWaitingForApplicationLocked() argument
1127 return currentTime - mInputTargetWaitStartTime; in getTimeSpentWaitingForApplicationLocked()
1168 int32_t InputDispatcher::findFocusedWindowTargetsLocked(nsecs_t currentTime, in findFocusedWindowTargetsLocked() argument
1186 handleTargetsNotReadyLocked(currentTime, entry, focusedApplicationHandle, in findFocusedWindowTargetsLocked()
1210 reason = checkWindowReadyForMoreInputLocked(currentTime, focusedWindowHandle, entry, "focused"); in findFocusedWindowTargetsLocked()
1213 handleTargetsNotReadyLocked(currentTime, entry, focusedApplicationHandle, in findFocusedWindowTargetsLocked()
1227 nsecs_t timeSpentWaitingForApplication = getTimeSpentWaitingForApplicationLocked(currentTime); in findFocusedWindowTargetsLocked()
1228 updateDispatchStatistics(currentTime, entry, injectionResult, timeSpentWaitingForApplication); in findFocusedWindowTargetsLocked()
1237 int32_t InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime, in findTouchedWindowTargetsLocked() argument
1519 checkWindowReadyForMoreInputLocked(currentTime, touchedWindow.windowHandle, in findTouchedWindowTargetsLocked()
1522 injectionResult = handleTargetsNotReadyLocked(currentTime, entry, nullptr, in findTouchedWindowTargetsLocked()
1669 nsecs_t timeSpentWaitingForApplication = getTimeSpentWaitingForApplicationLocked(currentTime); in findTouchedWindowTargetsLocked()
1670 updateDispatchStatistics(currentTime, entry, injectionResult, timeSpentWaitingForApplication); in findTouchedWindowTargetsLocked()
1785 nsecs_t currentTime, const sp<InputWindowHandle>& windowHandle, in checkWindowReadyForMoreInputLocked() argument
1857 currentTime >= connection->waitQueue.head->deliveryTime + STREAM_AHEAD_EVENT_TIMEOUT) { in checkWindowReadyForMoreInputLocked()
1865 (currentTime - connection->waitQueue.head->deliveryTime) * in checkWindowReadyForMoreInputLocked()
1934 void InputDispatcher::prepareDispatchCycleLocked(nsecs_t currentTime, in prepareDispatchCycleLocked() argument
1978 enqueueDispatchEntriesLocked(currentTime, connection, splitMotionEntry, inputTarget); in prepareDispatchCycleLocked()
1985 enqueueDispatchEntriesLocked(currentTime, connection, eventEntry, inputTarget); in prepareDispatchCycleLocked()
1988 void InputDispatcher::enqueueDispatchEntriesLocked(nsecs_t currentTime, in enqueueDispatchEntriesLocked() argument
2018 startDispatchCycleLocked(currentTime, connection); in enqueueDispatchEntriesLocked()
2154 void InputDispatcher::startDispatchCycleLocked(nsecs_t currentTime, in startDispatchCycleLocked() argument
2168 dispatchEntry->deliveryTime = currentTime; in startDispatchCycleLocked()
2256 abortBrokenDispatchCycleLocked(currentTime, connection, true /*notify*/); in startDispatchCycleLocked()
2271 abortBrokenDispatchCycleLocked(currentTime, connection, true /*notify*/); in startDispatchCycleLocked()
2284 void InputDispatcher::finishDispatchCycleLocked(nsecs_t currentTime, in finishDispatchCycleLocked() argument
2300 onDispatchCycleFinishedLocked(currentTime, connection, seq, handled); in finishDispatchCycleLocked()
2303 void InputDispatcher::abortBrokenDispatchCycleLocked(nsecs_t currentTime, in abortBrokenDispatchCycleLocked() argument
2324 onDispatchCycleBrokenLocked(currentTime, connection); in abortBrokenDispatchCycleLocked()
2367 nsecs_t currentTime = now(); in handleReceiveCallback() local
2377 d->finishDispatchCycleLocked(currentTime, connection, seq, handled); in handleReceiveCallback()
2448 nsecs_t currentTime = now(); in synthesizeCancelationEventsForConnectionLocked() local
2451 connection->inputState.synthesizeCancelationEvents(currentTime, cancelationEvents, options); in synthesizeCancelationEventsForConnectionLocked()
2497 startDispatchCycleLocked(currentTime, connection); in synthesizeCancelationEventsForConnectionLocked()
3703 nsecs_t currentTime = now(); in dumpDispatchStateLocked() local
3711 dump += StringPrintf(", age=%0.1fms\n", (currentTime - entry->eventTime) * 0.000001f); in dumpDispatchStateLocked()
3723 (currentTime - mPendingEvent->eventTime) * 0.000001f); in dumpDispatchStateLocked()
3734 dump += StringPrintf(", age=%0.1fms\n", (currentTime - entry->eventTime) * 0.000001f); in dumpDispatchStateLocked()
3772 (currentTime - entry->eventEntry->eventTime) * 0.000001f); in dumpDispatchStateLocked()
3788 (currentTime - entry->eventEntry->eventTime) * 0.000001f, in dumpDispatchStateLocked()
3789 (currentTime - entry->deliveryTime) * 0.000001f); in dumpDispatchStateLocked()
3924 nsecs_t currentTime = now(); in unregisterInputChannelLocked() local
3925 abortBrokenDispatchCycleLocked(currentTime, connection, notify); in unregisterInputChannelLocked()
4030 void InputDispatcher::onDispatchCycleFinishedLocked(nsecs_t currentTime, in onDispatchCycleFinishedLocked() argument
4036 commandEntry->eventTime = currentTime; in onDispatchCycleFinishedLocked()
4041 void InputDispatcher::onDispatchCycleBrokenLocked(nsecs_t currentTime, in onDispatchCycleBrokenLocked() argument
4061 void InputDispatcher::onANRLocked(nsecs_t currentTime, in onANRLocked() argument
4065 float dispatchLatency = (currentTime - eventTime) * 0.000001f; in onANRLocked()
4066 float waitDuration = (currentTime - waitStartTime) * 0.000001f; in onANRLocked()
4426 void InputDispatcher::updateDispatchStatistics(nsecs_t currentTime, const EventEntry* entry, in updateDispatchStatistics() argument