Home
last modified time | relevance | path

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

12345678910>>...24

/packages/modules/Connectivity/tests/common/java/android/net/netstats/
DNetworkStatsApiTest.kt22 import android.net.NetworkStats.Entry
68 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp()
70 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp()
72 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp()
74 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_FOREGROUND, 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, 0x80, in setUp()
81 .addEntry(Entry(TEST_IFACE, TEST_UID2, SET_DEFAULT, TAG_NONE, in setUp()
83 .addEntry(Entry(IFACE_VT, TEST_UID1, SET_DEFAULT, TAG_NONE, in setUp()
89 .addEntry(Entry(TEST_IFACE, TEST_UID1, SET_DEFAULT, 0x80, in setUp()
[all …]
DNetworkStatsHistoryTest.kt41 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/le_scan/
DScanFilterQueue.java50 static class Entry { class in ScanFilterQueue
70 private Set<Entry> mEntries = new HashSet<Entry>();
73 Entry entry = new Entry(); in addDeviceAddress()
82 Entry entry = new Entry(); in addServiceChanged()
88 Entry entry = new Entry(); in addUuid()
96 Entry entry = new Entry(); in addUuid()
104 Entry entry = new Entry(); in addSolicitUuid()
112 Entry entry = new Entry(); in addSolicitUuid()
120 Entry entry = new Entry(); in addName()
127 Entry entry = new Entry(); in addManufacturerData()
[all …]
DPeriodicScanManager.java105 Map.Entry<IBinder, SyncTransferInfo> findSyncTransfer(String address) { in findSyncTransfer()
106 Map.Entry<IBinder, SyncTransferInfo> entry = null; in findSyncTransfer()
107 for (Map.Entry<IBinder, SyncTransferInfo> e : mSyncTransfers.entrySet()) { in findSyncTransfer()
134 Map.Entry<IBinder, SyncInfo> findSync(int syncHandle) { in findSync()
135 Map.Entry<IBinder, SyncInfo> entry = null; in findSync()
136 for (Map.Entry<IBinder, SyncInfo> e : mSyncs.entrySet()) { in findSync()
145 Map.Entry<IBinder, SyncInfo> findMatchingSync(int advSid, String address) { in findMatchingSync()
146 Map.Entry<IBinder, SyncInfo> entry = null; in findMatchingSync()
147 for (Map.Entry<IBinder, SyncInfo> e : mSyncs.entrySet()) { in findMatchingSync()
157 for (Map.Entry<IBinder, SyncInfo> e : mSyncs.entrySet()) { in findAllSync()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DHandleMap.java34 static class Entry { class in HandleMap
46 Entry(int serverIf, int handle, UUID uuid, int serviceType, int instance) { in Entry() method in HandleMap.Entry
55 Entry( in Entry() method in HandleMap.Entry
71 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle) { in Entry() method in HandleMap.Entry
79 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle, int charHandle) { in Entry() method in HandleMap.Entry
89 List<Entry> mEntries = null;
94 mEntries = new CopyOnWriteArrayList<Entry>(); in HandleMap()
110 mEntries.add(new Entry(serverIf, handle, uuid, serviceType, instance, advertisePreferred)); in addService()
115 mEntries.add(new Entry(serverIf, TYPE_CHARACTERISTIC, handle, uuid, serviceHandle)); in addCharacteristic()
120 new Entry( in addDescriptor()
[all …]
DAdvertiseManager.java128 Map.Entry<IBinder, AdvertiserInfo> findAdvertiser(int advertiserId) { in findAdvertiser()
129 Map.Entry<IBinder, AdvertiserInfo> entry = null; in findAdvertiser()
130 for (Map.Entry<IBinder, AdvertiserInfo> e : mAdvertisers.entrySet()) { in findAdvertiser()
150 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(regId); in onAdvertisingSetStarted()
192 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in onAdvertisingEnabled()
305 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in onOwnAddressRead()
316 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in getOwnAddress()
355 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in enableAdvertisingSet()
366 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in setAdvertisingData()
388 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(advertiserId); in setScanResponseData()
[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/modules/Connectivity/framework-t/src/android/net/
DNetworkStats.java64 public final class NetworkStats implements Parcelable, Iterable<NetworkStats.Entry> {
254 public static class Entry { class in NetworkStats
306 public Entry() { in Entry() method in NetworkStats.Entry
335 public Entry(@Nullable String iface, int uid, @State int set, int tag, in Entry() method in NetworkStats.Entry
364 public void add(Entry another) { in add()
466 private Entry setKeys(@Nullable String iface, int uid, @State int set, in setKeys()
485 private Entry setValues(long rxBytes, long rxPackets, long txBytes, long txPackets, in setValues()
516 if (o instanceof Entry) { in equals()
517 final Entry e = (Entry) o; in equals()
602 NetworkStats.Entry entry = null; in clone()
[all …]
/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 …]
/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/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()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DTrafficStatsRateLimitCacheTest.kt19 import android.net.NetworkStats.Entry
41 private val entry = mock(Entry::class.java)
67 val entry1 = mock(Entry::class.java) in testPutAndGet_retrievesCorrectEntryForDifferentKeys()
68 val entry2 = mock(Entry::class.java) in testPutAndGet_retrievesCorrectEntryForDifferentKeys()
79 val entry1 = mock(Entry::class.java) in testPut_overridesExistingEntry()
80 val entry2 = mock(Entry::class.java) in testPut_overridesExistingEntry()
91 val entry1 = mock(Entry::class.java) in testPut_removeLru()
92 val entry2 = mock(Entry::class.java) in testPut_removeLru()
93 val entry3 = mock(Entry::class.java) in testPut_removeLru()
106 val entry1 = mock(Entry::class.java) in testGetOrCompute_cacheHit()
[all …]
/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/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/table/packed/read/
DPackedTableReader.java164 public Entry getEntry(int key) { in getEntry()
170 public Entry getEntryByIndex(int i) { in getEntryByIndex()
172 return new Entry(i, entryBytes); in getEntryByIndex()
181 public Entry findIntValueEntry(IntValueEntryMatcher entryMatcher) { in findIntValueEntry()
190 public Entry findLongValueEntry(LongValueEntryMatcher entryMatcher) { in findLongValueEntry()
196 private Entry binarySearch(int lower, int upper, LongValueEntryMatcher entryMatcher) { in binarySearch()
209 return new Entry(mid, entryBytes); in binarySearch()
255 public final class Entry { class in PackedTableReader
265 Entry(int index, long entryBytes) { in Entry() method in PackedTableReader.Entry
271 public Entry getNext() { in getNext()
[all …]
DBaseTypedPackedTable.java66 protected abstract E createEntry(PackedTableReader.Entry entry); in createEntry()
70 PackedTableReader.Entry entry = mTableReader.getEntry(key); in getEntry()
78 E wrapEntryOrNull(PackedTableReader.Entry entry) { in wrapEntryOrNull()
88 protected final PackedTableReader.Entry mEntry;
90 BasePackedTableEntry(PackedTableReader.Entry entry) { in BasePackedTableEntry()
106 PackedTableReader.Entry previousEntry = mEntry.getPrevious(); in getPrevious()
112 PackedTableReader.Entry nextEntry = mEntry.getNext(); in getNext()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsTest.java797 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_NoFilter()
801 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_NoFilter()
805 NetworkStats.Entry entry3 = new NetworkStats.Entry( in testFilter_NoFilter()
824 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_UidFilter()
828 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_UidFilter()
832 NetworkStats.Entry entry3 = new NetworkStats.Entry( in testFilter_UidFilter()
851 NetworkStats.Entry entry1 = new NetworkStats.Entry( in testFilter_InterfaceFilter()
855 NetworkStats.Entry entry2 = new NetworkStats.Entry( in testFilter_InterfaceFilter()
859 NetworkStats.Entry entry3 = new NetworkStats.Entry( in testFilter_InterfaceFilter()
863 NetworkStats.Entry entry4 = new NetworkStats.Entry( in testFilter_InterfaceFilter()
[all …]
DNetworkStatsHistoryTest.java28 import static android.net.NetworkStatsHistory.Entry.UNKNOWN;
92 NetworkStatsHistory.Entry entry = null; in testReadOriginalVersion()
121 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordSingleBucket()
136 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordEqualBuckets()
154 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordTouchingBuckets()
175 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordGapBuckets()
178 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordGapBuckets()
190 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordGapBuckets()
208 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordOverlapBuckets()
212 new NetworkStats.Entry(IFACE_ALL, UID_ALL, SET_DEFAULT, TAG_NONE, METERED_NO, in testRecordOverlapBuckets()
[all …]
/packages/services/Car/libs/procfs-inspector/server/
Ddirectory.cpp28 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/modules/Virtualization/pvmfw/src/
Dconfig.rs54 MissingEntry(Entry),
56 EntryOutOfBounds(Entry, Range<usize>, Range<usize>),
107 Self::VERSION_1_0 => Entry::DebugPolicy, in entry_count()
108 Self::VERSION_1_1 => Entry::VmDtbo, in entry_count()
109 Self::VERSION_1_2 => Entry::VmBaseDtbo, in entry_count()
113 return Ok(Entry::COUNT); in entry_count()
123 pub enum Entry { enum
132 impl Entry { impl
135 const ALL_ENTRIES: [Entry; Self::COUNT] =
200 ranges: [Option<NonEmptyRange>; Entry::COUNT],
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoStore.java51 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/services/Telephony/utils/satellite/s2storage/src/readonly/java/com/android/telephony/sats2range/read/
DPopulatedSuffixTableBlock.java75 public SuffixTableBlock.Entry findEntryByCellId(long cellId) { in findEntryByCellId()
82 public SuffixTableBlock.Entry findEntryByIndex(int i) { in findEntryByIndex()
83 return new Entry(mPackedTable.getEntryByIndex(i)); in findEntryByIndex()
95 private SuffixTableBlock.Entry findEntryWithMatcher( in findEntryWithMatcher()
101 return new Entry(suffixTableEntry); in findEntryWithMatcher()
140 public final class Entry extends SuffixTableBlock.Entry { class in PopulatedSuffixTableBlock
146 Entry(IntValueTable.TableEntry suffixTableEntry) { in Entry() method in PopulatedSuffixTableBlock.Entry
206 Entry entry = (Entry) o; in equals()
/packages/modules/GeoTZ/tzs2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/read/
DPopulatedSuffixTableBlock.java83 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/modules/Connectivity/service-t/src/com/android/server/net/
DTrafficStatsRateLimitCache.java78 public final NetworkStats.Entry entry;
80 TrafficStatsCacheValue(long timestamp, NetworkStats.Entry entry) { in TrafficStatsCacheValue()
97 NetworkStats.Entry get(String iface, int uid) { in get()
123 NetworkStats.Entry getOrCompute(String iface, int uid, in getOrCompute()
124 @NonNull Supplier<NetworkStats.Entry> supplier) { in getOrCompute()
126 final NetworkStats.Entry cachedValue = get(iface, uid); in getOrCompute()
132 final NetworkStats.Entry computedEntry = supplier.get(); in getOrCompute()
147 void put(String iface, int uid, @NonNull final NetworkStats.Entry entry) { in put()
/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()

12345678910>>...24