Searched defs:acquire (Results 1 - 12 of 12) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/processing/memory/
H A DLruResourcePool.java33 public Resource<TValue> acquire(TKey key); method in interface:LruResourcePool
H A DLruPool.java42 * {@link #acquire(TKey)} is currently linear time, pending a better
45 * TODO: Build a constant time acquire(TKey) method implementation.
53 * removed via {@link #acquire}. The default
140 * TODO: Build a constant time acquire(TKey) method implementation.
145 public final TValue acquire(TKey key) { method in class:LruPool
148 // We must remove the item we acquire from the list
H A DSimpleLruResourcePool.java44 public Resource<TValue> acquire(TKey key) { method in class:SimpleLruResourcePool
47 value = mLruPool.acquire(key);
/packages/apps/Camera2/src/android/util/
H A DPools.java28 * MyPooledClass instance = sPool.acquire();
55 public T acquire(); method in interface:Pools.Pool
98 public T acquire() { method in class:Pools.SimplePool
152 public T acquire() { method in class:Pools.SynchronizedPool
154 return super.acquire();
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
H A DTicketPool.java44 * Implementations must be fair w.r.t. other calls to acquire.
47 public Collection<Ticket> acquire(int tickets) throws InterruptedException, method in interface:TicketPool
58 * Attempts to acquire and return a ticket. The caller owns the resulting
61 * Implementations must be fair w.r.t. {@link #acquire}.
H A DFiniteTicketPool.java118 public Collection<Ticket> acquire(int tickets) throws InterruptedException, method in class:FiniteTicketPool
H A DReservableTicketPool.java125 * currently blocked in {@link #acquire}.
131 * {@link #acquire}.
172 public Collection<Ticket> acquire(int tickets) throws InterruptedException, method in class:ReservableTicketPool
209 * @param additionalCapacity The additional capacity to acquire.
210 * @throws InterruptedException If interrupted while trying to acquire the
215 Collection<Ticket> tickets = mParentPool.acquire(additionalCapacity);
294 * @param tickets The number of tickets to acquire.
298 // The list of tickets from mTicketList to acquire.
299 // Try to acquire these immediately, if there are no threads already
327 * be an all-or-nothing attempt to avoid multiple acquire() call
[all...]
/packages/apps/Gallery2/src/android/util/
H A DPools.java28 * MyPooledClass instance = sPool.acquire();
55 public T acquire(); method in interface:Pools.Pool
98 public T acquire() { method in class:Pools.SimplePool
152 public T acquire() { method in class:Pools.SynchronizedPool
154 return super.acquire();
/packages/apps/Messaging/src/com/android/messaging/util/
H A DWakeLockHelper.java51 public void acquire(final Context context, final Intent intent, final int opcode) { method in class:WakeLockHelper
65 mWakeLock.acquire();
/packages/services/Telecomm/src/com/android/server/telecom/
H A DTelecomWakeLock.java35 public void acquire() { method in class:TelecomWakeLock.WakeLockAdapter
36 mWakeLock.acquire();
90 public void acquire() { method in class:TelecomWakeLock
92 Log.i(TAG, "Can not acquire WakeLock (not supported) with level: " + mWakeLockLevel);
97 mWakeLock.acquire();
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ringbuffer/
H A DDynamicRingBuffer.java85 // Try to acquire a ticket to expand the ring-buffer and save the image.
90 // mQueue. However, for a brief moment, we acquire a ticket from
158 public Collection<Ticket> acquire(int tickets) throws InterruptedException, method in class:DynamicRingBuffer
165 return mTicketPool.acquire(tickets);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestions.java53 public void acquire() { method in class:Suggestions

Completed in 402 milliseconds