Home
last modified time | relevance | path

Searched refs:entryIndex (Results 1 – 22 of 22) sorted by relevance

/external/guava/android/guava/src/com/google/common/collect/
DAbstractMapBasedMultiset.java77 int entryIndex = backingMap.indexOf(element); in add() local
78 if (entryIndex == -1) { in add()
83 int oldCount = backingMap.getValue(entryIndex); in add()
86 backingMap.setValue(entryIndex, (int) newCount); in add()
98 int entryIndex = backingMap.indexOf(element); in remove() local
99 if (entryIndex == -1) { in remove()
102 int oldCount = backingMap.getValue(entryIndex); in remove()
106 backingMap.setValue(entryIndex, oldCount - occurrences); in remove()
109 backingMap.removeEntry(entryIndex); in remove()
128 int entryIndex = backingMap.indexOf(element); in setCount() local
[all …]
DCompactHashSet.java311 int entryIndex; in add() local
316 entryIndex = next - 1; in add()
317 entry = entries[entryIndex]; in add()
319 && Objects.equal(object, elements[entryIndex])) { in add()
334 entries[entryIndex] = CompactHashing.maskCombine(entry, newEntryIndex + 1, mask); in add()
347 void insertEntry(int entryIndex, @NullableDecl E object, int hash, int mask) { in insertEntry() argument
348 this.entries[entryIndex] = CompactHashing.maskCombine(hash, UNSET, mask); in insertEntry()
349 this.elements[entryIndex] = object; in insertEntry()
391 int entryIndex = next - 1; in resizeTable() local
392 int entry = entries[entryIndex]; in resizeTable()
[all …]
DCompactHashMap.java307 int entryIndex; in put() local
312 entryIndex = next - 1; in put()
313 entry = entries[entryIndex]; in put()
315 && Objects.equal(key, keys[entryIndex])) { in put()
318 V oldValue = (V) values[entryIndex]; in put()
320 values[entryIndex] = value; in put()
321 accessEntry(entryIndex); in put()
336 entries[entryIndex] = CompactHashing.maskCombine(entry, newEntryIndex + 1, mask); in put()
349 void insertEntry(int entryIndex, @NullableDecl K key, @NullableDecl V value, int hash, int mask) { in insertEntry() argument
350 this.entries[entryIndex] = CompactHashing.maskCombine(hash, UNSET, mask); in insertEntry()
[all …]
DCompactHashing.java162 int entryIndex = next - 1; in remove() local
163 int entry = entries[entryIndex]; in remove()
165 && Objects.equal(key, keys[entryIndex]) in remove()
166 && (values == null || Objects.equal(value, values[entryIndex]))) { in remove()
176 return entryIndex; in remove()
178 lastEntryIndex = entryIndex; in remove()
DObjectCountLinkedHashMap.java144 void insertEntry(int entryIndex, K key, int value, int hash) { in insertEntry() argument
145 super.insertEntry(entryIndex, key, value, hash); in insertEntry()
146 setSucceeds(lastEntry, entryIndex); in insertEntry()
147 setSucceeds(entryIndex, ENDPOINT); in insertEntry()
DCompactLinkedHashMap.java164 void insertEntry(int entryIndex, @NullableDecl K key, @NullableDecl V value, int hash, int mask) { in insertEntry() argument
165 super.insertEntry(entryIndex, key, value, hash, mask); in insertEntry()
166 setSucceeds(lastEntry, entryIndex); in insertEntry()
167 setSucceeds(entryIndex, ENDPOINT); in insertEntry()
DCompactLinkedHashSet.java184 void insertEntry(int entryIndex, @NullableDecl E object, int hash, int mask) { in insertEntry() argument
185 super.insertEntry(entryIndex, object, hash, mask); in insertEntry()
186 setSucceeds(lastEntry, entryIndex); in insertEntry()
187 setSucceeds(entryIndex, ENDPOINT); in insertEntry()
DObjectCountHashMap.java319 void insertEntry(int entryIndex, @NullableDecl K key, int value, int hash) { in insertEntry() argument
320 this.entries[entryIndex] = ((long) hash << 32) | (NEXT_MASK & UNSET); in insertEntry()
321 this.keys[entryIndex] = key; in insertEntry()
322 this.values[entryIndex] = value; in insertEntry()
440 int removeEntry(int entryIndex) { in removeEntry() argument
441 return remove(keys[entryIndex], getHash(entries[entryIndex])); in removeEntry()
/external/guava/guava/src/com/google/common/collect/
DCompactHashSet.java315 int entryIndex; in add() local
320 entryIndex = next - 1; in add()
321 entry = entries[entryIndex]; in add()
323 && Objects.equal(object, elements[entryIndex])) { in add()
338 entries[entryIndex] = CompactHashing.maskCombine(entry, newEntryIndex + 1, mask); in add()
351 void insertEntry(int entryIndex, @Nullable E object, int hash, int mask) { in insertEntry() argument
352 this.entries[entryIndex] = CompactHashing.maskCombine(hash, UNSET, mask); in insertEntry()
353 this.elements[entryIndex] = object; in insertEntry()
395 int entryIndex = next - 1; in resizeTable() local
396 int entry = entries[entryIndex]; in resizeTable()
[all …]
DCompactHashMap.java310 int entryIndex; in put() local
315 entryIndex = next - 1; in put()
316 entry = entries[entryIndex]; in put()
318 && Objects.equal(key, keys[entryIndex])) { in put()
321 V oldValue = (V) values[entryIndex]; in put()
323 values[entryIndex] = value; in put()
324 accessEntry(entryIndex); in put()
339 entries[entryIndex] = CompactHashing.maskCombine(entry, newEntryIndex + 1, mask); in put()
352 void insertEntry(int entryIndex, @Nullable K key, @Nullable V value, int hash, int mask) { in insertEntry() argument
353 this.entries[entryIndex] = CompactHashing.maskCombine(hash, UNSET, mask); in insertEntry()
[all …]
DCompactHashing.java162 int entryIndex = next - 1; in remove() local
163 int entry = entries[entryIndex]; in remove()
165 && Objects.equal(key, keys[entryIndex]) in remove()
166 && (values == null || Objects.equal(value, values[entryIndex]))) { in remove()
176 return entryIndex; in remove()
178 lastEntryIndex = entryIndex; in remove()
DCompactLinkedHashSet.java186 void insertEntry(int entryIndex, @Nullable E object, int hash, int mask) { in insertEntry() argument
187 super.insertEntry(entryIndex, object, hash, mask); in insertEntry()
188 setSucceeds(lastEntry, entryIndex); in insertEntry()
189 setSucceeds(entryIndex, ENDPOINT); in insertEntry()
DCompactLinkedHashMap.java169 void insertEntry(int entryIndex, @Nullable K key, @Nullable V value, int hash, int mask) { in insertEntry() argument
170 super.insertEntry(entryIndex, key, value, hash, mask); in insertEntry()
171 setSucceeds(lastEntry, entryIndex); in insertEntry()
172 setSucceeds(entryIndex, ENDPOINT); in insertEntry()
DRegularImmutableMap.java95 for (int entryIndex = 0; entryIndex < n; entryIndex++) { in fromEntryArray()
96 Entry<K, V> entry = entryArray[entryIndex]; in fromEntryArray()
108 entries[entryIndex] = newEntry; in fromEntryArray()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DMutableCodePointTrie.java777 int entryIndex = findEntry(data, null, blockData, null, blockStart, hashCode); in findBlock() local
778 if (entryIndex >= 0) { in findBlock()
779 return (table[entryIndex] & mask) - 1; in findBlock()
787 int entryIndex = findEntry(null, data, blockData, null, blockStart, hashCode); in findBlock() local
788 if (entryIndex >= 0) { in findBlock()
789 return (table[entryIndex] & mask) - 1; in findBlock()
797 int entryIndex = findEntry(null, data, null, blockData, blockStart, hashCode); in findBlock() local
798 if (entryIndex >= 0) { in findBlock()
799 return (table[entryIndex] & mask) - 1; in findBlock()
807 int entryIndex = findEntry(data, blockValue, hashCode); in findAllSameBlock() local
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMutableCodePointTrie.java785 int entryIndex = findEntry(data, null, blockData, null, blockStart, hashCode); in findBlock() local
786 if (entryIndex >= 0) { in findBlock()
787 return (table[entryIndex] & mask) - 1; in findBlock()
795 int entryIndex = findEntry(null, data, blockData, null, blockStart, hashCode); in findBlock() local
796 if (entryIndex >= 0) { in findBlock()
797 return (table[entryIndex] & mask) - 1; in findBlock()
805 int entryIndex = findEntry(null, data, null, blockData, blockStart, hashCode); in findBlock() local
806 if (entryIndex >= 0) { in findBlock()
807 return (table[entryIndex] & mask) - 1; in findBlock()
815 int entryIndex = findEntry(data, blockValue, hashCode); in findAllSameBlock() local
[all …]
/external/icu/icu4c/source/common/
Dumutablecptrie.cpp825 int32_t entryIndex = findEntry(data, blockData, blockStart, hashCode); in findBlock() local
826 if (entryIndex >= 0) { in findBlock()
827 return (table[entryIndex] & mask) - 1; in findBlock()
835 int32_t entryIndex = findEntry(data, blockValue, hashCode); in findAllSameBlock() local
836 if (entryIndex >= 0) { in findAllSameBlock()
837 return (table[entryIndex] & mask) - 1; in findAllSameBlock()
865 int32_t entryIndex = findEntry(data, data, blockStart, hashCode); in addEntry() local
866 if (entryIndex < 0) { in addEntry()
867 table[~entryIndex] = (hashCode << shift) | (dataIndex + 1); in addEntry()
876 for (int32_t entryIndex = initialEntryIndex;;) { in findEntry() local
[all …]
/external/brotli/java/org/brotli/integration/
DBundleChecker.java63 int entryIndex = 0; in run() local
70 if (entryIndex++ != jobIndex) { in run()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResTable.java519 final PackageGroup packageGroup, int typeIndex, int entryIndex,
542 int realEntryIndex = entryIndex;
550 if (typeSpec.idmapEntries.lookup(entryIndex, overlayEntryIndex) != NO_ERROR) {
564 Res_MAKEID(packageGroup.id - 1, typeIndex, entryIndex),
565 entryIndex, ((int) typeSpec.entryCount));
1269 int entryIndex = resTableType.findEntryByResName(ei);
1270 if (entryIndex >= 0) {
1271 int resId = Res_MAKEID(group.id - 1, typeIndex, entryIndex);
1274 if (getEntry(group, typeIndex, entryIndex, null, result) != NO_ERROR) {
DResourceTypes.java1208 int entryOffset(int entryIndex) { in entryOffset() argument
1217 return byteBuffer.getInt(offset + header.headerSize + entryIndex * 4); in entryOffset()
1220 private int entryNameIndex(int entryIndex) { in entryNameIndex() argument
1229 int entryOffset = byteBuffer.getInt(offset + header.headerSize + entryIndex * 4); in entryNameIndex()
/external/fonttools/Lib/fontTools/ttLib/tables/
DotConverters.py1138 entryIndex = stateArrayReader.readUShort()
1141 entryIndex, font,
1148 def _readTransition(self, reader, entryIndex, font, actionReader): argument
1151 reader.pos + entryIndex * transition.staticSize)
1261 entryIndex = entryIDs.get(entryData)
1262 if entryIndex is None:
1263 entryIndex = len(entries)
1264 entryIDs[entryData] = entryIndex
1266 stateArrayWriter.writeUShort(entryIndex)
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DAtomParsers.java889 int entryIndex) in parseVideoSampleEntry() argument
909 out.trackEncryptionBoxes[entryIndex] = sampleEntryEncryptionData.second; in parseVideoSampleEntry()
1078 int entryIndex) in parseAudioSampleEntry() argument
1126 out.trackEncryptionBoxes[entryIndex] = sampleEntryEncryptionData.second; in parseAudioSampleEntry()