/packages/apps/Dialer/src/com/android/dialer/util/ |
D | ExpirableCache.java | 87 public class ExpirableCache<K, V> { 96 public interface CachedValue<V> { 98 public V getValue(); in getValue() 112 private static class GenerationalCachedValue<V> implements ExpirableCache.CachedValue<V> { 114 public final V mValue; 124 public GenerationalCachedValue(V value, AtomicInteger cacheGeneration) { in GenerationalCachedValue() 132 public V getValue() { in getValue() 143 private LruCache<K, CachedValue<V>> mCache; 155 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache() 173 public CachedValue<V> getCachedValue(K key) { in getCachedValue() [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/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransfer.java | 75 private static final boolean V = Constants.VERBOSE; field in BluetoothOppTransfer 151 if (V) Log.v(TAG, "receive RFCOMM_ERROR msg"); in handleMessage() 162 if (V) Log.v(TAG, "Transfer receive RFCOMM_CONNECTED msg"); in handleMessage() 177 if (V) Log.v(TAG, "receive MSG_SHARE_COMPLETE for info " + info.mId); in handleMessage() 183 if (V) Log.v(TAG, "continue session for info " + mCurrentShare.mId + in handleMessage() 188 if (V) Log.v(TAG, "Batch " + mBatch.mId + " is done"); in handleMessage() 199 if (V) Log.v(TAG, "receive MSG_SESSION_COMPLETE for batch " + mBatch.mId); in handleMessage() 209 if (V) Log.v(TAG, "receive MSG_SESSION_ERROR for batch " + mBatch.mId); in handleMessage() 218 if (V) Log.v(TAG, "receive MSG_SHARE_INTERRUPTED for batch " + mBatch.mId); in handleMessage() 230 if (V) Log.v(TAG, "mTransport closed "); in handleMessage() [all …]
|
D | BluetoothOppService.java | 71 private static final boolean V = Constants.VERBOSE; field in BluetoothOppService 83 if (V) Log.v(TAG, "ContentObserver received notification"); in onChange() 149 if (V) Log.v(TAG, "onCreate"); in onCreate() 178 if (V) BluetoothOppPreference.getInstance(this).dump(); in onCreate() 184 if (V) Log.v(TAG, "onStartCommand"); in onStartCommand() 200 if (V) Log.v(TAG, "Starting RfcommListener"); in startListener() 248 if (V) Log.v(TAG, "Update mInfo.id " + msg.arg1 + " for data uri= " 336 if (V) Log.v(TAG, "start RfcommListener"); in startSocketListener() 338 if (V) Log.v(TAG, "RfcommListener started"); in startSocketListener() 343 if (V) Log.v(TAG, "onDestroy"); in onDestroy() [all …]
|
D | BluetoothOppRfcommListener.java | 55 private static final boolean V = Constants.VERBOSE; field in BluetoothOppRfcommListener 87 if (V) Log.v(TAG, "Create TCP ServerSocket"); in start() 97 if (V) Log.v(TAG, "Socket connected!"); in start() 109 if (V) Log.v(TAG, "TCP listen thread finished"); in start() 119 if (V) Log.v(TAG, "Starting RFCOMM listener...."); in start() 121 if (V) Log.v(TAG, "Started RFCOMM listener...."); in start() 130 if (V) Log.v(TAG, "Wait 300 ms"); in start() 151 if (V) Log.v(TAG, "Accepting connection..."); in start() 161 if (V) Log.v(TAG, "Accepted connection from " in start() 196 if (V) Log.v(TAG, "close mTcpServerSocket"); in stop() [all …]
|
D | BluetoothOppReceiver.java | 58 private static final boolean V = Constants.VERBOSE; field in BluetoothOppReceiver 68 if (V) Log.v(TAG, "Received BLUETOOTH_STATE_CHANGED_ACTION, BLUETOOTH_STATE_ON"); in onReceive() 97 if (V) Log.v(TAG, "Received BT device selected intent, bt device: " + remoteDevice); in onReceive() 114 if (V) Log.v(TAG, "Receiver ACTION_INCOMING_FILE_CONFIRM"); in onReceive() 126 if (V) Log.v(TAG, "notMgr.cancel called"); in onReceive() 129 if (V) Log.v(TAG, "Receiver INCOMING_FILE_NOTIFICATION"); in onReceive() 135 if (V) { in onReceive() 168 if (V) Log.v(TAG, "notMgr.cancel called"); in onReceive() 171 if (V) Log.v(TAG, "Received ACTION_OPEN_OUTBOUND_TRANSFER."); in onReceive() 178 if (V) Log.v(TAG, "Received ACTION_OPEN_INBOUND_TRANSFER."); in onReceive() [all …]
|
D | BluetoothOppObexClientSession.java | 64 private static final boolean V = Constants.VERBOSE; field in BluetoothOppObexClientSession 99 if (V) Log.v(TAG, "waiting for thread to terminate"); in stop() 103 if (V) Log.v(TAG, "Interrupted waiting for thread to join"); in stop() 166 if (V) Log.v(TAG, "acquire partial WakeLock"); in run() 172 if (V) Log.v(TAG, "Client thread was interrupted (1), exiting"); in run() 195 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 …]
|
D | BluetoothOppNotification.java | 57 private static final boolean V = Constants.VERBOSE; field in BluetoothOppNotification 147 if (V) Log.v(TAG, "update too frequent, put in queue"); in updateNotification() 151 if (V) Log.v(TAG, "send message"); in updateNotification() 171 if (V) Log.v(TAG, "new notify threadi!"); 174 if (V) Log.v(TAG, "send delay message"); 177 if (V) Log.v(TAG, "previous thread is not finished yet"); 226 if (V) Log.v(TAG, "mUpdateCompleteNotification = " + mUpdateCompleteNotification); in updateActiveNotification() 274 if (V) Log.v(TAG, "mDirection ERROR!"); in updateActiveNotification() 283 if (V) Log.v(TAG, "ID=" + item.id + "; batchID=" + batchID + "; totoalCurrent" in updateActiveNotification() 323 if (V) Log.v(TAG, "mCurrentBytes: " + item.totalCurrent + in updateActiveNotification() [all …]
|
D | BluetoothOppObexServerSession.java | 69 private static final boolean V = Constants.VERBOSE; field in BluetoothOppObexServerSession 196 if (V) Constants.logHeader(request); in onPut() 226 … if (V) Log.v(TAG, "Mimetype guessed from extension " + extension + " is " + type); in onPut() 299 if (V) Log.d(TAG, "acquire full WakeLock"); in onPut() 307 if (V) Log.v(TAG, "insert contentUri: " + contentUri); in onPut() 308 if (V) Log.v(TAG, "mLocalShareInfoId = " + mLocalShareInfoId); in onPut() 312 if (V) Log.v(TAG, "acquire partial WakeLock"); in onPut() 326 if (V) Log.v(TAG, "MSG_CONNECT_TIMEOUT sent"); in onPut() 330 if (V) Log.v(TAG, "Interrupted in onPut blocking"); in onPut() 351 if (V) Log.v(TAG, "after confirm: userAccepted=" + mAccepted); in onPut() [all …]
|
D | BluetoothOppManager.java | 62 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() 284 if (V) Log.v(TAG, "BLUETOOTH_SERVICE is not available! "); in isEnabled() 336 if (V) Log.v(TAG, "Active InsertShareThread number is : " + mInsertShareThreadNum); in startTransfer() 401 if (V) Log.v(TAG, "Thread id is: " + this.getId()); in InsertShareInfoThread() 431 if (V) Log.v(TAG, "Got mimetype: " + contentType + " Got uri: " + fileUri); in insertMultipleShare() [all …]
|
D | BluetoothOppIncomingFileConfirmActivity.java | 64 private static final boolean V = Constants.VERBOSE; field in BluetoothOppIncomingFileConfirmActivity 93 if (V) Log.d(TAG, "onCreate(): action = " + getIntent().getAction()); in onCreate() 101 if (V) Log.e(TAG, "Error: Can not get data from db"); in onCreate() 115 if (V) Log.v(TAG, "mTimeout: " + mTimeout); in onCreate() 120 if (V) Log.v(TAG, "BluetoothIncomingFileConfirmActivity: Got uri:" + mUri); in onCreate() 186 if (V) Log.v(TAG, "onRestoreInstanceState() mTimeout: " + mTimeout); in onRestoreInstanceState() 195 if (V) Log.v(TAG, "onSaveInstanceState() mTimeout: " + mTimeout); in onSaveInstanceState() 216 if (V) Log.v(TAG, "Received DISMISS_TIMEOUT_DIALOG msg.");
|
/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/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/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManager.java | 75 private static final boolean V = BluetoothPbapService.VERBOSE; field in BluetoothPbapVcardManager 160 if (V) Log.v(TAG, "getPhonebookSize size = " + size + " type = " + type); in getPhonebookSize() 272 if (V) Log.v(TAG, "getPhonebookNameList, order by index"); in getPhonebookNameList() 275 if (V) Log.v(TAG, "getPhonebookNameList, order by alpha"); in getPhonebookNameList() 315 if (V) { in getContactNamesByNumber() 364 if (V) Log.v(TAG, "Call Log query startPointId = " + startPointId); in composeAndSendCallLogVcards() 371 if (V) Log.v(TAG, "Call log query endPointId = " + endPointId); in composeAndSendCallLogVcards() 399 if (V) Log.v(TAG, "Call log query selection is: " + selection); in composeAndSendCallLogVcards() 502 if (V) Log.v(TAG, "contactIdsCursor.addRow: " + currentContactId); in filterByRange() 530 if (V) timestamp = System.currentTimeMillis(); in composeContactsAndSendVCards() [all …]
|
D | BluetoothPbapObexServer.java | 65 private static final boolean V = BluetoothPbapService.VERBOSE; field in BluetoothPbapObexServer 183 if (V) logHeader(request); in onConnect() 219 if (V) Log.v(TAG, "onConnect(): uuid is ok, will send out " + in onConnect() 232 if (V) logHeader(req); in onDisconnect() 239 if (V) Log.v(TAG, "onDisconnect(): msg MSG_SESSION_DISCONNECTED sent out."); in onDisconnect() 268 if (V) logHeader(request); in onSetPath() 304 if (V) Log.v(TAG, "after setPath, mCurrentPath == " + mCurrentPath); in onSetPath() 339 if (V) logHeader(request); in onGet() 634 if (V) Log.v(TAG, "itemsFound =" + itemsFound); in sendVcardListingXml() 728 if (V) Log.v(TAG, "Send Data complete!"); in pushBytes() [all …]
|
/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/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContent.java | 71 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapContent 472 if (V) Log.d(TAG, "setProtected: " + protect + "\n"); in setProtected() 493 if (V) Log.d(TAG, "setThreadId: " + threadId + "\n"); in setThreadId() 504 if (V) Log.d(TAG, "setThreadName: " + threadName + "\n"); in setThreadName() 528 if (V) Log.d(TAG, "setSent: " + sent); in setSent() 546 if (V) Log.d(TAG, "setRead: " + setread); in setRead() 556 if (V) Log.d(TAG, "setRead: " + setread); in setConvoRead() 578 if (V) Log.d(TAG, "setPriority: " + priority); in setPriority() 628 if (V) Log.d(TAG, "setAttachmentSize: " + size + "\n" + in setAttachment() 662 if (V) Log.d(TAG, "setText: " + hasText); in setText() [all …]
|
D | BluetoothMapAppObserver.java | 47 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapAppObserver 71 if(V) Log.d(TAG, "getApp(): Looking for " + authoritiesName); in getApp() 73 if(V) Log.d(TAG, " Comparing: " + app.getProviderAuthority()); in getApp() 75 if(V) Log.d(TAG, " found " + app.mBase_uri_no_account); in getApp() 79 if(V) Log.d(TAG, " NOT FOUND!"); in getApp() 108 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_RENAMED"); in handleAccountChanges() 116 if(V)Log.d(TAG, "UPDATE_MAS_INSTANCES_ACCOUNT_ADDED " + in handleAccountChanges() 122 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_REMOVED " + in handleAccountChanges() 134 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_REMOVED " + removedAcc); in handleAccountChanges() 140 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_ADDED " + addedAcc); in handleAccountChanges() [all …]
|
D | BluetoothMapObexServer.java | 53 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapObexServer 307 if (V) logHeader(request); in onConnect() 366 if (V) Log.v(TAG, "onConnect(): uuid is ok, will send out " + in onConnect() 381 if (V) logHeader(req); in onDisconnect() 388 if (V) Log.v(TAG, "onDisconnect(): msg MSG_SESSION_DISCONNECTED sent out."); in onDisconnect() 412 if (V) logHeader(request); in onPut() 420 if(V) { in onPut() 425 if(V) { in onPut() 431 if(V) { in onPut() 438 if(V) { in onPut() [all …]
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
D | ObexTestDataHandler.java | 13 static final boolean V = true; field in ObexTestDataHandler 53 if(V) Log.v(TAG,result); in publishProgressIfNeeded() 70 if(V) Log.v(TAG, "readData() started data to read: " + params.bytesToSend); in readData() 75 if(V) Log.v(TAG, "Read()"); in readData() 77 if(V) Log.v(TAG, "Read() done - count=" + count); in readData() 92 if(V) Log.v(TAG, "Throttle Sleep():" + sleepTime); in readData() 116 if(V) Log.v(TAG, "writeData() started data to write: " + params.bytesToSend); in writeData() 120 if(V) Log.v(TAG, "Write nTx " + nTx + " packets"); in writeData() 122 if(V) Log.v(TAG, "Write()"); in writeData() 133 if(V) Log.v(TAG, "Write mBytesTransfered: " + mBytesTransfered); in writeData() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallIdMapper.java | 28 static class BiMap<K, V> { 29 private Map<K, V> mPrimaryMap = new ArrayMap<>(); 30 private Map<V, K> mSecondaryMap = new ArrayMap<>(); 32 public boolean put(K key, V value) { in put() 48 V value = getValue(key); in remove() 56 public boolean removeValue(V value) { in removeValue() 63 public V getValue(K key) { in getValue() 67 public K getKey(V value) { in getKey()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | MaterialColorMapUtils.java | 151 int V = Math.max(b, Math.max(r, g)); in hue() local 156 if (V == temp) { in hue() 159 final float vtemp = V - temp; in hue() 160 final float cr = (V - r) / vtemp; in hue() 161 final float cg = (V - g) / vtemp; in hue() 162 final float cb = (V - b) / vtemp; in hue() 164 if (r == V) { in hue() 166 } else if (g == V) { in hue()
|
/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()
|