Home
last modified time | relevance | path

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

12345

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanFilterQueue.java50 class Entry { class in ScanFilterQueue
76 Entry other = (Entry) obj; in equals()
88 private Set<Entry> mEntries = new HashSet<Entry>();
91 Entry entry = new Entry(); in addDeviceAddress()
99 Entry entry = new Entry(); in addServiceChanged()
105 Entry entry = new Entry(); in addUuid()
113 Entry entry = new Entry(); in addUuid()
121 Entry entry = new Entry(); in addSolicitUuid()
128 Entry entry = new Entry(); in addName()
135 Entry entry = new Entry(); in addManufacturerData()
[all …]
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()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dtrie_map.cpp37 const TrieMap::Entry TrieMap::EMPTY_BITMAP_ENTRY = TrieMap::Entry(0, 0);
68 const Entry bitmapEntry = readEntry(bitmapEntryIndex); in getNextLevelBitmapEntryIndex()
76 const Entry terminalEntry = readEntry(terminalEntryIndex); in getNextLevelBitmapEntryIndex()
85 if (!writeEntry(Entry(0, terminalEntry.getValue()), valueEntryIndex)) { in getNextLevelBitmapEntryIndex()
117 const Entry bitmapEntry = readEntry(bitmapEntryIndex); in remove()
125 const Entry terminalEntry = readEntry(terminalEntryIndex); in remove()
130 const Entry nextLevelBitmapEntry = readEntry(terminalEntry.getValueEntryIndex() + 1); in remove()
158 const Entry entry = readEntry(entryIndex); in iterateNext()
170 const Entry valueEntry = readEntry(valueEntryIndex); in iterateNext()
204 if (!writeEntry(Entry(value >> (FIELD1_SIZE * CHAR_BIT), value), valueEntryIndex)) { in writeValue()
[all …]
Dtrie_map.h104 const Entry bitmapEntry = mTrieMap->readEntry(mBaseBitmapEntryIndex); in TrieMapIterator()
229 struct Entry { struct
233 Entry(const uint32_t data0, const uint32_t data1) : mData0(data0), mData1(data1) {} in Entry() argument
294 static const Entry EMPTY_BITMAP_ENTRY;
300 bool updateValue(const Entry &terminalEntry, const uint64_t value,
305 const Entry &bitmapEntry, const int level) const;
309 const int bitmapEntryIndex, const Entry &bitmapEntry, const int level);
311 const uint32_t hashedKey, const Entry &conflictedEntry, const int conflictedEntryIndex,
319 AK_FORCE_INLINE const Entry readEntry(const int entryIndex) const { in readEntry()
320 return Entry(readField0(entryIndex), readField1(entryIndex)); in readEntry()
[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 …]
/packages/apps/Camera2/src/com/android/camera/async/
DConcurrentBufferQueue.java58 private static class Entry<T> { class in ConcurrentBufferQueue
62 private Entry(T value, boolean closing) { in Entry() method in ConcurrentBufferQueue.Entry
82 private final BlockingQueue<Entry<T>> mQueue;
111 List<Entry<T>> remainingElements = new ArrayList<>(); in close()
135 for (Entry<T> entry : remainingElements) { in close()
156 private T doWithNextEntry(Entry<T> nextEntry) throws BufferQueueClosedException { in doWithNextEntry()
169 Entry<T> nextEntry = mQueue.take(); in getNext()
176 Entry<T> nextEntry = mQueue.poll(timeout, unit); in getNext()
185 Entry<T> nextEntry = mQueue.peek(); in peekNext()
198 Entry<T> nextEntry = mQueue.remove(); in discardNext()
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java139 import com.android.contacts.quickcontact.ExpandingEntryCardView.Entry;
1051 private List<List<Entry>> buildAboutCardEntries(Map<String, List<DataItem>> dataItemsMap) { in buildAboutCardEntries()
1052 final List<List<Entry>> aboutCardEntries = new ArrayList<>(); in buildAboutCardEntries()
1060 final List<Entry> aboutEntries = dataItemsToEntries(mimeTypeItems, in buildAboutCardEntries()
1094 final List<List<Entry>> contactCardEntries = cp2DataCardModel.contactCardEntries; in populateContactAndAboutCard()
1095 final List<List<Entry>> aboutCardEntries = cp2DataCardModel.aboutCardEntries; in populateContactAndAboutCard()
1120 Entry phoneticEntry = new Entry(/* viewId = */ -1, in populateContactAndAboutCard()
1140 /* thirdAction = */ Entry.ACTION_NONE, in populateContactAndAboutCard()
1143 List<Entry> phoneticList = new ArrayList<>(); in populateContactAndAboutCard()
1185 final Entry phonePromptEntry = new Entry(CARD_ENTRY_ID_EDIT_CONTACT, in initializeNoContactDetailCard()
[all …]
DExpandingEntryCardView.java92 public static final class Entry { class in ExpandingEntryCardView
122 public Entry(int id, Drawable mainIcon, String header, String subHeader, in Entry() method in ExpandingEntryCardView.Entry
258 private List<List<Entry>> mEntries;
322 public void initialize(List<List<Entry>> entries, int numInitialVisibleEntries, in initialize()
334 public void initialize(List<List<Entry>> entries, int numInitialVisibleEntries, in initialize()
348 for (List<Entry> entryList : mEntries) { in initialize()
565 List<Entry> entryList = mEntries.get(i); in inflateInitialEntries()
602 List<Entry> entryList = mEntries.get(i); in inflateAllEntries()
606 final Entry entry = entryList.get(j); in inflateAllEntries()
658 for (List<Entry> entryList : mEntries) { in applyColor()
[all …]
DResolveCache.java106 private static class Entry { class in ResolveCache
111 private HashMap<String, Entry> mCache = new HashMap<String, Entry>();
123 protected Entry getEntry(String mimeType, Intent intent) { in getEntry()
124 Entry entry = mCache.get(mimeType); in getEntry()
126 entry = new Entry(); in getEntry()
/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/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 …]
/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.java50 private final Map<Long, Entry> mEntries;
80 mEntries = new HashMap<Long, Entry>(); in PhotoStore()
110 public Entry get(long key) { in get()
125 Entry entry = new Entry(file); in initialize()
213 Entry entry = new Entry(target); in insert()
257 private void putEntry(long id, Entry entry) { in putEntry()
261 Entry oldEntry = mEntries.get(id); in putEntry()
272 Entry entry = mEntries.get(id); in removeEntry()
281 public static class Entry { class in PhotoStore
291 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/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/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/Email/tests/src/com/android/email/
DThrottleTest.java174 private static class Entry {
179 private final BlockingQueue<Entry> mTasks = new LinkedBlockingQueue<Entry>();
190 Entry e = new Entry();
203 Entry e = mTasks.peek();

12345