Home
last modified time | relevance | path

Searched refs:oldCount (Results 1 – 25 of 32) sorted by relevance

12

/external/javassist/src/main/javassist/bytecode/
DByteStream.java52 int oldCount = count; in write() local
53 buf[oldCount] = (byte)b; in write()
54 count = oldCount + 1; in write()
59 int oldCount = count; in writeShort() local
60 buf[oldCount] = (byte)(s >>> 8); in writeShort()
61 buf[oldCount + 1] = (byte)s; in writeShort()
62 count = oldCount + 2; in writeShort()
67 int oldCount = count; in writeInt() local
68 buf[oldCount] = (byte)(i >>> 24); in writeInt()
69 buf[oldCount + 1] = (byte)(i >>> 16); in writeInt()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DAbstractMapBasedMultiset.java218 int oldCount;
220 oldCount = 0;
223 oldCount = frequency.get();
224 long newCount = (long) oldCount + (long) occurrences;
230 return oldCount;
244 int oldCount = frequency.get();
247 if (oldCount > occurrences) {
250 numberRemoved = oldCount;
256 return oldCount;
264 int oldCount;
[all …]
DTreeMultiset.java308 public boolean setCount(@Nullable E element, int oldCount, int newCount) { in setCount() argument
310 checkNonnegative(oldCount, "oldCount"); in setCount()
315 if (oldCount == 0) { in setCount()
325 AvlNode<E> newRoot = root.setCount(comparator(), element, oldCount, newCount, result); in setCount()
327 return result[0] == oldCount; in setCount()
DMultimaps.java1525 int oldCount = values.size();
1526 if (occurrences >= oldCount) {
1535 return oldCount;
/external/guava/guava/src/com/google/common/collect/
DAbstractMapBasedMultiset.java221 int oldCount;
223 oldCount = 0;
226 oldCount = frequency.get();
227 long newCount = (long) oldCount + (long) occurrences;
233 return oldCount;
247 int oldCount = frequency.get();
250 if (oldCount > occurrences) {
253 numberRemoved = oldCount;
259 return oldCount;
267 int oldCount;
[all …]
DForwardingMultiset.java99 public boolean setCount(E element, int oldCount, int newCount) { in setCount() argument
100 return delegate().setCount(element, oldCount, newCount); in setCount()
225 protected boolean standardSetCount(E element, int oldCount, int newCount) { in standardSetCount() argument
226 return Multisets.setCountImpl(this, element, oldCount, newCount); in standardSetCount()
DMultisets.java175 @Override public boolean setCount(E element, int oldCount, int newCount) { in setCount() argument
893 int oldCount = self.count(element);
895 int delta = count - oldCount;
902 return oldCount;
909 Multiset<E> self, E element, int oldCount, int newCount) {
910 checkNonnegative(oldCount, "oldCount");
913 if (self.count(element) == oldCount) {
DFilteredEntryMultimap.java346 int oldCount = 0;
351 oldCount++;
352 if (oldCount <= occurrences) {
357 return oldCount;
DAbstractMultiset.java104 public boolean setCount(@Nullable E element, int oldCount, int newCount) { in setCount() argument
105 return setCountImpl(this, element, oldCount, newCount); in setCount()
DMultiset.java181 boolean setCount(E element, int oldCount, int newCount); in setCount() argument
DTreeMultiset.java312 public boolean setCount(@Nullable E element, int oldCount, int newCount) { in setCount() argument
314 checkNonnegative(oldCount, "oldCount"); in setCount()
319 if (oldCount == 0) { in setCount()
329 AvlNode<E> newRoot = root.setCount(comparator(), element, oldCount, newCount, result); in setCount()
331 return result[0] == oldCount; in setCount()
/external/deqp/framework/delibs/depool/
DdePoolMultiSet.h96 int oldCount = TYPENAME##_getKeyCount(set, key); \
97 return TYPENAME##_setKeyCount(set, key, oldCount + 1); \
102 int oldCount = TYPENAME##_getKeyCount(set, key); \
103 DE_ASSERT(oldCount > 0); \
104 TYPENAME##_setKeyCount(set, key, oldCount - 1); \
150 int oldCount = countPtr ? *countPtr : 0; \
152 DE_ASSERT(oldCount > 0 || !countPtr); \
154 set->numElements += (newCount - oldCount); \
/external/skia/src/core/
DSkCachedData.cpp18 int32_t oldCount = sk_atomic_inc(&gCachedDataCounter); in inc() local
19 SkDebugf("SkCachedData inc %d\n", oldCount + 1); in inc()
23 int32_t oldCount = sk_atomic_dec(&gCachedDataCounter); in dec() local
24 SkDebugf("SkCachedData dec %d\n", oldCount - 1); in dec()
DSkTDynamicHash.h250 SkDEBUGCODE(int oldCount = fCount;) in resize()
264 SkASSERT(oldCount == fCount); in resize()
/external/deqp/framework/delibs/decpp/
DdeSharedPtr.hpp485 deInt32 oldCount, newCount; in acquireFromWeak() local
490 oldCount = state->strongRefCount; in acquireFromWeak()
491 if (oldCount == 0) in acquireFromWeak()
493 newCount = oldCount+1; in acquireFromWeak()
494 …Uint32 volatile*)&state->strongRefCount, (deUint32)oldCount, (deUint32)newCount) != (deUint32)oldC… in acquireFromWeak()
/external/skia/include/private/
DSkTDArray.h177 int oldCount = fCount; variable
180 src + count <= fArray || fArray + oldCount <= src);
184 memcpy(fArray + oldCount, src, sizeof(T) * count);
187 return fArray + oldCount;
202 size_t oldCount = fCount; variable
205 memmove(dst + count, dst, sizeof(T) * (oldCount - index));
DSkTHash.h172 SkDEBUGCODE(int oldCount = fCount); in resize()
185 SkASSERT(fCount == oldCount); in resize()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DConcurrentHashMultisetBenchmark.java394 @Override public boolean setCount(E element, int oldCount, int newCount) {
395 checkNonnegative(oldCount, "oldCount");
398 if (oldCount == 0) {
402 return countMap.remove(element, oldCount);
405 if (oldCount == 0) {
408 return countMap.replace(element, oldCount, newCount);
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DCollationElementIterator.java617 Integer oldCount = maxExpansions.get(lastHalf); in handleExpansion() local
618 if (oldCount == null || count > oldCount) { in handleExpansion()
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingMultisetTest.java111 @Override public boolean setCount(T element, int oldCount, int newCount) { in setCount() argument
112 return standardSetCount(element, oldCount, newCount); in setCount()
233 String element, int oldCount, int newCount) { in suite()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCollationElementIterator.java600 Integer oldCount = maxExpansions.get(lastHalf); in handleExpansion() local
601 if (oldCount == null || count > oldCount) { in handleExpansion()
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DMultisetRemoveTester.java106 int oldCount = getMultiset().count(samples.e0); in testRemove_occurrences_0() local
108 oldCount, getMultiset().remove(samples.e0, 0)); in testRemove_occurrences_0()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetRemoveTester.java109 int oldCount = getMultiset().count(samples.e0); in testRemove_occurrences_0() local
111 oldCount, getMultiset().remove(samples.e0, 0)); in testRemove_occurrences_0()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUnicodeSetStringSpan.java1130 int oldCount = list[i]; in hasCountAtOffset() local
1131 return oldCount != 0 && oldCount <= count; in hasCountAtOffset()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUnicodeSetStringSpan.java1126 int oldCount = list[i]; in hasCountAtOffset() local
1127 return oldCount != 0 && oldCount <= count; in hasCountAtOffset()

12