Searched refs:Ticket (Results 1 – 8 of 8) sorted by relevance
75 private class TicketImpl implements Ticket {76 private final Ticket mParentTicket;79 private TicketImpl(Ticket parentTicket) { in TicketImpl()134 private final ArrayDeque<Ticket> mParentTickets;172 public Collection<Ticket> acquire(int tickets) throws InterruptedException, in acquire()174 Collection<Ticket> acquiredParentTickets = acquireParentTickets(tickets); in acquire()176 List<Ticket> wrappedTicketList = new ArrayList<>(); in acquire()177 for (Ticket parentTicket : acquiredParentTickets) { in acquire()190 public Ticket tryAcquire() { in tryAcquire()191 Ticket parentTicket; in tryAcquire()[all …]
38 private class TicketImpl implements Ticket {118 public Collection<Ticket> acquire(int tickets) throws InterruptedException, in acquire()140 List<Ticket> ticketList = new ArrayList<>(); in acquire()170 public Ticket tryAcquire() { in tryAcquire()
47 public Collection<Ticket> acquire(int tickets) throws InterruptedException, in acquire()68 public Ticket tryAcquire(); in tryAcquire()
28 public interface Ticket extends SafeCloseable { interface
30 public Ticket tryAcquire(); in tryAcquire()
25 import com.android.camera.one.v2.sharedimagereader.ticketpool.Ticket;86 Ticket ticket = null; in update()118 private Ticket tryAcquireLowPriorityTicket() { in tryAcquireLowPriorityTicket()158 public Collection<Ticket> acquire(int tickets) throws InterruptedException, in acquire()179 public Ticket tryAcquire() { in tryAcquire()
21 import com.android.camera.one.v2.sharedimagereader.ticketpool.Ticket;32 private final Ticket mTicket;35 public TicketImageProxy(ImageProxy image, Ticket ticket) { in TicketImageProxy()
21 import com.android.camera.one.v2.sharedimagereader.ticketpool.Ticket;44 Ticket ticket = mTicketProvider.tryAcquire(); in update()