Home
last modified time | relevance | path

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

/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DEventScheduler.java38 private FastEventQueue mEventPool = null; field in EventScheduler
127 if (mEventPool != null && (mEventPool.size() > 1)) { in removeEventfromPool()
128 event = mEventPool.remove(); in removeEventfromPool()
139 if (mEventPool == null) { in addEventToPool()
140 mEventPool = new FastEventQueue(event); in addEventToPool()
143 } else if (mEventPool.size() < MAX_POOL_SIZE) { in addEventToPool()
144 mEventPool.add(event); in addEventToPool()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DEventScheduler.java38 private FastEventQueue mEventPool = null; field in EventScheduler
127 if (mEventPool != null && (mEventPool.size() > 1)) { in removeEventfromPool()
128 event = mEventPool.remove(); in removeEventfromPool()
139 if (mEventPool == null) { in addEventToPool()
140 mEventPool = new FastEventQueue(event); in addEventToPool()
143 } else if (mEventPool.size() < MAX_POOL_SIZE) { in addEventToPool()
144 mEventPool.add(event); in addEventToPool()