/packages/apps/Camera/tests/src/com/android/camera/gallery/ |
D | LruCacheUnitTests.java | 9 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testPut() local 12 cache.put(key, value); in testPut() 13 assertEquals(value, cache.get(key)); in testPut() 17 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testTracingInUsedObject() local 20 cache.put(key, value); in testTracingInUsedObject() 22 cache.put(i + 10, i * i); in testTracingInUsedObject() 25 assertEquals(value, cache.get(key)); in testTracingInUsedObject() 29 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testLruAlgorithm() local 30 cache.put(0, new Integer(0)); in testLruAlgorithm() 32 cache.put(i + 1, i * i); in testLruAlgorithm() [all …]
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
D | LruCacheUnitTests.java | 9 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testPut() local 12 cache.put(key, value); in testPut() 13 assertEquals(value, cache.get(key)); in testPut() 17 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testTracingInUsedObject() local 20 cache.put(key, value); in testTracingInUsedObject() 22 cache.put(i + 10, i * i); in testTracingInUsedObject() 25 assertEquals(value, cache.get(key)); in testTracingInUsedObject() 29 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testLruAlgorithm() local 30 cache.put(0, new Integer(0)); in testLruAlgorithm() 32 cache.put(i + 1, i * i); in testLruAlgorithm() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | SplitAggregateView.java | 237 SplitAggregateItemCache cache = (SplitAggregateItemCache)convertView.getTag(); in getView() local 238 if (cache == null) { in getView() 239 cache = new SplitAggregateItemCache(); in getView() 240 cache.name = (TextView)convertView.findViewById(R.id.name); in getView() 241 cache.additionalData = (TextView)convertView.findViewById(R.id.additionalData); in getView() 242 cache.sourceIcon = (ImageView)convertView.findViewById(R.id.sourceIcon); in getView() 243 convertView.setTag(cache); in getView() 247 cache.name.setText(info.name); in getView() 248 cache.additionalData.setText(info.getAdditionalData()); in getView() 257 cache.sourceIcon.setImageDrawable(icon); in getView() [all …]
|
D | ContactsListActivity.java | 2405 final ContactListItemCache cache = new ContactListItemCache(); in newView() local 2406 cache.header = view.findViewById(R.id.header); in newView() 2407 cache.headerText = (TextView)view.findViewById(R.id.header_text); in newView() 2408 cache.divider = view.findViewById(R.id.list_divider); in newView() 2409 cache.nameView = (TextView) view.findViewById(R.id.name); in newView() 2410 cache.callView = view.findViewById(R.id.call_view); in newView() 2411 cache.callButton = (ImageView) view.findViewById(R.id.call_button); in newView() 2412 if (cache.callButton != null) { in newView() 2413 cache.callButton.setOnClickListener(ContactsListActivity.this); in newView() 2415 cache.labelView = (TextView) view.findViewById(R.id.label); in newView() [all …]
|
/packages/inputmethods/PinyinIME/jni/share/ |
D | userdict.cpp | 1364 UserDictCache *cache = &caches_[searchable->splids_len - 1]; in _get_lpis() local 1365 if (cache->head == cache->tail) in _get_lpis() 1369 uint16 i = cache->head; in _get_lpis() 1373 if (cache->signatures[i][j] != searchable->signature[j]) in _get_lpis() 1380 if (i == cache->tail) in _get_lpis() 1384 *offset = cache->offsets[i]; in _get_lpis() 1385 *length = cache->lengths[i]; in _get_lpis() 1393 UserDictCache *cache = &caches_[searchable->splids_len - 1]; in _get_lpis() local 1394 uint16 next = cache->tail; in _get_lpis() 1396 cache->offsets[next] = offset; in _get_lpis() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AllAppsList.java | 97 ApplicationInfo item = AppInfoCache.cache(info, context, bubble); in addPackage() 151 applicationInfo = AppInfoCache.cache(info, context, bubble); in updatePackage()
|
D | AppInfoCache.java | 62 public static ApplicationInfo cache(ResolveInfo info, Context context, in cache() method in AppInfoCache
|
D | LauncherModel.java | 968 mAllAppsList.add(AppInfoCache.cache(apps.get(i), context, bubble)); in loadAllApps()
|
/packages/apps/Mms/src/com/android/mms/data/ |
D | Contact.java | 231 ContactInfoCache cache = ContactInfoCache.getInstance(); in updateContact() local 232 ContactInfoCache.CacheEntry entry = cache.getContactInfo(c.mNumber); in updateContact()
|
/packages/apps/Launcher/src/com/android/launcher/ |
D | LauncherModel.java | 185 final HashMap<ComponentName, ApplicationInfo> cache = mAppInfoCache; in addPackage() local 189 adapter.add(makeAndCacheApplicationInfo(packageManager, cache, info, launcher)); in addPackage() 220 final HashMap<ComponentName, ApplicationInfo> cache = mAppInfoCache; in removePackage() local 224 cache.remove(info.intent.getComponent()); in removePackage() 387 final HashMap<ComponentName, ApplicationInfo> cache = mAppInfoCache; in removeDisabledActivities() local 391 cache.remove(info.intent.getComponent()); in removeDisabledActivities()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 1468 String value, HashMap<String, Long> cache) { in getCachedId() argument 1470 if (cache.containsKey(value)) { in getCachedId() 1471 return cache.get(value); in getCachedId() 1487 cache.put(value, id); in getCachedId()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 2393 String artist, HashMap<String, Long> cache, Uri srcuri) { in getKeyIdForName() argument 2473 if (cache != null && ! isUnknown) { in getKeyIdForName() 2474 cache.put(cacheName, rowId); in getKeyIdForName()
|