Home
last modified time | relevance | path

Searched refs:tickets (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
DReservableTicketPool.java172 public Collection<Ticket> acquire(int tickets) throws InterruptedException, in acquire() argument
174 Collection<Ticket> acquiredParentTickets = acquireParentTickets(tickets); in acquire()
215 Collection<Ticket> tickets = mParentPool.acquire(additionalCapacity); in reserveCapacity() local
221 for (Ticket ticket : tickets) { in reserveCapacity()
296 private Collection<Ticket> acquireParentTickets(int tickets) throws InterruptedException, in acquireParentTickets() argument
305 acquiredParentTickets = tryAcquireAtomically(tickets); in acquireParentTickets()
307 Waiter thisWaiter = new Waiter(mLock.newCondition(), tickets); in acquireParentTickets()
313 acquiredParentTickets = tryAcquireAtomically(tickets); in acquireParentTickets()
335 private List<Ticket> tryAcquireAtomically(int tickets) throws NoCapacityAvailableException { in tryAcquireAtomically() argument
339 if (tickets > mCapacity) { in tryAcquireAtomically()
[all …]
DFiniteTicketPool.java118 public Collection<Ticket> acquire(int tickets) throws InterruptedException, in acquire() argument
122 if (tickets > mMaxCapacity || tickets < 0) { in acquire()
125 Waiter thisWaiter = new Waiter(tickets, mLock.newCondition()); in acquire()
129 while (mTickets < tickets && !mClosed) { in acquire()
136 mTickets -= tickets; in acquire()
141 for (int i = 0; i < tickets; i++) { in acquire()
DTicketPool.java47 public Collection<Ticket> acquire(int tickets) throws InterruptedException, in acquire() argument
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ringbuffer/
DDynamicRingBuffer.java158 public Collection<Ticket> acquire(int tickets) throws InterruptedException, in acquire() argument
165 return mTicketPool.acquire(tickets); in acquire()
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz