Home
last modified time | relevance | path

Searched refs:mEventBuffer (Results 1 – 2 of 2) sorted by relevance

/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DEventScheduler.java35 private SortedMap<Long, FastEventQueue> mEventBuffer; field in EventScheduler
42 mEventBuffer = new TreeMap<Long, FastEventQueue>(); in EventScheduler()
156 FastEventQueue list = mEventBuffer.get(event.getTimestamp()); in add()
158 long lowestTime = mEventBuffer.isEmpty() ? Long.MAX_VALUE in add()
159 : mEventBuffer.firstKey(); in add()
161 mEventBuffer.put(event.getTimestamp(), list); in add()
176 FastEventQueue list = mEventBuffer.get(lowestTime); in removeNextEventLocked()
179 mEventBuffer.remove(lowestTime); in removeNextEventLocked()
194 if (!mEventBuffer.isEmpty()) { in getNextEvent()
195 long lowestTime = mEventBuffer.firstKey(); in getNextEvent()
[all …]
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DEventScheduler.java35 private SortedMap<Long, FastEventQueue> mEventBuffer; field in EventScheduler
42 mEventBuffer = new TreeMap<Long, FastEventQueue>(); in EventScheduler()
156 FastEventQueue list = mEventBuffer.get(event.getTimestamp()); in add()
158 long lowestTime = mEventBuffer.isEmpty() ? Long.MAX_VALUE in add()
159 : mEventBuffer.firstKey(); in add()
161 mEventBuffer.put(event.getTimestamp(), list); in add()
176 FastEventQueue list = mEventBuffer.get(lowestTime); in removeNextEventLocked()
179 mEventBuffer.remove(lowestTime); in removeNextEventLocked()
194 if (!mEventBuffer.isEmpty()) { in getNextEvent()
195 long lowestTime = mEventBuffer.firstKey(); in getNextEvent()
[all …]