HomeSort by relevance Sort by last modified time
    Searched refs:Ticket (Results 1 - 11 of 11) sorted by null

  /packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
Ticket.java 28 public interface Ticket extends SafeCloseable {
30 * Releases the ticket. Implementations must be idempotent.
TicketProvider.java 24 * Attempts to acquire and return a ticket.
26 * @return The acquired ticket, or null if no ticket is readily available.
30 public Ticket tryAcquire();
ReservableTicketPool.java 47 * as soon as possible, which may depend on consumers of this ticket pool
71 * Wraps tickets from the parent ticket pool with logic to either release
75 private class TicketImpl implements Ticket {
76 private final Ticket mParentTicket;
79 private TicketImpl(Ticket parentTicket) {
93 // and return the ticket to the parent by closing it.
134 private final ArrayDeque<Ticket> mParentTickets;
172 public Collection<Ticket> acquire(int tickets) throws InterruptedException,
174 Collection<Ticket> acquiredParentTickets = acquireParentTickets(tickets);
176 List<Ticket> wrappedTicketList = new ArrayList<>()
    [all...]
TicketPool.java 28 * Stores a collection of {@link Ticket}s. Tickets may be acquired from the
47 public Collection<Ticket> acquire(int tickets) throws InterruptedException,
58 * Attempts to acquire and return a ticket. The caller owns the resulting
59 * ticket (if not null) and is responsible for eventually closing it.
63 * @return The acquired ticket, or null if no ticket is readily available.
68 public Ticket tryAcquire();
FiniteTicketPool.java 35 * A ticket pool with a finite number of tickets.
38 private class TicketImpl implements Ticket {
118 public Collection<Ticket> acquire(int tickets) throws InterruptedException,
140 List<Ticket> ticketList = new ArrayList<>();
170 public Ticket tryAcquire() {
  /packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/util/
TicketImageProxy.java 21 import com.android.camera.one.v2.sharedimagereader.ticketpool.Ticket;
28 * Combines an {@link ImageProxy} with a {@link Ticket}.
32 private final Ticket mTicket;
35 public TicketImageProxy(ImageProxy image, Ticket ticket) {
37 mTicket = ticket;
46 // The ticket must be closed *after* the image is closed to avoid a race
  /packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/
TicketRequiredFilter.java 21 import com.android.camera.one.v2.sharedimagereader.ticketpool.Ticket;
28 * Decorates a BufferQueueController by attaching incoming images with a ticket
29 * from a TicketPool. If no ticket can be acquired, the incoming image is
44 Ticket ticket = mTicketProvider.tryAcquire(); local
45 if (ticket == null) {
48 mImageSequence.update(new TicketImageProxy(image, ticket));
  /packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ringbuffer/
DynamicRingBuffer.java 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; local
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)
    [all...]
  /external/tpm2/
Android.mk 293 Ticket.c \
Makefile 278 SOURCES += Ticket.c
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
ntsecapi.h     [all...]

Completed in 104 milliseconds