Home
last modified time | relevance | path

Searched refs:V (Results 1 – 25 of 118) sorted by relevance

12345

/packages/apps/Dialer/java/com/android/dialer/util/
DExpirableCache.java91 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/
DLruCache.java25 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/
DLruCache.java29 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/
DIdentityCache.java25 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/
DBluetoothOppTransfer.java70 private static final boolean V = Constants.VERBOSE; field in BluetoothOppTransfer
119 if (V) { in onReceive()
125 if (V) { in onReceive()
216 if (V) { in handleMessage()
229 if (V) { in handleMessage()
246 if (V) { in handleMessage()
254 if (V) { in handleMessage()
261 if (V) { in handleMessage()
275 if (V) { in handleMessage()
287 if (V) { in handleMessage()
[all …]
DBluetoothOppService.java79 private static final boolean V = Constants.VERBOSE; field in BluetoothOppService
97 if (V) { in onChange()
194 if (V) { in create()
217 if (V) { in create()
229 if (V) { in start()
256 if (V) { in startListener()
366 if (V) {
482 if (V) { in cleanup()
527 if (V) {
554 if (V) {
[all …]
DBluetoothOppReceiver.java56 private static final boolean V = Constants.VERBOSE; field in BluetoothOppReceiver
91 if (V) { in onReceive()
102 if (V) { in onReceive()
113 if (V) { in onReceive()
123 if (V) { in onReceive()
153 if (V) { in onReceive()
162 if (V) { in onReceive()
171 if (V) { in onReceive()
181 if (V) { in onReceive()
198 if (V) { in onReceive()
[all …]
DBluetoothOppObexClientSession.java67 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 …]
DBluetoothOppManager.java62 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 …]
DBluetoothOppNotification.java62 private static final boolean V = Constants.VERBOSE; field in BluetoothOppNotification
170 if (V) { in updateNotification()
176 if (V) { in updateNotification()
199 if (V) {
204 if (V) {
209 if (V) {
261 if (V) { in updateActiveNotification()
311 if (V) { in updateActiveNotification()
322 if (V) { in updateActiveNotification()
366 if (V) { in updateActiveNotification()
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
DAbstractCache.java23 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/
Dimages_tar8 …���ߝ�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����;ɛ�&��…
30V٢����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/Launcher3/src/com/android/launcher3/util/
DMultiHashMap.java25 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/
DbufferCopy.cpp52 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/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java73 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/services/Car/service/src/com/android/car/
DSetMultimap.java33 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/services/Telecomm/src/com/android/server/telecom/
DCallIdMapper.java32 static class BiMap<K, V> {
33 private Map<K, V> mPrimaryMap = new ArrayMap<>();
34 private Map<V, K> mSecondaryMap = new ArrayMap<>();
36 public boolean put(K key, V value) { in put()
52 V value = getValue(key); in remove()
60 public boolean removeValue(V value) { in removeValue()
67 public V getValue(K key) { in getValue()
71 public K getKey(V value) { in getKey()
75 public Collection<V> getValues() { in getValues()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppObserver.java46 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 …]
DBluetoothMapContent.java68 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/Contacts/src/com/android/contacts/util/concurrent/
DFuturesUtil.java26 public static <V> ListenableFuture<V> withTimeout(final ListenableFuture<V> future, long time, in withTimeout()
39 public static <V> ListenableFuture<V> withTimeout(final ListenableFuture<V> future, long time, in withTimeout()
50 return Futures.catchingAsync(future, Throwable.class, new AsyncFunction<Throwable, V>() { in withTimeout()
52 public ListenableFuture<V> apply(Throwable t) throws Exception { in withTimeout()
/packages/apps/Car/Radio/src/com/android/car/radio/util/
DRemote.java42 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/
DMetadataResponseListener.java28 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/apps/Dialer/java/com/android/contacts/common/util/
DMaterialColorMapUtils.java48 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()
/packages/apps/TV/tuner/tests/assets/
Dcapture_kqed.ts22 …��<�Ϝ�c1�2�"Fy�Δ�Gq������cE@dJ��$�~�:�&Fiʎ�W��.��Lo;lʄ�W��Nc3�H��&V�UN��'�h�Y��f;�<r G�…
26 …�i��Ɠ��m��4�/̬���1�1���7���_G�y�j_!$�����6E>�n��d��f�y�#V[�N�ժ���m=�(JaҶd-�L���� �=��>�I�� �pE@V�…
27 1�/��p�2�ٺ~߼b!�t�*�V��ZC{���UO_���·کg���W�+j}*L���G�f!N̯��3�WЩ�i�H�O͗Z)�/���;t<hȘ0�ߴ�…
94 …ɫ/�����K��ϧ��qgUN >� '}��H��\s����5�|�2S�MbEঢ;���vP�hAl@O"A��D�i���,czV��&3��#�7?s�Tϳ���eY…
100 F��W���o�Ǻ<"��5�c�aPi}W���� ��������6G�G#���ukK� ��A�LT�&�tʼ!��%?��K^��@��4���Vx�g�k��Xsn '…
105 ��4U�EjM���E�Q������.}F|�Vث�I���� EZ�jVI/cc4�؃�V7h���l�'�����Y�W�� YՖ�Px��V=嬤7�
133 ڗg�V/������n�B��f� ��!G�o���!7R�?��>�I��0�0�@V���
142 \����{{m�.gr ~�xc�E%��=�k�Q0����S��۹G�c�����6�MÓJ��t;$�� �s��V�lo�,^��&#���Χ��qg���W!,($��…
149 z�d���\���[1�����9�|���xןm�'&�@�Y�"V��v��g��L,G�3 .�E�}�G�A��0H�F����]`��
151 …�`�!:�8�#��i�p�V�̼*��Q�|a4��3<��ZP߀����;�?6�5W�QJh����40��i�+.�X(���V����Q!�ܙ�1��!�yMڙ�R�…
/packages/apps/Contacts/src/com/android/contacts/util/
DMaterialColorMapUtils.java154 int V = Math.max(b, Math.max(r, g)); in hue() local
159 if (V == temp) { in hue()
162 final float vtemp = V - temp; in hue()
163 final float cr = (V - r) / vtemp; in hue()
164 final float cg = (V - g) / vtemp; in hue()
165 final float cb = (V - b) / vtemp; in hue()
167 if (r == V) { in hue()
169 } else if (g == V) { in hue()

12345