Home
last modified time | relevance | path

Searched refs:CacheKey (Results 1 – 7 of 7) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapCachingAsset.java42 private static class CacheKey { class in BitmapCachingAsset
51 CacheKey(Asset asset, int width, int height) { in CacheKey() method in BitmapCachingAsset.CacheKey
55 CacheKey(Asset asset, int width, int height, boolean rtl, Rect rect) { in CacheKey() method in BitmapCachingAsset.CacheKey
70 return obj instanceof CacheKey in equals()
71 && (Objects.equals(this.mAsset, ((CacheKey) obj).mAsset)) in equals()
72 && ((CacheKey) obj).mWidth == this.mWidth in equals()
73 && ((CacheKey) obj).mHeight == this.mHeight in equals()
74 && ((CacheKey) obj).mRtl == this.mRtl in equals()
75 && (Objects.equals(this.mRect, ((CacheKey) obj).mRect)); in equals()
80 private static LruCache<CacheKey, Bitmap> sCache = new LruCache<CacheKey, Bitmap>(cacheSize) {
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DThumbnailCache.java53 private final HashMap<SizeIndexKey, TreeMap<Point, CacheKey>> mSizeIndex;
74 TreeMap<Point, CacheKey> sizeMap; in getThumbnail()
82 CacheKey cacheKey = sizeMap.get(size); in getThumbnail()
129 CacheKey cacheKey = new CacheKey(uri, userId, size); in putThumbnail()
131 TreeMap<Point, CacheKey> sizeMap; in putThumbnail()
152 TreeMap<Point, CacheKey> sizeMap; in removeUri()
161 for (CacheKey index : sizeMap.values().toArray(new CacheKey[0])) { in removeUri()
167 private void removeKey(CacheKey cacheKey) { in removeKey()
168 TreeMap<Point, CacheKey> sizeMap; in removeKey()
298 private final class Cache extends LruCache<CacheKey, Entry> {
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsServiceCache.java52 public static class CacheKey { class in MdnsServiceCache
56 CacheKey(@NonNull String serviceType, @NonNull SocketKey socketKey) { in CacheKey() method in MdnsServiceCache.CacheKey
69 if (!(other instanceof CacheKey)) { in equals()
72 return Objects.equals(mUpperCaseServiceType, ((CacheKey) other).mUpperCaseServiceType) in equals()
73 && Objects.equals(mSocketKey, ((CacheKey) other).mSocketKey); in equals()
100 private final ArrayMap<CacheKey, List<CachedService>> mCachedServices = new ArrayMap<>();
106 private final ArrayMap<CacheKey, ServiceExpiredCallback> mCallbacks = new ArrayMap<>();
142 public List<MdnsResponse> getCachedServices(@NonNull CacheKey cacheKey) { in getCachedServices()
188 public MdnsResponse getCachedService(@NonNull String serviceName, @NonNull CacheKey cacheKey) { in getCachedService()
218 public void addOrUpdateService(@NonNull CacheKey cacheKey, @NonNull MdnsResponse response) { in addOrUpdateService()
[all …]
DMdnsDiscoveryManager.java222 final MdnsServiceCache.CacheKey cacheKey = in handleRegisterListener()
295 final MdnsServiceCache.CacheKey cacheKey = serviceTypeClient.getCacheKey(); in handleUnregisterListener()
344 private void handleRemoveCachedServices(@NonNull MdnsServiceCache.CacheKey cacheKey) { in handleRemoveCachedServices()
DMdnsServiceTypeClient.java83 @NonNull private final MdnsServiceCache.CacheKey cacheKey;
317 this.cacheKey = new MdnsServiceCache.CacheKey(serviceType, socketKey); in MdnsServiceTypeClient()
448 public MdnsServiceCache.CacheKey getCacheKey() { in getCacheKey()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsServiceCacheTest.kt23 import com.android.server.connectivity.mdns.MdnsServiceCache.CacheKey in <lambda>()
58 private val cacheKey1 = CacheKey(SERVICE_TYPE_1, socketKey) in <lambda>()
59 private val cacheKey2 = CacheKey(SERVICE_TYPE_2, socketKey) in <lambda>()
127 cacheKey: CacheKey, in <lambda>()
134 cacheKey: CacheKey in <lambda>()
140 cacheKey: CacheKey in <lambda>()
147 cacheKey: CacheKey in <lambda>()
152 cacheKey: CacheKey, in <lambda>()
160 cacheKey: CacheKey in <lambda>()
DMdnsDiscoveryManagerTests.java446 final MdnsServiceCache.CacheKey cacheKey =
447 new MdnsServiceCache.CacheKey(SERVICE_TYPE_1, SOCKET_KEY_NETWORK_1);
473 final MdnsServiceCache.CacheKey cacheKey =
474 new MdnsServiceCache.CacheKey(SERVICE_TYPE_1, SOCKET_KEY_NETWORK_1);