Home
last modified time | relevance | path

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

1234

/packages/apps/Dialer/java/com/android/dialer/util/
DExpirableCache.java91 public class ExpirableCache<K, V> {
103 private LruCache<K, CachedValue<V>> mCache;
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/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransfer.java75 private static final boolean V = Constants.VERBOSE; field in BluetoothOppTransfer
122 if (V) in onReceive()
129 if (V) in onReceive()
219 if (V) Log.v(TAG, "receive TRANSPORT_ERROR msg"); in handleMessage()
230 if (V) Log.v(TAG, "Transfer receive TRANSPORT_CONNECTED msg"); in handleMessage()
245 if (V) Log.v(TAG, "receive MSG_SHARE_COMPLETE for info " + info.mId); in handleMessage()
251 if (V) Log.v(TAG, "continue session for info " + mCurrentShare.mId + in handleMessage()
256 if (V) Log.v(TAG, "Batch " + mBatch.mId + " is done"); in handleMessage()
268 if (V) Log.v(TAG, "receive MSG_SESSION_COMPLETE for batch " + mBatch.mId); in handleMessage()
278 if (V) Log.v(TAG, "receive MSG_SESSION_ERROR for batch " + mBatch.mId); in handleMessage()
[all …]
DBluetoothOppService.java81 private static final boolean V = Constants.VERBOSE; field in BluetoothOppService
98 if (V) Log.v(TAG, "ContentObserver received notification"); in onChange()
160 if (V) Log.v(TAG, "onCreate"); in create()
185 if (V) BluetoothOppPreference.getInstance(this).dump(); in create()
191 if (V) Log.v(TAG, "start()"); in start()
205 if (V) Log.v(TAG, "Starting RfcommListener"); in startListener()
259 if (V) Log.v(TAG, "Update mInfo.id " + msg.arg1 + " for data uri= "
368 if (V) Log.v(TAG, "onDestroy"); in cleanup()
400 if (V) Log.v(TAG, "Bluetooth state changed: STATE_ON");
425 if (V) Log.v(TAG, "Bluetooth state changed: STATE_TURNING_OFF");
[all …]
DBluetoothOppReceiver.java58 private static final boolean V = Constants.VERBOSE; field in BluetoothOppReceiver
90 if (V) Log.v(TAG, "Receiver ACTION_INCOMING_FILE_CONFIRM"); in onReceive()
99 if (V) Log.v(TAG, "Receiver ACTION_DECLINE"); in onReceive()
108 if (V) Log.v(TAG, "Receiver ACTION_ACCEPT"); in onReceive()
115 if (V) { in onReceive()
145 if (V) Log.v(TAG, "Received ACTION_OPEN_OUTBOUND_TRANSFER."); in onReceive()
152 if (V) Log.v(TAG, "Received ACTION_OPEN_INBOUND_TRANSFER."); in onReceive()
159 if (V) Log.v(TAG, "Received ACTION_OPEN_RECEIVED_FILES."); in onReceive()
167 if (V) Log.v(TAG, "Receiver hide for " + intent.getData()); in onReceive()
182 if (V) Log.v(TAG, "Action_hide received and db updated"); in onReceive()
[all …]
DBluetoothOppObexClientSession.java65 private static final boolean V = Constants.VERBOSE; field in BluetoothOppObexClientSession
100 if (V) Log.v(TAG, "waiting for thread to terminate"); in stop()
104 if (V) Log.v(TAG, "Interrupted waiting for thread to join"); in stop()
171 if (V) Log.v(TAG, "acquire partial WakeLock"); in run()
177 if (V) Log.v(TAG, "Client thread was interrupted (1), exiting"); in run()
200 if (V) Log.v(TAG, "release partial WakeLock"); in run()
309 if (V) Log.v(TAG, "Client thread processShareInfo() " + mInfo.mId); in processShareInfo()
313 if (V) Log.v(TAG, "BluetoothOppSendFileInfo get invalid file"); in processShareInfo()
317 if (V) { in processShareInfo()
362 if (V) Log.v(TAG, "put headerset for " + fileInfo.mFileName); in sendFile()
[all …]
DBluetoothOppManager.java62 private static final boolean V = Constants.VERBOSE; field in BluetoothOppManager
146 if (V) Log.v(TAG, "BLUETOOTH_SERVICE is not started! "); in init()
162 if (V) Log.v(TAG, "Cleaning out whitelist entry " + entry.first); in cleanupWhitelist()
201 if (V) Log.v(TAG, "restoreApplicationData! " + mSendingFlag + mMultipleFlag in restoreApplicationData()
210 if (V) Log.v(TAG, "Uri in batch: " + Uri.parse(splitUri[i])); in restoreApplicationData()
246 if (V) Log.v(TAG, "Application data stored to SharedPreference! "); in storeApplicationData()
288 if (V) Log.v(TAG, "BLUETOOTH_SERVICE is not available! "); in isEnabled()
340 if (V) Log.v(TAG, "Active InsertShareThread number is : " + mInsertShareThreadNum); in startTransfer()
405 if (V) Log.v(TAG, "Thread id is: " + this.getId()); in InsertShareInfoThread()
435 if (V) Log.v(TAG, "Got mimetype: " + contentType + " Got uri: " + fileUri); in insertMultipleShare()
[all …]
DBluetoothOppNotification.java62 private static final boolean V = Constants.VERBOSE; field in BluetoothOppNotification
163 if (V) Log.v(TAG, "update too frequent, put in queue"); in updateNotification()
167 if (V) Log.v(TAG, "send message"); in updateNotification()
187 if (V) Log.v(TAG, "new notify threadi!");
190 if (V) Log.v(TAG, "send delay message");
193 if (V) Log.v(TAG, "previous thread is not finished yet");
242 if (V) Log.v(TAG, "mUpdateCompleteNotification = " + mUpdateCompleteNotification); in updateActiveNotification()
290 if (V) Log.v(TAG, "mDirection ERROR!"); in updateActiveNotification()
299 if (V) Log.v(TAG, "ID=" + item.id + "; batchID=" + batchID + "; totoalCurrent" in updateActiveNotification()
341 if (V) Log.v(TAG, "mCurrentBytes: " + item.totalCurrent + in updateActiveNotification()
[all …]
DBluetoothOppObexServerSession.java71 private static final boolean V = Constants.VERBOSE; field in BluetoothOppObexServerSession
199 if (V) Constants.logHeader(request); in onPut()
229 … if (V) Log.v(TAG, "Mimetype guessed from extension " + extension + " is " + type); in onPut()
298 if (V) Log.v(TAG, "insert contentUri: " + contentUri); in onPut()
299 if (V) Log.v(TAG, "mLocalShareInfoId = " + mLocalShareInfoId); in onPut()
313 if (V) Log.v(TAG, "MSG_CONNECT_TIMEOUT sent"); in onPut()
317 if (V) Log.v(TAG, "Interrupted in onPut blocking"); in onPut()
338 if (V) Log.v(TAG, "after confirm: userAccepted=" + mAccepted); in onPut()
460 if (V) timestamp = System.currentTimeMillis(); in receiveFile()
473 if (V) { in receiveFile()
[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/UnifiedEmail/src/com/android/mail/utils/
DDequeMap.java30 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 …]
DLruCache.java28 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/
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/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java78 private static final boolean V = BluetoothPbapService.VERBOSE; field in BluetoothPbapVcardManager
167 if (V) Log.v(TAG, "getPhonebookSize size = " + size + " type = " + type); in getPhonebookSize()
351 if (V) Log.v(TAG, "Checking selected bits in the vcard composer" + vcard); in getSelectedPhonebookNameList()
367 if (V) Log.v(TAG, "getPhonebookNameList, order by index"); in getSelectedPhonebookNameList()
370 if (V) Log.v(TAG, "getPhonebookNameList, order by alpha"); in getSelectedPhonebookNameList()
409 if (V) { in getContactNamesByNumber()
492 if (V) Log.v(TAG, "Call Log query startPointId = " + startPointId); in composeAndSendSelectedCallLogVcards()
499 if (V) Log.v(TAG, "Call log query endPointId = " + endPointId); in composeAndSendSelectedCallLogVcards()
527 if (V) Log.v(TAG, "Call log query selection is: " + selection); in composeAndSendSelectedCallLogVcards()
642 if (V) Log.v(TAG, "contactIdsCursor.addRow: " + currentContactId); in filterByRange()
[all …]
/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/map/
DBluetoothMapAppObserver.java45 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapAppObserver
70 if(V) Log.d(TAG, "getApp(): Looking for " + authoritiesName); in getApp()
72 if(V) Log.d(TAG, " Comparing: " + app.getProviderAuthority()); in getApp()
74 if(V) Log.d(TAG, " found " + app.mBase_uri_no_account); in getApp()
78 if(V) Log.d(TAG, " NOT FOUND!"); in getApp()
111 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_RENAMED"); in handleAccountChanges()
119 if(V)Log.d(TAG, "UPDATE_MAS_INSTANCES_ACCOUNT_ADDED " + in handleAccountChanges()
125 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_REMOVED " + in handleAccountChanges()
137 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_REMOVED " + removedAcc); in handleAccountChanges()
143 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_ADDED " + addedAcc); in handleAccountChanges()
[all …]
DBluetoothMapContent.java66 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapContent
475 if (V) Log.d(TAG, "setProtected: " + protect + "\n"); in setProtected()
496 if (V) Log.d(TAG, "setThreadId: " + threadId + "\n"); in setThreadId()
507 if (V) Log.d(TAG, "setThreadName: " + threadName + "\n"); in setThreadName()
531 if (V) Log.d(TAG, "setSent: " + sent); in setSent()
549 if (V) Log.d(TAG, "setRead: " + setread); in setRead()
559 if (V) Log.d(TAG, "setRead: " + setread); in setConvoRead()
581 if (V) Log.d(TAG, "setPriority: " + priority); in setPriority()
631 if (V) Log.d(TAG, "setAttachmentSize: " + size + "\n" + in setAttachment()
665 if (V) Log.d(TAG, "setText: " + hasText); in setText()
[all …]
DBluetoothMapObexServer.java54 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapObexServer
308 if (V) logHeader(request); in onConnect()
367 if (V) Log.v(TAG, "onConnect(): uuid is ok, will send out " + in onConnect()
382 if (V) logHeader(req); in onDisconnect()
389 if (V) Log.v(TAG, "onDisconnect(): msg MSG_SESSION_DISCONNECTED sent out."); in onDisconnect()
418 if (V) logHeader(request); in onPut()
426 if(V) { in onPut()
431 if(V) { in onPut()
437 if(V) { in onPut()
448 if(V) { in onPut()
[all …]
DBluetoothMnsObexClient.java50 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMnsObexClient
126 if (V) Log.v(TAG, "Reg masId: " + msg.arg1 + " notfStatus: " + msg.arg2); in handleMessage()
146 if (V) Log.v(TAG, "SearchReg masId: " + msg.arg1 + " notfStatus: " + msg.arg2); in handleMessage()
254 if (V) Log.v(TAG, "Send registerObserver: " + sendObserverRegistration); in handleRegistration()
269 if (V) Log.v(TAG, "setMNSRecord"); in setMnsRecord()
285 if (V) Log.v(TAG, "Handle registration for last saved request"); in setMnsRecord()
290 if (V) Log.v(TAG, "SearchReg masId: " + msgReg.arg1 in setMnsRecord()
297 if (V) Log.v(TAG, "No last saved MNSSDPInfo to handle"); in setMnsRecord()
425 if (V) Log.v(TAG, "Send headerset Event "); in sendEventHandler()
438 if (V) Log.v(TAG, "Send headerset Event "); in sendEventHandler()
[all …]
/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/apps/Contacts/src/com/android/contacts/util/concurrent/
DFuturesUtil.java25 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/services/Telecomm/src/com/android/server/telecom/
DCallIdMapper.java31 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/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.java47 int V = Math.max(b, Math.max(r, g)); in hue() local
52 if (V == temp) { in hue()
55 final float vtemp = V - temp; in hue()
56 final float cr = (V - r) / vtemp; in hue()
57 final float cg = (V - g) / vtemp; in hue()
58 final float cb = (V - b) / vtemp; in hue()
60 if (r == V) { in hue()
62 } else if (g == V) { in hue()

1234