Searched refs:TKey (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
D | LruPool.java | 48 public class LruPool<TKey, TValue> { 49 public static class Configuration<TKey, TValue> { 59 void entryEvicted(TKey key, TValue value) { } in entryEvicted() 69 TValue create(TKey key) { in create() 80 int sizeOf(TKey key, TValue value) { in sizeOf() 92 private final LinkedList<TKey> mLruKeyList; 98 private final HashMap<TKey, Queue<TValue>> mValuePool; 99 private final Configuration<TKey, TValue> mConfiguration; 117 this(maxSize, new Configuration<TKey, TValue>()); in LruPool() 120 public LruPool(int maxSize, Configuration<TKey, TValue> configuration) { in LruPool() argument [all …]
|
D | SimpleLruResourcePool.java | 30 public abstract class SimpleLruResourcePool<TKey, TValue> implements LruResourcePool<TKey, TValue> { 32 private final LruPool<TKey, TValue> mLruPool; 44 public Resource<TValue> acquire(TKey key) { in acquire() 62 protected abstract TValue create(TKey key); in create() 68 protected TValue recycle(TKey key, TValue value) { in recycle() 75 private void release(TKey key, TValue value) { in release() 84 private static final class SynchronizedResource<TKey, TValue> implements Resource<TValue> { 86 private final SimpleLruResourcePool<TKey, TValue> mPool; 89 private TKey mKey; 94 public SynchronizedResource(SimpleLruResourcePool<TKey, TValue> pool, in SynchronizedResource() argument [all …]
|
D | LruResourcePool.java | 26 public interface LruResourcePool<TKey, TValue> { 33 public Resource<TValue> acquire(TKey key); in acquire()
|
/packages/apps/Camera2/src/com/android/camera/device/ |
D | SingleDeviceStateMachine.java | 51 public class SingleDeviceStateMachine<TDevice, TKey> implements SingleDeviceCloseListener, 72 private final SingleDeviceShutdownListener<TKey> mShutdownListener; 73 private final TKey mDeviceKey; 99 TKey deviceKey, SingleDeviceShutdownListener<TKey> deviceShutdownListener, in SingleDeviceStateMachine()
|
D | SingleDeviceShutdownListener.java | 22 public interface SingleDeviceShutdownListener<TKey> { 27 public void onShutdown(TKey key); in onShutdown()
|
D | SingleDeviceLifecycle.java | 26 public interface SingleDeviceLifecycle<TDevice, TKey> extends SafeCloseable { 30 public TKey getId(); in getId()
|