| /libcore/luni/src/main/java/libcore/util/ |
| ZoneInfoDB.java | 70 private final BasicLruCache<String, ZoneInfo> cache = field in class:ZoneInfoDB.TzData 234 // This creates a TimeZone, which is quite expensive. Hence the cache. 235 // Note that icu4c does the same (without the cache), so if you're 239 rawUtcOffsetsCache[i] = cache.get(ids[i]).getRawOffset(); 253 ZoneInfo zoneInfo = cache.get(id); 254 // The object from the cache is cloned because TimeZone / ZoneInfo are mutable. 259 return cache.get(id) != null;
|
| /libcore/ojluni/src/main/java/sun/net/www/http/ |
| KeepAliveCache.java | 35 * A class that implements a cache of idle Http connections for keep-alive 48 * refers to the number of idle connections per destination (in the cache) only. 75 * Register this URL and HttpClient (that supports keep-alive) with the cache 94 final KeepAliveCache cache = this; local 106 keepAliveTimer = new Thread(grp, cache, "Keep-Alive-Timer"); 158 if (v == null) { // nothing in cache yet 243 // sleep time in milliseconds, before cache clear
|
| /libcore/ojluni/src/main/java/sun/util/calendar/ |
| JulianCalendar.java | 148 public long getFixedDate(int jyear, int month, int dayOfMonth, BaseCalendar.Date cache) { 151 // Look up the one year cache 152 if (cache != null && cache.hit(jyear)) { 154 return cache.getCachedJan1(); 156 return cache.getCachedJan1() + getDayOfYear(jyear, month, dayOfMonth) - 1; 177 // If it's January 1, update the cache. 178 if (cache != null && isJan1) { 179 cache.setCache(jyear, days, CalendarUtils.isJulianLeapYear(jyear) ? 366 : 365); 226 // as cache table looku [all...] |
| /packages/apps/Contacts/src/com/android/contacts/ |
| SplitAggregateView.java | 240 SplitAggregateItemCache cache = (SplitAggregateItemCache)convertView.getTag(); local 241 if (cache == null) { 242 cache = new SplitAggregateItemCache(); 243 cache.name = (TextView)convertView.findViewById(R.id.name); 244 cache.additionalData = (TextView)convertView.findViewById(R.id.additionalData); 245 cache.sourceIcon = (ImageView)convertView.findViewById(R.id.sourceIcon); 246 convertView.setTag(cache); 250 cache.name.setText(info.name); 251 cache.additionalData.setText(info.getAdditionalData()); 259 cache.sourceIcon.setImageDrawable(icon) [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/data/ |
| LocalMergeAlbum.java | 228 ArrayList<MediaItem> cache = null; local 233 cache = mCacheRef.get(); 234 if (cache == null) { 240 cache = mBaseSet.getMediaItem(index, PAGE_SIZE); 241 mCacheRef = new SoftReference<ArrayList<MediaItem>>(cache); 245 if (index < mStartPos || index >= mStartPos + cache.size()) { 249 return cache.get(index - mStartPos);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
| CacheProcessing.java | 22 import com.android.gallery3d.filtershow.cache.BitmapCache; 37 Bitmap cache; field in class:CacheProcessing.CacheStep 122 environment.cache(source); 145 // New set of filters, let's clear the cache and rebuild it. 154 // First, let's find how similar we are in our cache 169 environment.cache(cacheStep.cache); 181 && mSteps.elementAt(findBaseImageIndex).cache == null) { 184 cacheBitmap = mSteps.elementAt(findBaseImageIndex).cache; 200 environment.cache(prev) [all...] |
| FilterEnvironment.java | 24 import com.android.gallery3d.filtershow.cache.BitmapCache; 58 public void setBitmapCache(BitmapCache cache) { 59 mBitmapCache = cache; 62 public void cache(Buffer buffer) { method in class:FilterEnvironment 63 mBitmapCache.cache(buffer); 66 public void cache(Bitmap bitmap) { method in class:FilterEnvironment 67 mBitmapCache.cache(bitmap); 137 cache(bitmap);
|
| /packages/apps/Launcher3/src/com/android/launcher3/ |
| HolographicOutlineHelper.java | 180 Bitmap cache = shouldCache ? mBitmapCache.get(key) : null; local 181 if (cache == null) { 182 cache = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ALPHA_8); 183 mCanvas.setBitmap(cache); 186 mBitmapCache.put(key, cache); 189 mCanvas.setBitmap(cache); 212 // Use put instead of delete, to avoid unnecessary shrinking of cache array 217 mCanvas.drawBitmap(cache, mShadowBitmapShift, mShadowBitmapShift, mBlurPaint);
|
| /system/core/liblog/ |
| log_is_loggable.c | 49 struct cache { struct 55 static int check_cache(struct cache *cache) 57 return cache->pinfo 58 && __system_property_serial(cache->pinfo) != cache->serial; 64 static void refresh_cache(struct cache *cache, const char *key) 68 if (!cache->pinfo) { 69 cache->pinfo = __system_property_find(key) 167 struct cache *cache = &tag_cache[i]; local 205 struct cache *cache = &global_cache[i]; local [all...] |
| /external/icu/android_icu4j/src/main/java/android/icu/text/ |
| RelativeDateTimeFormatter.java | 312 RelativeDateTimeFormatterData data = cache.get(locale); 586 private static class Cache { 587 private final ICUCache<String, RelativeDateTimeFormatterData> cache = field in class:RelativeDateTimeFormatter.Cache 592 RelativeDateTimeFormatterData result = cache.get(key); 595 cache.put(key, result); 985 private static final Cache cache = new Cache(); field in class:RelativeDateTimeFormatter [all...] |
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
| RelativeDateTimeFormatter.java | 350 RelativeDateTimeFormatterData data = cache.get(locale); 633 private static class Cache { 634 private final ICUCache<String, RelativeDateTimeFormatterData> cache = field in class:RelativeDateTimeFormatter.Cache 639 RelativeDateTimeFormatterData result = cache.get(key); 642 cache.put(key, result); 1032 private static final Cache cache = new Cache(); field in class:RelativeDateTimeFormatter [all...] |
| /external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/unicodefont/ |
| UnicodeFont.java | 80 private BitmapFontCache cache;
field in class:UnicodeFont 291 cache.setText(layout, paddingLeft, paddingRight);
297 float[] vertices = cache.getVertices(i);
650 cache = bitmapFont.newFontCache();
|
| /frameworks/base/core/java/android/animation/ |
| AnimatorInflater.java | 117 Log.d(TAG, "loaded animator from cache, " + resources.getResourceName(id)); 121 Log.d(TAG, "cache miss for animator " + resources.getResourceName(id)); 160 final ConfigurationBoundResourceCache<StateListAnimator> cache = resources local 163 StateListAnimator animator = cache.getInstance(id, resources, theme); 176 cache.put(id, theme, constantState); [all...] |
| /packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
| SyncMessagesAction.java | 225 // Clear the singleton cache that maps threads to recipients and to conversations. 226 final SyncManager.ThreadInfoCache cache = syncManager.getThreadInfoCache(); local 227 cache.clear(); 245 messagesToDelete, maxMessagesToScan, maxMessagesToUpdate, cache); 275 * @param cache cache for conversation id / thread id / recipient set mapping 281 final int maxMessagesToUpdate, final ThreadInfoCache cache) { 306 smsToAdd, mmsToAdd, messagesToDelete, cache); 320 setMmsSenders(mmsToAdd, cache); 579 final ThreadInfoCache cache) { [all...] |
| /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
| RichInputMethodManager.java | 261 final HashMap<InputMethodInfo, List<InputMethodSubtype>> cache = local 265 final List<InputMethodSubtype> cachedList = cache.get(imi); 271 cache.put(imi, result); 480 // Clear the cache so that we go read the {@link InputMethodInfo} of this IME and list of
|
| /art/runtime/jit/ |
| jit.cc | 292 ThreadPool* cache = nullptr; local 297 cache = thread_pool_.release(); 299 cache->StopWorkers(self); 300 cache->RemoveAllTasks(self); 304 cache->Wait(self, false, false); 305 delete cache; 408 // and the JIT code cache do not expect methods from proxy classes. 418 // suspension once we hold an OSR method, as the JIT code cache could delete the OSR
|
| /external/ImageMagick/MagickCore/ |
| cache-private.h | 16 MagickCore cache private methods. 21 #include "MagickCore/cache.h" 22 #include "MagickCore/distribute-cache.h" 34 *Cache; 116 *cache, member in struct:_NexusInfo 228 extern MagickPrivate Cache 230 ClonePixelCache(const Cache), 231 DestroyPixelCache(Cache), 232 ReferencePixelCache(Cache); 235 GetPixelCacheStorageClass(const Cache); [all...] |
| color.c | 46 #include "MagickCore/cache-view.h" 47 #include "MagickCore/cache.h" 832 *cache; local [all...] |
| delegate.c | 188 *cache; 193 cache=NewLinkedList(0); 194 if (cache == (LinkedListInfo *) NULL) 209 status&=LoadDelegateCache(cache,(const char *) 216 if (IsLinkedListEmpty(cache) != MagickFalse) 217 status&=LoadDelegateCache(cache,DelegateMap,"built-in",0,exception); 218 return(cache); 182 *cache; local [all...] |
| locale.c | 198 *cache; 200 cache=NewSplayTree(CompareSplayTreeString,(void *(*)(void *)) NULL, 202 if (cache == (SplayTreeInfo *) NULL) 217 status&=LoadLocaleCache(cache,(const char *) 223 if (GetNumberOfNodesInSplayTree(cache) == 0) 229 status&=LoadLocaleCache(cache,(const char *) 238 if (GetNumberOfNodesInSplayTree(cache) == 0) 239 status&=LoadLocaleCache(cache,LocaleMap,"built-in",locale,0, 241 return(cache); 192 *cache; local [all...] |
| /external/apache-http/android/src/android/net/http/ |
| HttpsConnection.java | 67 * @param sessionDir directory to cache SSL sessions 71 SSLClientSessionCache cache = null; local 75 cache = FileClientSessionCache.usingDirectory(sessionDir); 98 sslContext.engineGetClientSessionContext().setPersistentCache(cache);
|
| /external/compiler-rt/lib/sanitizer_common/tests/ |
| sanitizer_allocator_test.cc | 83 SizeClassAllocatorLocalCache<Allocator> cache; local 84 memset(&cache, 0, sizeof(cache)); 85 cache.Init(0); 103 char *x = (char*)cache.Allocate(a, class_id0); 127 cache.Deallocate(a, a->GetSizeClass(x), x); 164 SizeClassAllocatorLocalCache<Allocator> cache; local 165 memset(&cache, 0, sizeof(cache)); 166 cache.Init(0) 207 SizeClassAllocatorLocalCache<Allocator> cache; local 257 SizeClassAllocatorLocalCache<Allocator64WithCallBack> cache; local 284 SizeClassAllocatorLocalCache<Allocator32WithCallBack> cache; local 316 SizeClassAllocatorLocalCache<Allocator> cache; local 421 AllocatorCache cache; local 492 AllocatorCache cache; local 659 SizeClassAllocatorLocalCache<Allocator> cache; local 783 SizeClassAllocatorLocalCache<SpecialAllocator64> cache; local [all...] |
| /external/e2fsprogs/lib/ext2fs/ |
| unix_io.c | 5 * Implements a one-block write-through cache. 91 struct unix_cache cache[CACHE_SIZE]; member in struct:unix_private_data 114 struct unix_cache *cache, unsigned long long block); 299 * Here we implement the cache functions 302 /* Allocate the cache buffers */ 307 struct unix_cache *cache; local 311 for (i=0, cache = data->cache; i < CACHE_SIZE; i++, cache++) { 312 cache->block = 0 333 struct unix_cache *cache; local 359 struct unix_cache *cache, *unused_cache, *oldest_cache; local 405 struct unix_cache *cache; local 695 struct unix_cache *cache, *reuse[READ_DIRECT_SIZE]; local 782 struct unix_cache *cache, *reuse; local [all...] |
| /external/elfutils/libdw/ |
| cfi.h | 73 /* This holds everything we cache about the CFI from each ELF file's 162 Dwarf_CFI *cache; member in struct:Dwarf_Frame_s 192 extern void __libdw_destroy_frame_cache (Dwarf_CFI *cache) 196 extern void __libdw_intern_cie (Dwarf_CFI *cache, Dwarf_Off offset, 201 extern struct dwarf_cie *__libdw_find_cie (Dwarf_CFI *cache, Dwarf_Off offset) 206 extern struct dwarf_fde *__libdw_find_fde (Dwarf_CFI *cache, 211 extern struct dwarf_fde *__libdw_fde_by_offset (Dwarf_CFI *cache, 218 extern int __libdw_frame_at_address (Dwarf_CFI *cache, struct dwarf_fde *fde,
|
| /external/guava/guava/src/com/google/common/cache/ |
| CacheBuilder.java | 17 package com.google.common.cache; 32 import com.google.common.cache.AbstractCache.SimpleStatsCounter; 33 import com.google.common.cache.AbstractCache.StatsCounter; 34 import com.google.common.cache.LocalCache.Strength; 47 * <p>A builder of {@link LoadingCache} and {@link Cache} instances having any combination of the 51 * <li>automatic loading of entries into the cache 58 * <li>accumulation of cache access statistics 62 * cache instances created by {@code CacheBuilder} will not perform any type of eviction. 91 * <p>The returned cache is implemented as a hash table with similar performance characteristics to 93 * {@link Cache} interfaces. The {@code asMap} view (and its collection views) have <i>weakl [all...] |