Home
last modified time | relevance | path

Searched refs:oldCount (Results 1 – 25 of 39) 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()
/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) {
DAbstractMultiset.java104 public boolean setCount(@Nullable E element, int oldCount, int newCount) { in setCount() argument
105 return setCountImpl(this, element, oldCount, newCount); in setCount()
DFilteredEntryMultimap.java346 int oldCount = 0;
351 oldCount++;
352 if (oldCount <= occurrences) {
357 return oldCount;
DMultiset.java181 boolean setCount(E element, int oldCount, int newCount); in setCount() argument
/external/skia/src/animator/
DSkAnimateActive.cpp58 int oldCount = fAnimators.count(); in append() local
62 int total = oldCount + newCount; in append()
66 memset(&fInterpolators.begin()[oldCount], 0, newCount * sizeof(SkOperandInterpolator*)); in append()
67 for (index = oldCount; index < total; index++) in append()
70 memcpy(&fAnimators[oldCount], animates.begin(), sizeof(fAnimators[0]) * in append()
73 initState(apply, oldCount); in append()
78 SkActive::SkState& testState = fState[oldCount + index]; in append()
79 for (int inner = 0; inner < oldCount; inner++) { in append()
98 saveIndex -= oldCount; in append()
105 oldCount--; in append()
[all …]
DSkTypedArray.cpp105 unsigned oldCount = fCount; in append() local
113 memcpy(fArray + oldCount, src, sizeof(int32_t) * count); in append()
115 return fArray + oldCount; in append()
156 int oldCount = fCount; in insert() local
159 memmove(dst + count, dst, sizeof(int32_t) * (oldCount - index)); in insert()
DSkAnimateActive.h39 void appendSave(int oldCount);
/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.cpp17 int32_t oldCount = sk_atomic_inc(&gCachedDataCounter); in inc() local
18 SkDebugf("SkCachedData inc %d\n", oldCount + 1); in inc()
22 int32_t oldCount = sk_atomic_dec(&gCachedDataCounter); in dec() local
23 SkDebugf("SkCachedData dec %d\n", oldCount - 1); in dec()
DSkPictureFlat.h433 const int oldCount = this->count(); in findAndReplace() local
435 *added = this->count() > oldCount; in findAndReplace()
460 SkASSERT(this->count() == oldCount); in findAndReplace()
DSkPixelRef.cpp144 SkDEBUGCODE(int oldCount = fLockCount;) in lockPixels()
147 SkASSERT(oldCount + (int)success == fLockCount); in lockPixels()
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.h165 int oldCount = fCount; variable
168 src + count <= fArray || fArray + oldCount <= src);
172 memcpy(fArray + oldCount, src, sizeof(T) * count);
175 return fArray + oldCount;
190 size_t oldCount = fCount; variable
193 memmove(dst + count, dst, sizeof(T) * (oldCount - index));
/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.java636 Integer oldCount = maxExpansions.get(lastHalf); in handleExpansion() local
637 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.java619 Integer oldCount = maxExpansions.get(lastHalf); in handleExpansion() local
620 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()

12