Home | History | Annotate | Download | only in launcher2

Lines Matching refs:Key

34     public static class Key {
43 public Key(ApplicationInfo info) {
47 public Key(ResolveInfo info) {
53 public Key(AppWidgetProviderInfo info) {
67 if (o instanceof Key) {
68 Key k = (Key) o;
79 private final HashMap<Key, Bitmap> mIconOutlineCache = new HashMap<Key, Bitmap>();
82 for (Key key : mIconOutlineCache.keySet()) {
83 mIconOutlineCache.get(key).recycle();
87 private void retainAll(HashSet<Key> keysToKeep, Key.Type t) {
88 HashSet<Key> keysToRemove = new HashSet<Key>(mIconOutlineCache.keySet());
90 for (Key key : keysToRemove) {
91 if (key.isKeyType(t)) {
92 mIconOutlineCache.get(key).recycle();
93 mIconOutlineCache.remove(key);
99 HashSet<Key> keysSet = new HashSet<Key>();
101 keysSet.add(new Key(info));
103 retainAll(keysSet, Key.Type.ApplicationInfoKey);
107 HashSet<Key> keysSet = new HashSet<Key>();
109 keysSet.add(new Key(info));
111 retainAll(keysSet, Key.Type.ResolveInfoKey);
115 HashSet<Key> keysSet = new HashSet<Key>();
117 keysSet.add(new Key(info));
119 retainAll(keysSet, Key.Type.AppWidgetProviderInfoKey);
121 public void addOutline(Key key, Bitmap b) {
122 mIconOutlineCache.put(key, b);
124 public void removeOutline(Key key) {
125 if (mIconOutlineCache.containsKey(key)) {
126 mIconOutlineCache.get(key).recycle();
127 mIconOutlineCache.remove(key);
130 public Bitmap getOutline(Key key) {
131 return mIconOutlineCache.get(key);