Home
last modified time | relevance | path

Searched refs:projectKey (Results 1 – 2 of 2) sorted by relevance

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java435 public void clearCaches(Object projectKey) { in clearCaches() argument
436 if (projectKey != null) { in clearCaches()
437 sProjectBitmapCache.remove(projectKey); in clearCaches()
438 sProject9PatchCache.remove(projectKey); in clearCaches()
591 public static Bitmap getCachedBitmap(String value, Object projectKey) { in getCachedBitmap() argument
592 if (projectKey != null) { in getCachedBitmap()
593 Map<String, SoftReference<Bitmap>> map = sProjectBitmapCache.get(projectKey); in getCachedBitmap()
616 public static void setCachedBitmap(String value, Bitmap bmp, Object projectKey) { in setCachedBitmap() argument
617 if (projectKey != null) { in setCachedBitmap()
619 sProjectBitmapCache.computeIfAbsent(projectKey, k -> new HashMap<>()); in setCachedBitmap()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java215 public BridgeContext(Object projectKey, @NonNull DisplayMetrics metrics, in BridgeContext() argument
222 mProjectKey = projectKey; in BridgeContext()