/packages/modules/Connectivity/tests/common/java/android/net/netstats/ |
D | NetworkStatsApiTest.kt | 22 import android.net.NetworkStats.Entry 75 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 77 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 79 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 81 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_FOREGROUND, TAG_NONE, in setUp() 84 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 86 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, 0x80, in setUp() 88 .addEntry(Entry(TEST_IFACE, TEST_UID2, SET_DEFAULT, TAG_NONE, in setUp() 90 .addEntry(Entry(IFACE_VT, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp() 96 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, 0x80, in setUp() [all …]
|
D | NetworkStatsHistoryTest.kt | 41 val entry1 = NetworkStatsHistory.Entry(10, 30, 40, 4, 50, 5, 60) in <lambda>() 42 val entry2 = NetworkStatsHistory.Entry(30, 15, 3, 41, 7, 1, 0) in <lambda>() 43 val entry3 = NetworkStatsHistory.Entry(7, 301, 11, 14, 31, 2, 80) in <lambda>() 66 val entry1 = NetworkStatsHistory.Entry(10, 30, 40, 4, 50, 5, 60) in <lambda>() 67 val entry2 = NetworkStatsHistory.Entry(30, 15, 3, 41, 7, 1, 0) in <lambda>() 68 val entry3 = NetworkStatsHistory.Entry(30, 999, 11, 14, 31, 2, 80) in <lambda>() 69 val entry4 = NetworkStatsHistory.Entry(10, 15, 1, 17, 5, 33, 10) in <lambda>() 70 val entry5 = NetworkStatsHistory.Entry(6, 1, 9, 11, 29, 1, 7) in <lambda>() 75 val entry2and3 = NetworkStatsHistory.Entry(30, 1000, 14, 55, 38, 3, 80) in <lambda>() 76 val entry1and4 = NetworkStatsHistory.Entry(10, 45, 41, 21, 55, 38, 70) in <lambda>() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | ScanFilterQueue.java | 50 class Entry { class in ScanFilterQueue 65 private Set<Entry> mEntries = new HashSet<Entry>(); 68 Entry entry = new Entry(); in addDeviceAddress() 77 Entry entry = new Entry(); in addServiceChanged() 83 Entry entry = new Entry(); in addUuid() 91 Entry entry = new Entry(); in addUuid() 99 Entry entry = new Entry(); in addSolicitUuid() 107 Entry entry = new Entry(); in addSolicitUuid() 115 Entry entry = new Entry(); in addName() 122 Entry entry = new Entry(); in addManufacturerData() [all …]
|
D | HandleMap.java | 35 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 75 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle, int charHandle) { in Entry() method in HandleMap.Entry 85 List<Entry> mEntries = null; 90 mEntries = new CopyOnWriteArrayList<Entry>(); in HandleMap() 101 mEntries.add(new Entry(serverIf, handle, uuid, serviceType, instance, advertisePreferred)); in addService() 106 mEntries.add(new Entry(serverIf, TYPE_CHARACTERISTIC, handle, uuid, serviceHandle)); in addCharacteristic() 110 mEntries.add(new Entry(serverIf, TYPE_DESCRIPTOR, handle, uuid, serviceHandle, in addDescriptor() [all …]
|
D | AdvertiseManager.java | 134 Map.Entry<IBinder, AdvertiserInfo> findAdvertiser(int advertiserId) { in findAdvertiser() 135 Map.Entry<IBinder, AdvertiserInfo> entry = null; in findAdvertiser() 136 for (Map.Entry<IBinder, AdvertiserInfo> e : mAdvertisers.entrySet()) { in findAdvertiser() 153 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(regId); in onAdvertisingSetStarted() 189 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in onAdvertisingEnabled() 258 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in onOwnAddressRead() 269 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in getOwnAddress() 310 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in enableAdvertisingSet() 322 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in setAdvertisingData() 344 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in setScanResponseData() [all …]
|
D | PeriodicScanManager.java | 112 Map.Entry<IBinder, SyncTransferInfo> findSyncTransfer(String address) { in findSyncTransfer() 113 Map.Entry<IBinder, SyncTransferInfo> entry = null; in findSyncTransfer() 114 for (Map.Entry<IBinder, SyncTransferInfo> e : mSyncTransfers.entrySet()) { in findSyncTransfer() 143 Map.Entry<IBinder, SyncInfo> findSync(int syncHandle) { in findSync() 144 Map.Entry<IBinder, SyncInfo> entry = null; in findSync() 145 for (Map.Entry<IBinder, SyncInfo> e : mSyncs.entrySet()) { in findSync() 154 Map.Entry<IBinder, SyncInfo> findMatchingSync(int advSid, String address) { in findMatchingSync() 155 Map.Entry<IBinder, SyncInfo> entry = null; in findMatchingSync() 156 for (Map.Entry<IBinder, SyncInfo> e : mSyncs.entrySet()) { in findMatchingSync() 166 for (Map.Entry<IBinder, SyncInfo> e : mSyncs.entrySet()) { in findAllSync() [all …]
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStats.java | 62 public final class NetworkStats implements Parcelable, Iterable<NetworkStats.Entry> { 252 public static class Entry { class in NetworkStats 304 public Entry() { in Entry() method in NetworkStats.Entry 309 public Entry(long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) { in Entry() method in NetworkStats.Entry 315 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() method in NetworkStats.Entry 345 public Entry(@Nullable String iface, int uid, @State int set, int tag, in Entry() method in NetworkStats.Entry 374 public void add(Entry another) { in add() 491 if (o instanceof Entry) { in equals() 492 final Entry e = (Entry) o; in equals() 577 NetworkStats.Entry entry = null; in clone() [all …]
|
D | NetworkStatsHistory.java | 27 import static android.net.NetworkStatsHistory.Entry.UNKNOWN; 125 public static final class Entry { class in NetworkStatsHistory 153 Entry() {} in Entry() method in NetworkStatsHistory.Entry 173 public Entry(long bucketStart, long activeTime, long rxBytes, in Entry() method in NetworkStatsHistory.Entry 227 Entry entry = (Entry) o; in equals() 265 public Entry plus(@NonNull Entry another, long bucketDuration) { in plus() 270 return new Entry(this.bucketStart, in plus() 476 public Entry getValues(int i, Entry recycle) { in getValues() 477 final Entry entry = recycle != null ? recycle : new Entry(); in getValues() 495 public List<Entry> getEntries() { in getEntries() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | trie_map.cpp | 37 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 …]
|
/packages/apps/Camera2/src/com/android/camera/async/ |
D | ConcurrentBufferQueue.java | 58 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/Gallery2/src/com/android/gallery3d/gadget/ |
D | WidgetDatabaseHelper.java | 68 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/Gallery/src/com/android/camera/gallery/ |
D | LruCache.java | 28 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/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/table/packed/read/ |
D | PackedTableReader.java | 155 public Entry getEntry(int key) { in getEntry() 161 public Entry getEntryByIndex(int i) { in getEntryByIndex() 163 return new Entry(i, entryBytes); in getEntryByIndex() 172 public Entry findIntValueEntry(IntValueEntryMatcher entryMatcher) { in findIntValueEntry() 181 public Entry findLongValueEntry(LongValueEntryMatcher entryMatcher) { in findLongValueEntry() 187 private Entry binarySearch(int lower, int upper, LongValueEntryMatcher entryMatcher) { in binarySearch() 200 return new Entry(mid, entryBytes); in binarySearch() 246 public final class Entry { class in PackedTableReader 256 Entry(int index, long entryBytes) { in Entry() method in PackedTableReader.Entry 262 public Entry getNext() { in getNext() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 792 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_NoFilter() 796 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_NoFilter() 800 NetworkStats.Entry entry3 = new NetworkStats.Entry( in testFilter_NoFilter() 819 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_UidFilter() 823 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_UidFilter() 827 NetworkStats.Entry entry3 = new NetworkStats.Entry( in testFilter_UidFilter() 846 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_InterfaceFilter() 850 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_InterfaceFilter() 854 NetworkStats.Entry entry3 = new NetworkStats.Entry( in testFilter_InterfaceFilter() 858 NetworkStats.Entry entry4 = new NetworkStats.Entry( in testFilter_InterfaceFilter() [all …]
|
D | NetworkStatsHistoryTest.java | 21 import static android.net.NetworkStatsHistory.Entry.UNKNOWN; 84 NetworkStatsHistory.Entry entry = null; in testReadOriginalVersion() 113 new NetworkStats.Entry(1024L, 10L, 2048L, 20L, 2L)); in testRecordSingleBucket() 127 new NetworkStats.Entry(1024L, 10L, 128L, 2L, 2L)); in testRecordEqualBuckets() 144 new NetworkStats.Entry(1000L, 2000L, 5000L, 10000L, 100L)); in testRecordTouchingBuckets() 164 new NetworkStats.Entry(128L, 2L, 256L, 4L, 1L)); in testRecordGapBuckets() 166 new NetworkStats.Entry(64L, 1L, 512L, 8L, 2L)); in testRecordGapBuckets() 177 new NetworkStats.Entry(2048L, 4L, 2048L, 4L, 2L)); in testRecordGapBuckets() 194 new NetworkStats.Entry(256L, 2L, 256L, 2L, 1L)); in testRecordOverlapBuckets() 197 new NetworkStats.Entry(1024L, 10L, 1024L, 10L, 10L)); in testRecordOverlapBuckets() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | LruCache.java | 32 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()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | IdentityCache.java | 27 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/services/Car/procfs-inspector/server/ |
D | directory.cpp | 28 bool procfsinspector::Directory::Entry::isEmpty() const { in isEmpty() 32 procfsinspector::Directory::Entry::Entry(std::string parent, std::string child) : in Entry() function in procfsinspector::Directory::Entry 41 std::string procfsinspector::Directory::Entry::str() { in str() 45 uid_t procfsinspector::Directory::Entry::getOwnerUserId() { in getOwnerUserId() 57 procfsinspector::Directory::Entry procfsinspector::Directory::next(unsigned char type) { in next() 66 return Entry(mPath, entry->d_name); in next() 71 return Entry(); in next()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoStore.java | 51 private final Map<Long, Entry> mEntries; 81 mEntries = new ArrayMap<Long, Entry>(); in PhotoStore() 111 public Entry get(long key) { in get() 126 Entry entry = new Entry(file); in initialize() 214 Entry entry = new Entry(target); in insert() 258 private void putEntry(long id, Entry entry) { in putEntry() 262 Entry oldEntry = mEntries.get(id); in putEntry() 273 Entry entry = mEntries.get(id); in removeEntry() 282 public static class Entry { class in PhotoStore 292 public Entry(File file) { in Entry() method in PhotoStore.Entry
|
/packages/modules/DnsResolver/ |
D | res_cache.cpp | 702 struct Entry { struct 704 struct Entry* hlink; /* next in collision chain */ argument 705 struct Entry* mru_prev; argument 706 struct Entry* mru_next; argument 809 static void entry_free(Entry* e) { in entry_free() 816 static void entry_mru_remove(Entry* e) { in entry_mru_remove() 821 static void entry_mru_add(Entry* e, Entry* list) { in entry_mru_add() 822 Entry* first = list->mru_next; in entry_mru_add() 833 static unsigned entry_hash(const Entry* e) { in entry_hash() 842 static int entry_init_key(Entry* e, span<const uint8_t> query) { in entry_init_key() [all …]
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/read/ |
D | PopulatedSuffixTableBlock.java | 83 public SuffixTableBlock.Entry findEntryByCellId(long cellId) { in findEntryByCellId() 90 public SuffixTableBlock.Entry findEntryByIndex(int i) { in findEntryByIndex() 91 return new Entry(mPackedTable.getEntryByIndex(i)); in findEntryByIndex() 108 private SuffixTableBlock.Entry findEntryWithMatcher( in findEntryWithMatcher() 114 return new Entry(suffixTableEntry); in findEntryWithMatcher() 153 public final class Entry extends SuffixTableBlock.Entry { class in PopulatedSuffixTableBlock 159 Entry(IntValueTable.TableEntry suffixTableEntry) { in Entry() method in PopulatedSuffixTableBlock.Entry 225 Entry entry = (Entry) o; in equals()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | TaskKeyLruCache.java | 63 Entry<V> entry = mMap.get(key.id); in getAndInvalidateIfModified() 79 mMap.put(key.id, new Entry<>(key, value)); in put() 89 Entry<V> entry = mMap.get(taskId); in updateIfAlreadyInCache() 95 private static class Entry<V> { class in TaskKeyLruCache 100 Entry(TaskKey key, V value) { in Entry() method in TaskKeyLruCache.Entry 111 private static class MyLinkedHashMap<V> extends LinkedHashMap<Integer, Entry<V>> { 121 protected boolean removeEldestEntry(Map.Entry<Integer, TaskKeyLruCache.Entry<V>> eldest) { in removeEldestEntry()
|
/packages/apps/Car/Radio/src/com/android/car/radio/ |
D | BrowseAdapter.java | 49 private @NonNull List<Entry> mPrograms = new ArrayList<>(); 83 private class Entry { class in BrowseAdapter 88 Entry(Program program, boolean isFavorite) { in Entry() method in BrowseAdapter.Entry 128 List<Entry> remove = new ArrayList<>(); in setProgramList() 129 for (Entry entry : mPrograms) { in setProgramList() 142 .map(pi -> new Entry(Program.fromProgramInfo(pi), false)) in setProgramList() 172 for (Entry entry : mPrograms) { in onFavoritesChanged() 179 favMap.values().stream().map(p -> new Entry(p, true)).forEachOrdered(mPrograms::add); in onFavoritesChanged() 209 Entry entry = getEntryLocked(position); in onBindViewHolder() 221 private Entry getEntryLocked(int position) { in getEntryLocked() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoFallbackEffect.java | 37 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/Gallery2/src/com/android/gallery3d/data/ |
D | DownloadCache.java | 69 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 …]
|