Searched refs:oldCount (Results 1 - 25 of 43) sorted by relevance

12

/external/javassist/src/main/javassist/bytecode/
H A DByteStream.java52 int oldCount = count;
53 buf[oldCount] = (byte)b;
54 count = oldCount + 1;
59 int oldCount = count;
60 buf[oldCount] = (byte)(s >>> 8);
61 buf[oldCount + 1] = (byte)s;
62 count = oldCount + 2;
67 int oldCount = count;
68 buf[oldCount] = (byte)(i >>> 24);
69 buf[oldCount
[all...]
/external/guava/guava/src/com/google/common/collect/
H A 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...]
H A DForwardingMultiset.java99 public boolean setCount(E element, int oldCount, int newCount) { argument
100 return delegate().setCount(element, oldCount, newCount);
225 protected boolean standardSetCount(E element, int oldCount, int newCount) { argument
226 return Multisets.setCountImpl(this, element, oldCount, newCount);
H A DMultiset.java164 * current count. If the current count is not {@code oldCount}, no change is
169 * @param oldCount the expected present count of the element in this multiset
173 * {@code oldCount == newCount}.
174 * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is
178 * oldCount} and {@code newCount} are both zero, the implementor may
181 boolean setCount(E element, int oldCount, int newCount); argument
H A DAbstractMultiset.java104 public boolean setCount(@Nullable E element, int oldCount, int newCount) { argument
105 return setCountImpl(this, element, oldCount, newCount);
H A DFilteredEntryMultimap.java346 int oldCount = 0;
351 oldCount++;
352 if (oldCount <= occurrences) {
357 return oldCount;
H A DMultisets.java175 @Override public boolean setCount(E element, int oldCount, int newCount) { argument
876 int oldCount = self.count(element);
878 int delta = count - oldCount;
885 return oldCount;
892 Multiset<E> self, E element, int oldCount, int newCount) {
893 checkNonnegative(oldCount, "oldCount");
896 if (self.count(element) == oldCount) {
891 setCountImpl( Multiset<E> self, E element, int oldCount, int newCount) argument
H A DConstraints.java371 @Override public boolean setCount(E element, int oldCount, int newCount) { argument
373 return delegate.setCount(element, oldCount, newCount);
H A DTreeMultiset.java312 public boolean setCount(@Nullable E element, int oldCount, int newCount) { argument
314 checkNonnegative(oldCount, "oldCount");
319 if (oldCount == 0) {
329 AvlNode<E> newRoot = root.setCount(comparator(), element, oldCount, newCount, result);
331 return result[0] == oldCount;
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A 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...]
/external/skia/src/animator/
H A DSkAnimateActive.cpp58 int oldCount = fAnimators.count(); local
62 int total = oldCount + newCount;
66 memset(&fInterpolators.begin()[oldCount], 0, newCount * sizeof(SkOperandInterpolator*));
67 for (index = oldCount; index < total; index++)
70 memcpy(&fAnimators[oldCount], animates.begin(), sizeof(fAnimators[0]) *
73 initState(apply, oldCount);
78 SkActive::SkState& testState = fState[oldCount + index];
79 for (int inner = 0; inner < oldCount; inner++) {
98 saveIndex -= oldCount;
105 oldCount
116 appendSave(int oldCount) argument
256 int oldCount = fSaveRestore.count(); local
[all...]
H A DSkTypedArray.cpp105 unsigned oldCount = fCount; local
113 memcpy(fArray + oldCount, src, sizeof(int32_t) * count);
115 return fArray + oldCount;
156 int oldCount = fCount; local
159 memmove(dst + count, dst, sizeof(int32_t) * (oldCount - index));
H A DSkAnimateActive.h39 void appendSave(int oldCount);
/external/skia/src/core/
H A DSkCachedData.cpp18 int32_t oldCount = sk_atomic_inc(&gCachedDataCounter); local
19 SkDebugf("SkCachedData inc %d\n", oldCount + 1);
23 int32_t oldCount = sk_atomic_dec(&gCachedDataCounter); local
24 SkDebugf("SkCachedData dec %d\n", oldCount - 1);
H A DSkTDynamicHash.h250 SkDEBUGCODE(int oldCount = fCount;)
264 SkASSERT(oldCount == fCount);
H A DSkTHash.h146 SkDEBUGCODE(int oldCount = fCount);
159 SkASSERT(fCount == oldCount);
H A DSkPictureFlat.h417 const int oldCount = this->count(); local
419 *added = this->count() > oldCount;
444 SkASSERT(this->count() == oldCount);
/external/deqp/framework/delibs/depool/
H A 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/deqp/framework/delibs/decpp/
H A DdeSharedPtr.hpp485 deInt32 oldCount, newCount; local
490 oldCount = state->strongRefCount;
491 if (oldCount == 0)
493 newCount = oldCount+1;
494 } while (deAtomicCompareExchange32((deUint32 volatile*)&state->strongRefCount, (deUint32)oldCount, (deUint32)newCount) != (deUint32)oldCount);
/external/skia/include/core/
H A DSkTDArray.h165 int oldCount = fCount; local
168 src + count <= fArray || fArray + oldCount <= src);
172 memcpy(fArray + oldCount, src, sizeof(T) * count);
175 return fArray + oldCount;
190 size_t oldCount = fCount; local
193 memmove(dst + count, dst, sizeof(T) * (oldCount - index));
/external/guava/guava-tests/benchmark/com/google/common/collect/
H A DConcurrentHashMultisetBenchmark.java383 * only if the count is currently {@code oldCount}. If {@code element} does
384 * not appear in the multiset exactly {@code oldCount} times, no changes will
389 * {@code oldCount == newCount}, the method will return {@code true} if
391 * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is
394 @Override public boolean setCount(E element, int oldCount, int newCount) { argument
395 checkNonnegative(oldCount, "oldCount");
398 if (oldCount == 0) {
402 return countMap.remove(element, oldCount);
405 if (oldCount
[all...]
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
H A DMultisetRemoveTester.java106 int oldCount = getMultiset().count(samples.e0);
108 oldCount, getMultiset().remove(samples.e0, 0));
/external/guava/guava-tests/test/com/google/common/collect/
H A DForwardingMultisetTest.java111 @Override public boolean setCount(T element, int oldCount, int newCount) { argument
112 return standardSetCount(element, oldCount, newCount);
233 String element, int oldCount, int newCount) {
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
H A DCollationElementIterator.java640 Integer oldCount = maxExpansions.get(lastHalf);
641 if (oldCount == null || count > oldCount) {
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DMultisetRemoveTester.java109 int oldCount = getMultiset().count(samples.e0);
111 oldCount, getMultiset().remove(samples.e0, 0));

Completed in 964 milliseconds

12