Home | History | Annotate | Download | only in ringbuffer

Lines Matching refs:ticket

25 import com.android.camera.one.v2.sharedimagereader.ticketpool.Ticket;
70 * @param parentTickets The parent ticket pool which implicitly determines
85 // Try to acquire a ticket to expand the ring-buffer and save the image.
86 Ticket ticket = null;
90 // mQueue. However, for a brief moment, we acquire a ticket from
98 ticket = tryAcquireLowPriorityTicket();
99 if (ticket == null) {
104 ticket = tryAcquireLowPriorityTicket();
106 if (ticket != null) {
107 mQueue.update(new TicketImageProxy(image, ticket));
118 private Ticket tryAcquireLowPriorityTicket() {
158 public Collection<Ticket> acquire(int tickets) throws InterruptedException,
179 public Ticket tryAcquire() {
199 // To ensure that the available ticket count never "flickers" when we
200 // logically move the ticket from the queue into the parent ticket pool,
201 // lock the available ticket count.