Searched refs:Entry (Results 1 - 25 of 73) sorted by relevance

123

/packages/apps/Gallery/src/com/android/camera/gallery/
H A DLruCache.java28 private final HashMap<K, Entry<K, V>> mWeakMap =
29 new HashMap<K, Entry<K, V>>();
36 protected boolean removeEldestEntry(Map.Entry<K, V> eldest) {
42 private static class Entry<K, V> extends WeakReference<V> { class in class:LruCache
45 public Entry(K key, V value, ReferenceQueue<V> queue) { method in class:LruCache.Entry
53 Entry<K, V> entry = (Entry<K, V>) mQueue.poll();
56 entry = (Entry<K, V>) mQueue.poll();
63 Entry<K, V> entry = mWeakMap.put(
64 key, new Entry<
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DIdentityCache.java27 private final HashMap<K, Entry<K, V>> mWeakMap =
28 new HashMap<K, Entry<K, V>>();
34 private static class Entry<K, V> extends WeakReference<V> { class in class:IdentityCache
37 public Entry(K key, V value, ReferenceQueue<V> queue) { method in class:IdentityCache.Entry
44 Entry<K, V> entry = (Entry<K, V>) mQueue.poll();
47 entry = (Entry<K, V>) mQueue.poll();
53 Entry<K, V> entry = mWeakMap.put(
54 key, new Entry<K, V>(key, value, mQueue));
60 Entry<
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DLruCache.java32 private final HashMap<K, Entry<K, V>> mWeakMap =
33 new HashMap<K, Entry<K, V>>();
40 protected boolean removeEldestEntry(Map.Entry<K, V> eldest) {
46 private static class Entry<K, V> extends WeakReference<V> { class in class:LruCache
49 public Entry(K key, V value, ReferenceQueue<V> queue) { method in class:LruCache.Entry
57 Entry<K, V> entry = (Entry<K, V>) mQueue.poll();
60 entry = (Entry<K, V>) mQueue.poll();
72 Entry<K, V> entry = mWeakMap.put(
73 key, new Entry<
[all...]
H A DEntry.java24 public abstract class Entry { class
H A DEntrySchema.java50 public EntrySchema(Class<? extends Entry> clazz) {
103 public <T extends Entry> T cursorToObject(Cursor cursor, T object) {
154 public <T extends Entry> T valuesToObject(ContentValues values, T object) {
192 public void objectToValues(Entry object, ContentValues values) {
229 public String toDebugString(Entry entry) {
246 public String toDebugString(Entry entry, String... columnNames) {
267 public boolean queryWithId(SQLiteDatabase db, long id, Entry entry) {
279 public long insertOrReplace(SQLiteDatabase db, Entry entry) {
450 Entry.Table table = clazz.getAnnotation(Entry
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadEntry.java18 import com.android.gallery3d.common.Entry;
22 @Entry.Table("download")
23 public class DownloadEntry extends Entry {
26 public static interface Columns extends Entry.Columns {
H A DDownloadCache.java69 private final LruCache<String, Entry> mEntryMap =
70 new LruCache<String, Entry>(LRU_CAPACITY);
89 private Entry findEntryInDatabase(String stringUrl) {
98 Entry entry = null;
102 entry = new Entry(id, file);
114 public Entry download(JobContext jc, URL url) {
121 Entry entry = mEntryMap.get(stringUrl);
131 Entry entry = findEntryInDatabase(stringUrl);
250 public class Entry { class in class:DownloadCache
254 Entry(lon method in class:DownloadCache.Entry
[all...]
H A DMediaDetails.java27 import java.util.Map.Entry;
30 public class MediaDetails implements Iterable<Entry<Integer, Object>> {
92 public Iterator<Entry<Integer, Object>> iterator() {
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DCachingIconLoader.java43 private final WeakHashMap<String, Entry> mIconCache;
52 mIconCache = new WeakHashMap<String, Entry>();
60 Entry newEntry = null;
65 newEntry = new Entry();
94 private synchronized void storeInIconCache(String resourceUri, Entry drawable) {
100 private static class Entry extends CachedLater<Drawable.ConstantState> class in class:CachingIconLoader
106 public Entry() { method in class:CachingIconLoader.Entry
H A DListSuggestionCursor.java37 private final ArrayList<Entry> mSuggestions;
57 mSuggestions = new ArrayList<Entry>(capacity);
66 mSuggestions.add(new Entry(suggestion));
97 mSuggestions.set(mPos, new Entry(suggestion));
146 for (Entry e : mSuggestions) {
163 private static class Entry { class in class:ListSuggestionCursor
166 public Entry(Suggestion s) { method in class:ListSuggestionCursor.Entry
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DPercentageBarChart.java33 * {@link Entry}.
38 private Collection<Entry> mEntries;
42 public static class Entry implements Comparable<Entry> { class in class:PercentageBarChart
47 protected Entry(int order, float percentage, Paint paint) { method in class:PercentageBarChart.Entry
54 public int compareTo(Entry another) {
87 for (final Entry e : mEntries) {
111 for (final Entry e : mEntries) {
150 public static Entry createEntry(int order, float percentage, int color) {
154 return new Entry(orde
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DWidgetDatabaseHelper.java64 public static class Entry { class in class:WidgetDatabaseHelper
71 private Entry() {} method in class:WidgetDatabaseHelper.Entry
73 private Entry(int id, Cursor cursor) { method in class:WidgetDatabaseHelper.Entry
84 private Entry(Cursor cursor) { method in class:WidgetDatabaseHelper.Entry
103 private void saveData(SQLiteDatabase db, int oldVersion, ArrayList<Entry> data) {
111 Entry entry = new Entry();
127 Entry entry = new Entry();
140 private void restoreData(SQLiteDatabase db, ArrayList<Entry> dat
[all...]
H A DPhotoAppWidgetProvider.java33 import com.android.gallery3d.gadget.WidgetDatabaseHelper.Entry;
40 static RemoteViews buildWidget(Context context, int id, Entry entry) {
64 Entry entry = helper.getEntry(id);
80 private static RemoteViews buildStackWidget(Context context, int widgetId, Entry entry) {
104 static RemoteViews buildFrameWidget(Context context, int appWidgetId, Entry entry) {
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
H A DGalleryWidgetMigrator.java31 import com.android.gallery3d.gadget.WidgetDatabaseHelper.Entry;
79 List<Entry> entries = dbHelper.getEntries(WidgetDatabaseHelper.TYPE_ALBUM);
81 HashMap<Integer, Entry> localEntries = new HashMap<Integer, Entry>(entries.size());
82 for (Entry entry : entries) {
95 HashMap<Integer, Entry> entries, WidgetDatabaseHelper dbHelper) {
106 File root, HashMap<Integer, Entry> entries, WidgetDatabaseHelper dbHelper) {
114 Entry entry = entries.remove(oldBucketId);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DPhotoStore.java48 private final Map<Long, Entry> mEntries;
76 mEntries = new HashMap<Long, Entry>();
106 public Entry get(long key) {
121 Entry entry = new Entry(file);
209 Entry entry = new Entry(target);
253 private void putEntry(long id, Entry entry) {
257 Entry oldEntry = mEntries.get(id);
268 Entry entr
277 public static class Entry { class in class:PhotoStore
287 public Entry(File file) { method in class:PhotoStore.Entry
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPhotoFallbackEffect.java35 public static class Entry { class in class:PhotoFallbackEffect
42 public Entry(Path path, Rect source, RawTexture texture) { method in class:PhotoFallbackEffect.Entry
59 private ArrayList<Entry> mList = new ArrayList<Entry>();
67 mList.add(new Entry(path, rect, texture));
70 public Entry getEntry(Path path) {
72 Entry entry = mList.get(i);
81 Entry entry = mList.get(i);
89 private void drawEntry(GLCanvas canvas, Entry entry) {
163 Entry entr
[all...]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DResolveCache.java106 private static class Entry { class in class:ResolveCache
111 private HashMap<String, Entry> mCache = new HashMap<String, Entry>();
120 * Get the {@link Entry} best associated with the given {@link Action},
123 protected Entry getEntry(Action action) {
125 Entry entry = mCache.get(mimeType);
127 entry = new Entry();
/packages/apps/Email/tests/src/com/android/email/
H A DThrottleTest.java169 private static class Entry { class in class:ThrottleTest.MockTimer
174 private final BlockingQueue<Entry> mTasks = new LinkedBlockingQueue<Entry>();
185 Entry e = new Entry();
198 Entry e = mTasks.peek();
/packages/apps/Gallery2/tests/src/com/android/gallery3d/util/
H A DProfileTest.java106 public class Entry { class in class:ParsedProfile
111 ArrayList<Entry> mEntries = new ArrayList<Entry>();
119 Entry entry = parseOneEntry();
141 private void checkIsFirstEntry(Entry entry) {
149 private void checkIsLastEntry(Entry entry) {
160 private Entry parseOneEntry() throws IOException {
163 Entry e = new Entry();
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
H A DMockProvider.java30 import java.util.Map.Entry;
148 Set<Entry<String, ContentValues>> entrySet = mMockStore.entrySet();
150 for (Entry<String, ContentValues> entry: entrySet) {
187 Set<Entry<String, ContentValues>> entrySet = mMockStore.entrySet();
189 for (Entry<String, ContentValues> entry: entrySet) {
204 Set<Entry<String, Object>> newValuesSet = newValues.valueSet();
205 for (Entry<String, Object> entry: newValuesSet) {
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
H A DMockProvider.java30 import java.util.Map.Entry;
148 Set<Entry<String, ContentValues>> entrySet = mMockStore.entrySet();
150 for (Entry<String, ContentValues> entry: entrySet) {
187 Set<Entry<String, ContentValues>> entrySet = mMockStore.entrySet();
189 for (Entry<String, ContentValues> entry: entrySet) {
204 Set<Entry<String, Object>> newValuesSet = newValues.valueSet();
205 for (Entry<String, Object> entry: newValuesSet) {
/packages/apps/Mms/src/com/android/mms/util/
H A DSimpleCache.java35 * A simple LRU cache to prevent the number of {@link Map.Entry} instances
49 protected boolean removeEldestEntry(Map.Entry<K, SoftReference<V>> eldest) {
65 protected boolean removeEldestEntry(Map.Entry<K, V> eldest) {
/packages/apps/Mms/src/com/android/mms/data/
H A DRecipientIdCache.java43 public static class Entry { class in class:RecipientIdCache
47 public Entry(long id, String number) { method in class:RecipientIdCache.Entry
102 public static List<Entry> getAddresses(String spaceSepIds) {
104 List<Entry> numbers = new ArrayList<Entry>();
131 numbers.add(new Entry(longId, number));
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactEntryAdapter.java29 public abstract class ContactEntryAdapter<E extends ContactEntryAdapter.Entry>
40 public static class Entry { class in class:ContactEntryAdapter
179 public final static <T extends Entry> T getEntry(ArrayList<ArrayList<T>> sections,
203 public static <T extends Entry> int countEntries(ArrayList<ArrayList<T>> sections,
223 Entry entry = getEntry(mSections, position, mSeparators);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DTrimVideoUtils.java82 TimeToSampleBox.Entry entry = track.getDecodingTimeEntries().get(i);
120 for (TimeToSampleBox.Entry entry : track.getDecodingTimeEntries()) {
131 TimeToSampleBox.Entry entry = track.getDecodingTimeEntries().get(i);

Completed in 1204 milliseconds

123