Home
last modified time | relevance | path

Searched refs:sCache (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/java/android/content/pm/
DUserPackage.java56 private static final SparseArrayMap<String, UserPackage> sCache = new SparseArrayMap<>(); field in UserPackage
109 UserPackage up = sCache.get(userId, packageName); in of()
114 sCache.add(userId, packageName, up); in of()
127 sCache.delete(userId, packageName); in removeFromCache()
141 for (int u = sCache.numMaps() - 1; u >= 0; --u) { in setValidUserIds()
142 final int userId = sCache.keyAt(u); in setValidUserIds()
144 sCache.deleteAt(u); in setValidUserIds()
153 return sCache.numElementsForKey(userId); in numEntriesForUser()
160 final int uIdx = sCache.indexOfKey(userId); in maybePurgeRandomEntriesLocked()
164 int numCached = sCache.numElementsForKeyAt(uIdx); in maybePurgeRandomEntriesLocked()
[all …]
/frameworks/base/core/java/android/os/
DServiceManager.java56 private static Map<String, IBinder> sCache = new ArrayMap<String, IBinder>(); field in ServiceManager
61 private static Map<String, IBinder> sCache$ravenwood;
135 sCache$ravenwood = new ArrayMap<>(); in init$ravenwood()
143 sCache$ravenwood.clear(); in reset$ravenwood()
144 sCache$ravenwood = null; in reset$ravenwood()
171 IBinder service = sCache.get(name); in getService()
187 return Preconditions.requireNonNullViaRavenwoodRule(sCache$ravenwood).get(name); in getService$ravenwood()
264 Preconditions.requireNonNullViaRavenwoodRule(sCache$ravenwood).put(name, service); in addService$ravenwood()
276 IBinder service = sCache.get(name); in checkService()
405 if (sCache.size() != 0) { in initServiceCache()
[all …]
/frameworks/base/media/java/android/media/
DCameraProfile.java47 private static final HashMap<Integer, int[]> sCache = new HashMap<Integer, int[]>(); field in CameraProfile
81 synchronized (sCache) { in getJpegEncodingQualityParameter()
82 int[] levels = sCache.get(cameraId); in getJpegEncodingQualityParameter()
85 sCache.put(cameraId, levels); in getJpegEncodingQualityParameter()
/frameworks/base/core/java/android/content/res/
DColorStateList.java148 private static final SparseArray<WeakReference<ColorStateList>> sCache = new SparseArray<>(); field in ColorStateList
186 synchronized (sCache) { in valueOf()
187 final int index = sCache.indexOfKey(color); in valueOf()
189 final ColorStateList cached = sCache.valueAt(index).get(); in valueOf()
195 sCache.removeAt(index); in valueOf()
199 final int N = sCache.size(); in valueOf()
201 if (sCache.valueAt(i).refersTo(null)) { in valueOf()
202 sCache.removeAt(i); in valueOf()
207 sCache.put(color, new WeakReference<>(csl)); in valueOf()
/frameworks/base/core/java/com/android/internal/util/
DMimeIconUtils.java37 private static final ArrayMap<String, MimeTypeInfo> sCache = new ArrayMap<>(); field in MimeIconUtils
260 synchronized (sCache) { in getTypeInfo()
261 MimeTypeInfo res = sCache.get(mimeType); in getTypeInfo()
264 sCache.put(mimeType, res); in getTypeInfo()
DParcelling.java61 private static ArrayMap<Class, Parcelling> sCache = new ArrayMap<>(); field in Parcelling.Cache
67 return (P) sCache.get(clazz); in get()
76 sCache.put(parcelling.getClass(), parcelling); in put()
DArrayUtils.java46 private static Object[] sCache = new Object[CACHE_SIZE]; field in ArrayUtils
167 Object cache = sCache[bucket]; in emptyArray()
171 sCache[bucket] = cache; in emptyArray()
/frameworks/layoutlib/bridge/src/com/android/internal/util/
DArrayUtils_Delegate.java25 Arrays.fill(ArrayUtils.sCache, null); in clearCache()
/frameworks/native/opengl/libs/EGL/
Degl_cache.h138 static egl_cache_t sCache; variable
Degl_cache.cpp76 egl_cache_t egl_cache_t::sCache; member in android::egl_cache_t
79 return &sCache; in get()
/frameworks/base/libs/hwui/pipeline/skia/
DShaderCache.cpp47 ShaderCache ShaderCache::sCache; member in android::uirenderer::skiapipeline::ShaderCache
50 return sCache; in get()
DShaderCache.h211 static ShaderCache sCache; variable
/frameworks/av/media/codec2/sfplugin/
DCCodec.cpp3169 static std::map<std::string, IntfCache> sCache; in GetIntfCache() local
3171 auto it = sCache.find(name); in GetIntfCache()
3172 if (it == sCache.end()) { in GetIntfCache()
3180 it = sCache.insert({name, std::move(intfCache)}).first; in GetIntfCache()
/frameworks/base/config/
Ddirty-image-objects178 Lcom/android/internal/util/Parcelling$Cache;.sCache:Landroid/util/ArrayMap;.mArray:[Ljava/lang/Obje…
198 Lcom/android/internal/util/Parcelling$Cache;.sCache:Landroid/util/ArrayMap;.mHashes:[I 11
253 Landroid/content/pm/UserPackage;.sCache:Landroid/util/SparseArrayMap;.mData:Landroid/util/SparseArr…
258 Lcom/android/internal/util/Parcelling$Cache;.sCache:Landroid/util/ArrayMap; 11
572 Landroid/content/res/ColorStateList;.sCache:Landroid/util/SparseArray; 83
597 Lcom/android/internal/util/ArrayUtils;.sCache:[Ljava/lang/Object; 105
/frameworks/av/media/libstagefright/
DMediaCodec.cpp2087 static CodecListCache sCache{}; in GetCodecListCache() local
2088 return sCache; in GetCodecListCache()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt13600 Landroid/content/res/ColorStateList;->sCache:Landroid/util/SparseArray;
25100 Landroid/media/CameraProfile;->sCache:Ljava/util/HashMap;