/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/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/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/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 | 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 | 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 | 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() 124 if (V) Log.v(TAG, "Receiver ACTION_DECLINE"); in onReceive() 133 if (V) Log.v(TAG, "Receiver ACTION_ACCEPT"); in onReceive() 142 if (V) { in onReceive() 173 if (V) Log.v(TAG, "Received ACTION_OPEN_OUTBOUND_TRANSFER."); in onReceive() 180 if (V) Log.v(TAG, "Received ACTION_OPEN_INBOUND_TRANSFER."); in onReceive() 187 if (V) Log.v(TAG, "Received ACTION_OPEN_RECEIVED_FILES."); 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 | 59 private static final boolean V = Constants.VERBOSE; field in BluetoothOppNotification 149 if (V) Log.v(TAG, "update too frequent, put in queue"); in updateNotification() 153 if (V) Log.v(TAG, "send message"); in updateNotification() 173 if (V) Log.v(TAG, "new notify threadi!"); 176 if (V) Log.v(TAG, "send delay message"); 179 if (V) Log.v(TAG, "previous thread is not finished yet"); 228 if (V) Log.v(TAG, "mUpdateCompleteNotification = " + mUpdateCompleteNotification); in updateActiveNotification() 276 if (V) Log.v(TAG, "mDirection ERROR!"); in updateActiveNotification() 285 if (V) Log.v(TAG, "ID=" + item.id + "; batchID=" + batchID + "; totoalCurrent" in updateActiveNotification() 325 if (V) Log.v(TAG, "mCurrentBytes: " + item.totalCurrent + in updateActiveNotification() [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.");
|
D | BluetoothOppObexServerSession.java | 69 private static final boolean V = Constants.VERBOSE; field in BluetoothOppObexServerSession 192 if (V) Constants.logHeader(request); in onPut() 222 … if (V) Log.v(TAG, "Mimetype guessed from extension " + extension + " is " + type); in onPut() 291 if (V) Log.v(TAG, "insert contentUri: " + contentUri); in onPut() 292 if (V) Log.v(TAG, "mLocalShareInfoId = " + mLocalShareInfoId); in onPut() 306 if (V) Log.v(TAG, "MSG_CONNECT_TIMEOUT sent"); in onPut() 310 if (V) Log.v(TAG, "Interrupted in onPut blocking"); in onPut() 331 if (V) Log.v(TAG, "after confirm: userAccepted=" + mAccepted); in onPut() 453 if (V) timestamp = System.currentTimeMillis(); in receiveFile() 466 if (V) { in receiveFile() [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/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/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/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapAppObserver.java | 47 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapAppObserver 72 if(V) Log.d(TAG, "getApp(): Looking for " + authoritiesName); in getApp() 74 if(V) Log.d(TAG, " Comparing: " + app.getProviderAuthority()); in getApp() 76 if(V) Log.d(TAG, " found " + app.mBase_uri_no_account); in getApp() 80 if(V) Log.d(TAG, " NOT FOUND!"); in getApp() 113 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_RENAMED"); in handleAccountChanges() 121 if(V)Log.d(TAG, "UPDATE_MAS_INSTANCES_ACCOUNT_ADDED " + in handleAccountChanges() 127 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_REMOVED " + in handleAccountChanges() 139 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_REMOVED " + removedAcc); in handleAccountChanges() 145 if(V)Log.d(TAG, " UPDATE_MAS_INSTANCES_ACCOUNT_ADDED " + addedAcc); in handleAccountChanges() [all …]
|
D | BluetoothMnsObexClient.java | 50 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 …]
|
D | BluetoothMapAccountItem.java | 30 private static final boolean V = BluetoothMapService.VERBOSE; field in BluetoothMapAccountItem 97 if(V) Log.d(TAG, "Wrong id : " + this.mId + " vs " + other.mId); in compareTo() 101 if(V) Log.d(TAG, "Wrong name : " + this.mName + " vs " + other.mName); in compareTo() 105 if(V) Log.d(TAG, "Wrong packageName : " + this.mPackageName + " vs " in compareTo() 110 if(V) Log.d(TAG, "Wrong providerName : " + this.mProviderAuthority + " vs " in compareTo() 115 if(V) Log.d(TAG, "Wrong isChecked : " + this.mIsChecked + " vs " + other.mIsChecked); in compareTo() 119 if(V) Log.d(TAG, "Wrong appType : " + this.mType + " vs " + other.mType); in compareTo()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManager.java | 72 private static final boolean V = BluetoothPbapService.VERBOSE; field in BluetoothPbapVcardManager 157 if (V) Log.v(TAG, "getPhonebookSize size = " + size + " type = " + type); in getPhonebookSize() 312 if (V) { in getContactNamesByNumber() 361 if (V) Log.v(TAG, "Call Log query startPointId = " + startPointId); in composeAndSendCallLogVcards() 368 if (V) Log.v(TAG, "Call log query endPointId = " + endPointId); in composeAndSendCallLogVcards() 396 if (V) Log.v(TAG, "Call log query selection is: " + selection); in composeAndSendCallLogVcards() 504 if (V) Log.v(TAG, "contactIdsCursor.addRow: " + currentContactId); in filterByRange() 532 if (V) timestamp = System.currentTimeMillis(); in composeContactsAndSendVCards() 591 if (V) Log.v(TAG, "vCard from composer: " + vcard); in composeContactsAndSendVCards() 596 if (V) Log.v(TAG, "vCard after cleanup: " + vcard); in composeContactsAndSendVCards() [all …]
|
D | BluetoothPbapReceiver.java | 45 private static final boolean V = BluetoothPbapService.VERBOSE; field in BluetoothPbapReceiver 49 if (V) Log.v(TAG, "PbapReceiver onReceive "); in onReceive() 56 if (V) Log.v(TAG,"***********action = " + action); in onReceive() 62 if (V) Log.v(TAG,"***********state = " + state); in onReceive() 77 … if (V) Log.v(TAG,"***********Calling start service!!!! with action = " + in.getAction()); in onReceive()
|