Home
last modified time | relevance | path

Searched refs:Entry (Results 1 – 25 of 108) sorted by relevance

12345

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DHandleMap.java35 class Entry { class in HandleMap
47 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance) { in Entry() method in HandleMap.Entry
56 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance, in Entry() method in HandleMap.Entry
67 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle) { in Entry() method in HandleMap.Entry
76 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle, int charHandle) { in Entry() method in HandleMap.Entry
87 List<Entry> mEntries = null;
92 mEntries = new ArrayList<Entry>(); in HandleMap()
103 mEntries.add(new Entry(serverIf, handle, uuid, serviceType, instance, advertisePreferred)); in addService()
108 mEntries.add(new Entry(serverIf, TYPE_CHARACTERISTIC, handle, uuid, serviceHandle)); in addCharacteristic()
112 …mEntries.add(new Entry(serverIf, TYPE_DESCRIPTOR, handle, uuid, serviceHandle, mLastCharacteristic… in addDescriptor()
[all …]
DServiceDeclaration.java34 class Entry { class in ServiceDeclaration
44 Entry(UUID uuid, int serviceType, int instance) { in Entry() method in ServiceDeclaration.Entry
51 Entry(UUID uuid, int serviceType, int instance, boolean advertisePreferred) { in Entry() method in ServiceDeclaration.Entry
59 Entry(UUID uuid, int properties, int permissions, int instance) { in Entry() method in ServiceDeclaration.Entry
67 Entry(UUID uuid, int permissions) { in Entry() method in ServiceDeclaration.Entry
74 List<Entry> mEntries = null;
78 mEntries = new ArrayList<Entry>(); in ServiceDeclaration()
83 mEntries.add(new Entry(uuid, serviceType, instance, advertisePreferred)); in addService()
92 Entry entry = new Entry(uuid, serviceType, instance); in addIncludedService()
99 mEntries.add(new Entry(uuid, properties, permissions, 0 /*instance*/)); in addCharacteristic()
[all …]
DSearchQueue.java29 class Entry { class in SearchQueue
40 private List<Entry> mEntries = new ArrayList<Entry>();
44 Entry entry = new Entry(); in add()
58 Entry entry = new Entry(); in add()
70 Entry pop() { in pop()
71 Entry entry = mEntries.get(0); in pop()
77 for (Iterator<Entry> it = mEntries.iterator(); it.hasNext();) { in removeConnId()
78 Entry entry = it.next(); in removeConnId()
DGattService.java1009 for (Map.Entry<BluetoothDevice, Integer> entry : deviceStates.entrySet()) { in getDevicesMatchingConnectionStates()
1153 for (HandleMap.Entry entry : mHandleMap.mEntries) { in getAdvServiceUuids()
1497 HandleMap.Entry entry = mHandleMap.getByHandle(attrHandle); in onAttributeRead()
1511 HandleMap.Entry serviceEntry = mHandleMap.getByHandle(entry.serviceHandle); in onAttributeRead()
1521 HandleMap.Entry serviceEntry = mHandleMap.getByHandle(entry.serviceHandle); in onAttributeRead()
1522 HandleMap.Entry charEntry = mHandleMap.getByHandle(entry.charHandle); in onAttributeRead()
1547 HandleMap.Entry entry = mHandleMap.getByHandle(attrHandle); in onAttributeWrite()
1561 HandleMap.Entry serviceEntry = mHandleMap.getByHandle(entry.serviceHandle); in onAttributeWrite()
1572 HandleMap.Entry serviceEntry = mHandleMap.getByHandle(entry.serviceHandle); in onAttributeWrite()
1573 HandleMap.Entry charEntry = mHandleMap.getByHandle(entry.charHandle); in onAttributeWrite()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetDatabaseHelper.java68 public static class Entry { class in WidgetDatabaseHelper
76 private Entry() {} in Entry() method in WidgetDatabaseHelper.Entry
78 private Entry(int id, Cursor cursor) { in Entry() method in WidgetDatabaseHelper.Entry
90 private Entry(Cursor cursor) { in Entry() method in WidgetDatabaseHelper.Entry
110 private void saveData(SQLiteDatabase db, int oldVersion, ArrayList<Entry> data) { in saveData()
118 Entry entry = new Entry(); in saveData()
134 Entry entry = new Entry(); in saveData()
147 private void restoreData(SQLiteDatabase db, ArrayList<Entry> data) { in restoreData()
150 for (Entry entry : data) { in restoreData()
169 ArrayList<Entry> data = new ArrayList<Entry>(); in onUpgrade()
[all …]
DPhotoAppWidgetProvider.java33 import com.android.gallery3d.gadget.WidgetDatabaseHelper.Entry;
40 static RemoteViews buildWidget(Context context, int id, Entry entry) { in buildWidget()
64 Entry entry = helper.getEntry(id); in onUpdate()
80 private static RemoteViews buildStackWidget(Context context, int widgetId, Entry entry) { in buildStackWidget()
104 static RemoteViews buildFrameWidget(Context context, int appWidgetId, Entry entry) { in buildFrameWidget()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java69 private final LruCache<String, Entry> mEntryMap =
70 new LruCache<String, Entry>(LRU_CAPACITY);
89 private Entry findEntryInDatabase(String stringUrl) { in findEntryInDatabase()
98 Entry entry = null; in findEntryInDatabase()
102 entry = new Entry(id, file); in findEntryInDatabase()
114 public Entry download(JobContext jc, URL url) { in download()
121 Entry entry = mEntryMap.get(stringUrl); in download()
131 Entry entry = findEntryInDatabase(stringUrl); in download()
250 public class Entry { class in DownloadCache
254 Entry(long id, File cacheFile) { in Entry() method in DownloadCache.Entry
[all …]
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 {
/packages/apps/Gallery/src/com/android/camera/gallery/
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) { in LruCache()
42 private static class Entry<K, V> extends WeakReference<V> { class in LruCache
45 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry() method in LruCache.Entry
53 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
56 entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
63 Entry<K, V> entry = mWeakMap.put( in put()
64 key, new Entry<K, V>(key, value, mQueue)); in put()
72 Entry<K, V> entry = mWeakMap.get(key); in get()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
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) { in LruCache()
46 private static class Entry<K, V> extends WeakReference<V> { class in LruCache
49 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry() method in LruCache.Entry
57 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
60 entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
72 Entry<K, V> entry = mWeakMap.put( in put()
73 key, new Entry<K, V>(key, value, mQueue)); in put()
81 Entry<K, V> entry = mWeakMap.get(key); in get()
DEntrySchema.java50 public EntrySchema(Class<? extends Entry> clazz) { in EntrySchema()
103 public <T extends Entry> T cursorToObject(Cursor cursor, T object) { in cursorToObject()
154 public <T extends Entry> T valuesToObject(ContentValues values, T object) { in valuesToObject()
192 public void objectToValues(Entry object, ContentValues values) { in objectToValues()
229 public String toDebugString(Entry entry) { in toDebugString()
246 public String toDebugString(Entry entry, String... columnNames) { in toDebugString()
267 public boolean queryWithId(SQLiteDatabase db, long id, Entry entry) { in queryWithId()
279 public long insertOrReplace(SQLiteDatabase db, Entry entry) { in insertOrReplace()
450 Entry.Table table = clazz.getAnnotation(Entry.Table.class); in parseTableName()
478 Entry.Column info = ((AnnotatedElement) field).getAnnotation(Entry.Column.class); in parseColumnInfo()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoStore.java48 private final Map<Long, Entry> mEntries;
76 mEntries = new HashMap<Long, Entry>(); in PhotoStore()
106 public Entry get(long key) { in get()
121 Entry entry = new Entry(file); in initialize()
209 Entry entry = new Entry(target); in insert()
253 private void putEntry(long id, Entry entry) { in putEntry()
257 Entry oldEntry = mEntries.get(id); in putEntry()
268 Entry entry = mEntries.get(id); in removeEntry()
277 public static class Entry { class in PhotoStore
287 public Entry(File file) { in Entry() method in PhotoStore.Entry
/packages/apps/Gallery2/src/com/android/gallery3d/util/
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 IdentityCache
37 public Entry(K key, V value, ReferenceQueue<V> queue) { in Entry() method in IdentityCache.Entry
44 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
47 entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap()
53 Entry<K, V> entry = mWeakMap.put( in put()
54 key, new Entry<K, V>(key, value, mQueue)); in put()
60 Entry<K, V> entry = mWeakMap.get(key); in get()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java37 public static class Entry { class in PhotoFallbackEffect
44 public Entry(Path path, Rect source, RawTexture texture) { in Entry() method in PhotoFallbackEffect.Entry
61 private ArrayList<Entry> mList = new ArrayList<Entry>();
69 mList.add(new Entry(path, rect, texture)); in addEntry()
72 public Entry getEntry(Path path) { in getEntry()
74 Entry entry = mList.get(i); in getEntry()
83 Entry entry = mList.get(i); in draw()
91 private void drawEntry(GLCanvas canvas, Entry entry) { in drawEntry()
165 Entry entry = mList.get(i); in setPositionProvider()
174 Entry entry = mList.get(i); in acceptSlot()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPercentageBarChart.java38 private Collection<Entry> mEntries;
42 public static class Entry implements Comparable<Entry> { class in PercentageBarChart
47 protected Entry(int order, float percentage, Paint paint) { in Entry() method in PercentageBarChart.Entry
54 public int compareTo(Entry another) { in compareTo()
87 for (final Entry e : mEntries) { in onDraw()
111 for (final Entry e : mEntries) { in onDraw()
150 public static Entry createEntry(int order, float percentage, int color) { in createEntry()
154 return new Entry(order, percentage, p); in createEntry()
157 public void setEntries(Collection<Entry> entries) { in setEntries()
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
DGalleryWidgetMigrator.java33 import com.android.gallery3d.gadget.WidgetDatabaseHelper.Entry;
82 List<Entry> entries = dbHelper.getEntries(WidgetDatabaseHelper.TYPE_ALBUM); in migrateGalleryWidgetsInternal()
89 HashMap<Integer, Entry> localEntries = new HashMap<Integer, Entry>(entries.size()); in migrateGalleryWidgetsInternal()
90 for (Entry entry : entries) { in migrateGalleryWidgetsInternal()
107 HashMap<Integer, Entry> entries, WidgetDatabaseHelper dbHelper) { in migrateLocalEntries()
123 private static void migrateLocalEntries(HashMap<Integer, Entry> entries, in migrateLocalEntries()
131 private static void updatePath(File root, HashMap<Integer, Entry> entries, in updatePath()
140 Entry entry = entries.remove(oldBucketId); in updatePath()
159 private static void updateEntryUsingRelativePath(Entry entry, WidgetDatabaseHelper dbHelper) { in updateEntryUsingRelativePath()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DListSuggestionCursor.java37 private final ArrayList<Entry> mSuggestions;
57 mSuggestions = new ArrayList<Entry>(capacity); in ListSuggestionCursor()
66 mSuggestions.add(new Entry(suggestion)); in add()
97 mSuggestions.set(mPos, new Entry(suggestion)); in replaceRow()
146 for (Entry e : mSuggestions) { in getExtraColumns()
163 private static class Entry { class in ListSuggestionCursor
166 public Entry(Suggestion s) { in Entry() method in ListSuggestionCursor.Entry
DCachingIconLoader.java43 private final WeakHashMap<String, Entry> mIconCache;
52 mIconCache = new WeakHashMap<String, Entry>(); in CachingIconLoader()
60 Entry newEntry = null; in getIcon()
65 newEntry = new Entry(); in getIcon()
94 private synchronized void storeInIconCache(String resourceUri, Entry drawable) {
100 private static class Entry extends CachedLater<Drawable.ConstantState>
106 public Entry() {
/packages/apps/Gallery/src/com/android/camera/
DViewImage.java1194 public static class Entry {
1197 public Entry() {
1206 private final Entry[] mCache;
1209 mCache = new Entry[size];
1211 mCache[i] = new Entry();
1217 private Entry findEntry(int pos) {
1218 for (Entry e : mCache) {
1228 Entry e = findEntry(pos);
1245 Entry best = null;
1247 for (Entry e : mCache) {
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMockProvider.java30 import java.util.Map.Entry;
151 Set<Entry<String, ContentValues>> entrySet = mMockStore.entrySet(); in query()
153 for (Entry<String, ContentValues> entry: entrySet) { in query()
190 Set<Entry<String, ContentValues>> entrySet = mMockStore.entrySet(); in update()
192 for (Entry<String, ContentValues> entry: entrySet) { in update()
207 Set<Entry<String, Object>> newValuesSet = newValues.valueSet(); in update()
208 for (Entry<String, Object> entry: newValuesSet) { in update()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DTestProvider.java32 import java.util.Map.Entry;
151 Set<Entry<String, ContentValues>> entrySet = mMockStore.entrySet(); in query()
153 for (Entry<String, ContentValues> entry : entrySet) { in query()
190 Set<Entry<String, ContentValues>> entrySet = mMockStore.entrySet(); in update()
192 for (Entry<String, ContentValues> entry : entrySet) { in update()
207 Set<Entry<String, Object>> newValuesSet = newValues.valueSet(); in update()
208 for (Entry<String, Object> entry : newValuesSet) { in update()
/packages/apps/Email/tests/src/com/android/email/
DThrottleTest.java172 private static class Entry {
177 private final BlockingQueue<Entry> mTasks = new LinkedBlockingQueue<Entry>();
188 Entry e = new Entry();
201 Entry e = mTasks.peek();
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DResolveCache.java106 private static class Entry { class in ResolveCache
111 private HashMap<String, Entry> mCache = new HashMap<String, Entry>();
123 protected Entry getEntry(Action action) { in getEntry()
125 Entry entry = mCache.get(mimeType); in getEntry()
127 entry = new Entry(); in getEntry()
/packages/apps/Mms/src/com/android/mms/data/
DRecipientIdCache.java43 public static class Entry { class in RecipientIdCache
47 public Entry(long id, String number) { in Entry() method in RecipientIdCache.Entry
102 public static List<Entry> getAddresses(String spaceSepIds) { in getAddresses()
104 List<Entry> numbers = new ArrayList<Entry>(); in getAddresses()
131 numbers.add(new Entry(longId, number)); in getAddresses()
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactEntryAdapter.java29 public abstract class ContactEntryAdapter<E extends ContactEntryAdapter.Entry>
40 public static class Entry { class in ContactEntryAdapter
179 public final static <T extends Entry> T getEntry(ArrayList<ArrayList<T>> sections, in getEntry()
203 public static <T extends Entry> int countEntries(ArrayList<ArrayList<T>> sections, in countEntries()
223 Entry entry = getEntry(mSections, position, mSeparators); in getItemId()

12345