/packages/apps/Dialer/java/com/android/dialer/util/ |
D | ExpirableCache.java | 91 public class ExpirableCache<K, V> { 103 private LruCache<K, CachedValue<V>> cache; 105 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache() 121 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { in create() 122 return new ExpirableCache<K, V>(cache); in create() 132 public static <K, V> ExpirableCache<K, V> create(int maxSize) { in create() 133 return create(new LruCache<K, CachedValue<V>>(maxSize)); in create() 149 public CachedValue<V> getCachedValue(K key) { in getCachedValue() 165 public V getPossiblyExpired(K key) { in getPossiblyExpired() 166 CachedValue<V> cachedValue = getCachedValue(key); in getPossiblyExpired() [all …]
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | LruCache.java | 25 public class LruCache<K, V> { 27 private final HashMap<K, V> mLruMap; 28 private final HashMap<K, Entry<K, V>> mWeakMap = 29 new HashMap<K, Entry<K, V>>(); 30 private ReferenceQueue<V> mQueue = new ReferenceQueue<V>(); 34 mLruMap = new LinkedHashMap<K, V>(16, 0.75f, true) { in LruCache() 36 protected boolean removeEldestEntry(Map.Entry<K, V> eldest) { in LruCache() 42 private static class Entry<K, V> extends WeakReference<V> { 45 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry() 53 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | LruCache.java | 29 public class LruCache<K, V> { 31 private final HashMap<K, V> mLruMap; 32 private final HashMap<K, Entry<K, V>> mWeakMap = 33 new HashMap<K, Entry<K, V>>(); 34 private ReferenceQueue<V> mQueue = new ReferenceQueue<V>(); 38 mLruMap = new LinkedHashMap<K, V>(16, 0.75f, true) { in LruCache() 40 protected boolean removeEldestEntry(Map.Entry<K, V> eldest) { in LruCache() 46 private static class Entry<K, V> extends WeakReference<V> { 49 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry() 57 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | IdentityCache.java | 25 public class IdentityCache<K, V> { 27 private final HashMap<K, Entry<K, V>> mWeakMap = 28 new HashMap<K, Entry<K, V>>(); 29 private ReferenceQueue<V> mQueue = new ReferenceQueue<V>(); 34 private static class Entry<K, V> extends WeakReference<V> { 37 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry() 44 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap() 47 entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap() 51 public synchronized V put(K key, V value) { in put() 53 Entry<K, V> entry = mWeakMap.put( in put() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransfer.java | 71 private static final boolean V = Constants.VERBOSE; field in BluetoothOppTransfer 120 if (V) { in onReceive() 126 if (V) { in onReceive() 217 if (V) { in handleMessage() 230 if (V) { in handleMessage() 247 if (V) { in handleMessage() 255 if (V) { in handleMessage() 262 if (V) { in handleMessage() 276 if (V) { in handleMessage() 288 if (V) { in handleMessage() [all …]
|
D | BluetoothOppService.java | 81 private static final boolean V = Constants.VERBOSE; field in BluetoothOppService 99 if (V) { in onChange() 196 if (V) { in create() 219 if (V) { in create() 231 if (V) { in start() 258 if (V) { in startListener() 368 if (V) { 484 if (V) { in cleanup() 529 if (V) { 556 if (V) { [all …]
|
D | BluetoothOppReceiver.java | 56 private static final boolean V = Constants.VERBOSE; field in BluetoothOppReceiver 90 if (V) { in onReceive() 101 if (V) { in onReceive() 112 if (V) { in onReceive() 122 if (V) { in onReceive() 152 if (V) { in onReceive() 161 if (V) { in onReceive() 170 if (V) { in onReceive() 180 if (V) { in onReceive() 197 if (V) { in onReceive() [all …]
|
D | BluetoothOppObexClientSession.java | 67 private static final boolean V = Constants.VERBOSE; field in BluetoothOppObexClientSession 110 if (V) { in stop() 116 if (V) { in stop() 185 if (V) { in run() 193 if (V) { in run() 221 if (V) { in run() 347 if (V) { in processShareInfo() 353 if (V) { in processShareInfo() 359 if (V) { in processShareInfo() 395 if (V) { in sendFile() [all …]
|
D | BluetoothOppNotification.java | 61 private static final boolean V = Constants.VERBOSE; field in BluetoothOppNotification 169 if (V) { in updateNotification() 175 if (V) { in updateNotification() 198 if (V) { 203 if (V) { 208 if (V) { 260 if (V) { in updateActiveNotification() 310 if (V) { in updateActiveNotification() 321 if (V) { in updateActiveNotification() 365 if (V) { in updateActiveNotification() [all …]
|
D | BluetoothOppManager.java | 62 private static final boolean V = Constants.VERBOSE; field in BluetoothOppManager 147 if (V) { in init() 165 if (V) { in cleanupWhitelist() 210 if (V) { in restoreApplicationData() 221 if (V) { in restoreApplicationData() 259 if (V) { in storeApplicationData() 308 if (V) { in isEnabled() 363 if (V) { in startTransfer() 430 if (V) { in InsertShareInfoThread() 465 if (V) { in insertMultipleShare() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | DequeMap.java | 30 public class DequeMap<K, V> { 32 public interface Visitor<V> { 33 void visit(V item); in visit() 36 private final Map<K, Deque<V>> mMap = Maps.newHashMap(); 42 public void add(K key, V item) { in add() 43 Deque<V> pile = mMap.get(key); in add() 60 public V poll(K key) { in poll() 61 final Deque<V> pile = mMap.get(key); in poll() 77 public V peek(K key) { in peek() 78 final Deque<V> pile = mMap.get(key); in peek() [all …]
|
D | LruCache.java | 28 public final class LruCache<K, V> extends LinkedHashMap<K, V> { 60 public synchronized V getElement(K key) { in getElement() 69 public synchronized void putElement(K key, V value) { in putElement() 79 public synchronized V removeElement(K key) { in removeElement() 91 public synchronized void putAll(Map<? extends K, ? extends V> m) { in putAll() 92 for (Map.Entry<? extends K, ? extends V> e : m.entrySet()) { in putAll() 105 protected synchronized boolean removeEldestEntry(Map.Entry<K, V> eldest) { in removeEldestEntry()
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
D | AbstractCache.java | 23 public abstract class AbstractCache<K, V> { 29 private final SimpleArrayMap<K, CacheEntry<V>> mCacheMap; 32 mCacheMap = new SimpleArrayMap<K, CacheEntry<V>>(); in AbstractCache() 35 public boolean put(K key, V value) { in put() 50 CacheEntry<V> cacheEntry = new CacheEntry<V>(); in put() 62 public V get(K key) { in get() 68 CacheEntry<V> cacheEntry = mCacheMap.get(key); in get() 80 public V purge(K key) { in purge() 85 CacheEntry<V> v = mCacheMap.remove(key); in purge() 106 private static class CacheEntry<V> { [all …]
|
/packages/apps/DocumentsUI/tests/res/raw/ |
D | images_tar | 8 …���ߝ�o���Q���'$�I`�6�� KV��+�#�'u,��\��%&1\��r}�''��)���SrѨ�'s~�`{�0��.o��E��k3 �Gmm��.�… 10 :s��z^G�-��8��+�?�4��V��FIً�NR���?`3/e*x?V,iy��&��Q����^I1��C�,|�}$ ��M+�х����,�.�|<C�s… 13 ���ڪ��U�+Zn9�1柔�!�,�b�>�*�W��F���(�x�]^��k^C#�~���N_���a���h�7��\�3F'F�$� �qld�V��}q�X�!�… 19 …g���&� 0��$�[V�*�5灑�D^@�`��f}�����W�K���F��6����K�4�{.�{���c��;��а^))(���#�������9���h��t… 28 …�J%\'/+7�,�����b��&��FKf8��~9��0�>'<u��s]��}��+�LK&�(�����C���#V:hL&=84�m����;ɛ�&��… 30 …V٢����DF�U_���W��6W`~3&U��}���D�. �0�C���T ��U��kC�>#�Z�@]�AN��A��;Q�b1*G�DGAT& -��y�c#�F… 32 ��0P\�A^u�[��V�������#��L��{K@K�!���s������!l�H�&���ͧ��O��[�̮��zP��m��ԣ�x��>I��� 35 …3S������}�� �7��jz�ս�'��ߋ�p�g�j�������*�9T�\��j�wZ9��ǻP���{~8ج&z��ᝪw�V���7��������?�B��… 39 ���㉌������E�xj��V��&CT�B�J�z�(Z4)�u'�q(nNq¬�`[�
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManager.java | 73 private static final boolean V = BluetoothPbapService.VERBOSE; field in BluetoothPbapVcardManager 162 if (V) { in getPhonebookSize() 357 if (V) { in getSelectedPhonebookNameList() 376 if (V) { in getSelectedPhonebookNameList() 381 if (V) { in getSelectedPhonebookNameList() 420 if (V) { in getContactNamesByNumber() 504 if (V) { in composeAndSendSelectedCallLogVcards() 513 if (V) { in composeAndSendSelectedCallLogVcards() 543 if (V) { in composeAndSendSelectedCallLogVcards() 660 if (V) { in filterByRange() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | MultiHashMap.java | 25 public class MultiHashMap<K, V> extends HashMap<K, ArrayList<V>> { 33 public void addToList(K key, V value) { in addToList() 34 ArrayList<V> list = get(key); in addToList() 45 public MultiHashMap<K, V> clone() { in clone() 46 MultiHashMap<K, V> map = new MultiHashMap<>(size()); in clone() 47 for (Entry<K, ArrayList<V>> entry : entrySet()) { in clone() 48 map.put(entry.getKey(), new ArrayList<V>(entry.getValue())); in clone()
|
/packages/services/Car/evs/sampleDriver/ |
D | bufferCopy.cpp | 52 float V = Vin - 128.0f; in yuvToRgbx() local 54 float Rf = Y + 1.140f*V; in yuvToRgbx() 55 float Gf = Y - 0.395f*U - 0.581f*V; in yuvToRgbx() 99 uint8_t V; in fillNV21FromYUYV() member 128 const uint8_t vValue = (pTopMacroPixel->V + pBotMacroPixel->V) >> 1; in fillNV21FromYUYV() 165 uint8_t V = (srcPixel >> 24) & 0xFF; in fillRGBAFromYUYV() local 168 *(dst+0) = yuvToRgbx(Y1, U, V); in fillRGBAFromYUYV() 169 *(dst+1) = yuvToRgbx(Y2, U, V); in fillRGBAFromYUYV() 214 uint8_t V = (srcPixel >> 24) & 0xFF; in fillYUYVFromUYVY() local 219 (V << 16) | in fillYUYVFromUYVY()
|
/packages/services/Car/service/src/com/android/car/ |
D | SetMultimap.java | 33 public class SetMultimap<K, V> { 34 private Map<K, Set<V>> mMap; 42 public Set<V> get(K key) { in get() 47 public boolean put(K key, V value) { in put() 52 public boolean containsEntry(K key, V value) { in containsEntry() 53 Set<V> set = mMap.get(key); in containsEntry() 58 public boolean remove(K key, V value) { in remove() 59 Set<V> set = mMap.get(key); in remove()
|
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/ |
D | FuturesUtil.java | 25 public static <V> ListenableFuture<V> withTimeout(final ListenableFuture<V> future, long time, in withTimeout() 38 public static <V> ListenableFuture<V> withTimeout(final ListenableFuture<V> future, long time, in withTimeout() 49 return Futures.withFallback(future, new FutureFallback<V>() { in withTimeout() 51 public ListenableFuture<V> create(Throwable t) throws Exception { in withTimeout()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapAppObserver.java | 46 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapAppObserver 71 if (V) { in getApp() 75 if (V) { in getApp() 79 if (V) { in getApp() 85 if (V) { in getApp() 124 if (V) { in handleAccountChanges() 134 if (V) { in handleAccountChanges() 142 if (V) { in handleAccountChanges() 156 if (V) { in handleAccountChanges() 164 if (V) { in handleAccountChanges() [all …]
|
D | BluetoothMapContent.java | 68 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapContent 462 if (V) { in setProtected() 484 if (V) { in setThreadId() 497 if (V) { in setThreadName() 522 if (V) { in setSent() 541 if (V) { in setRead() 554 if (V) { in setConvoRead() 577 if (V) { in setPriority() 633 if (V) { in setAttachment() 668 if (V) { in setText() [all …]
|
/packages/apps/Car/Radio/src/com/android/car/radio/util/ |
D | Remote.java | 42 public interface RemoteFunction<V> { 46 V call() throws RemoteException; in call() 52 public static <V> V exec(RemoteFunction<V> func) { in exec() 74 public static <V> void tryExec(RemoteFunction<V> func) { in tryExec()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
D | MetadataResponseListener.java | 28 public class MetadataResponseListener<V> extends ResponseListener { 29 private final Updatable<V> mUpdatable; 30 private final CaptureResult.Key<V> mKey; 36 public MetadataResponseListener(CaptureResult.Key<V> key, Updatable<V> updatable) { in MetadataResponseListener() 43 V newValue = partialResult.get(mKey); in onProgressed() 51 V newValue = totalCaptureResult.get(mKey); in onCompleted()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallIdMapper.java | 31 static class BiMap<K, V> { 32 private Map<K, V> mPrimaryMap = new ArrayMap<>(); 33 private Map<V, K> mSecondaryMap = new ArrayMap<>(); 35 public boolean put(K key, V value) { in put() 51 V value = getValue(key); in remove() 59 public boolean removeValue(V value) { in removeValue() 66 public V getValue(K key) { in getValue() 70 public K getKey(V value) { in getKey()
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | MaterialColorMapUtils.java | 48 int V = Math.max(b, Math.max(r, g)); in hue() local 53 if (V == temp) { in hue() 56 final float vtemp = V - temp; in hue() 57 final float cr = (V - r) / vtemp; in hue() 58 final float cg = (V - g) / vtemp; in hue() 59 final float cb = (V - b) / vtemp; in hue() 61 if (r == V) { in hue() 63 } else if (g == V) { in hue()
|