FileDocCategorySizeDatePackage
MultiUserAvatarCache.javaAPI DocAndroid 5.1 API1391Thu Mar 12 22:22:42 GMT 2015com.android.keyguard

MultiUserAvatarCache

public class MultiUserAvatarCache extends Object

Fields Summary
private static MultiUserAvatarCache
sInstance
private final HashMap
mCache
Constructors Summary
private MultiUserAvatarCache()

        mCache = new HashMap<Integer, Drawable>();
    
Methods Summary
public voidclear(int userId)

        mCache.remove(userId);
    
public android.graphics.drawable.Drawableget(int userId)

        return mCache.get(userId);
    
public static com.android.keyguard.MultiUserAvatarCachegetInstance()

        if (sInstance == null) {
            sInstance = new MultiUserAvatarCache();
        }
        return sInstance;
    
public voidput(int userId, android.graphics.drawable.Drawable image)

        mCache.put(userId, image);