Lines Matching refs:lowestTime
158 long lowestTime = mEventBuffer.isEmpty() ? Long.MAX_VALUE in add() local
164 if (event.getTimestamp() < lowestTime) { in add()
174 private SchedulableEvent removeNextEventLocked(long lowestTime) { in removeNextEventLocked() argument
176 FastEventQueue list = mEventBuffer.get(lowestTime); in removeNextEventLocked()
179 mEventBuffer.remove(lowestTime); in removeNextEventLocked()
195 long lowestTime = mEventBuffer.firstKey(); in getNextEvent() local
197 if (lowestTime <= time) { in getNextEvent()
198 event = removeNextEventLocked(lowestTime); in getNextEvent()
221 long lowestTime = mEventBuffer.firstKey(); in waitNextEvent() local
223 if (lowestTime <= now) { in waitNextEvent()
224 event = removeNextEventLocked(lowestTime); in waitNextEvent()
228 long nanosToWait = lowestTime - now; in waitNextEvent()