Searched defs:newCount (Results 1 - 25 of 42) sorted by relevance

12

/external/skia/tests/
H A DTDStackNesterTest.cpp39 const int newCount = nester->count(); local
40 REPORTER_ASSERT(reporter, newCount == count - 1);
43 REPORTER_ASSERT(reporter, newCount == value);
/external/chromium_org/third_party/skia/src/gpu/gl/
H A DGrGLVertexArray.h59 void resize(int newCount) { argument
60 fAttribArrayStates.resize_back(newCount);
61 for (int i = 0; i < newCount; ++i) {
/external/guava/guava/src/com/google/common/collect/
H A DAbstractMultiset.java104 public boolean setCount(E element, int oldCount, int newCount) { argument
105 return setCountImpl(this, element, oldCount, newCount);
H A DConcurrentHashMultiset.java392 * Sets the number of occurrences of {@code element} to {@code newCount}, but only if
398 * {@code expectedOldCount == newCount}, the method will return {@code true} if
400 * @throws IllegalArgumentException if {@code expectedOldCount} or {@code newCount} is negative
402 @Override public boolean setCount(E element, int expectedOldCount, int newCount) { argument
404 checkNonnegative(newCount, "newCount");
410 } else if (newCount == 0) {
414 return countMap.putIfAbsent(element, new AtomicInteger(newCount)) == null;
420 if (newCount == 0) {
425 AtomicInteger newCounter = new AtomicInteger(newCount);
[all...]
H A DForwardingMultiset.java99 public boolean setCount(E element, int oldCount, int newCount) { argument
100 return delegate().setCount(element, oldCount, newCount);
230 E element, int oldCount, int newCount) {
231 return Multisets.setCountImpl(this, element, oldCount, newCount);
229 standardSetCount( E element, int oldCount, int newCount) argument
H A DMultiset.java166 * @param newCount the desired count of the element in this multiset
169 * {@code oldCount == newCount}.
170 * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is
174 * oldCount} and {@code newCount} are both zero, the implementor may
177 boolean setCount(E element, int oldCount, int newCount); argument
H A DConstraints.java363 @Override public boolean setCount(E element, int oldCount, int newCount) { argument
365 return delegate.setCount(element, oldCount, newCount);
H A DImmutableMultiset.java317 public final boolean setCount(E element, int oldCount, int newCount) { argument
H A DLinkedListMultimap.java763 public boolean setCount(K element, int oldCount, int newCount) { argument
764 return setCountImpl(this, element, oldCount, newCount);
H A DTreeMultiset.java235 public boolean setCount(E element, int oldCount, int newCount) { argument
238 return mutate(element, new ConditionalSetCountModifier(oldCount, newCount))
458 abstract int newCount(int oldCount); method in class:TreeMultiset.MultisetModifier
464 int newCount = newCount(oldCount);
465 if (oldCount == newCount) {
467 } else if (newCount == 0) {
470 return BstModificationResult.rebalancingChange(null, new Node<E>(key, newCount));
473 new Node<E>(originalEntry.getKey(), newCount));
487 int newCount(in method in class:TreeMultiset.AddModifier
502 int newCount(int oldCount) { method in class:TreeMultiset.RemoveModifier
516 int newCount(int oldCount) { method in class:TreeMultiset.SetCountModifier
532 int newCount(int oldCount) { method in class:TreeMultiset.ConditionalSetCountModifier
[all...]
/external/skia/src/gpu/gl/
H A DGrGLVertexArray.h59 void resize(int newCount) { argument
60 fAttribArrayStates.resize_back(newCount);
61 for (int i = 0; i < newCount; ++i) {
/external/chromium_org/third_party/WebKit/Source/core/rendering/
H A DCounterNode.cpp229 int newCount = node->computeCountInParent(); local
230 if (oldCount == newCount)
232 node->m_countInParent = newCount;
/external/chromium_org/third_party/skia/include/core/
H A DSkTArray.h246 void resize_back(int newCount) { argument
247 SkASSERT(newCount >= 0);
249 if (newCount > fCount) {
250 this->push_back_n(newCount - fCount);
251 } else if (newCount < fCount) {
252 this->pop_back_n(fCount - newCount);
400 int newCount = fCount + delta; local
403 if (newCount > fAllocCount || newCount < (fAllocCount / 3)) {
406 newAllocCount = SkMax32(newCount
[all...]
/external/chromium_org/third_party/skia/src/utils/win/
H A DSkDWriteFontFileStream.cpp164 ULONG newCount = InterlockedDecrement(&fRefCount); local
165 if (0 == newCount) {
168 return newCount;
/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/skia/include/core/
H A DSkTArray.h246 void resize_back(int newCount) { argument
247 SkASSERT(newCount >= 0);
249 if (newCount > fCount) {
250 this->push_back_n(newCount - fCount);
251 } else if (newCount < fCount) {
252 this->pop_back_n(fCount - newCount);
400 int newCount = fCount + delta; local
403 if (newCount > fAllocCount || newCount < (fAllocCount / 3)) {
406 newAllocCount = SkMax32(newCount
[all...]
/external/skia/src/utils/win/
H A DSkDWriteFontFileStream.cpp164 ULONG newCount = InterlockedDecrement(&fRefCount); local
165 if (0 == newCount) {
168 return newCount;
/external/srec/portable/src/
H A Dpmemory_ext.c359 void PortMemGetCount(int *newCount, int *deleteCount) argument
361 *newCount = portNewCount;
/external/chromium_org/third_party/skia/src/animator/
H A DSkAnimateActive.cpp60 int newCount = animates.count(); local
62 int total = oldCount + newCount;
66 memset(&fInterpolators.begin()[oldCount], 0, newCount * sizeof(SkOperandInterpolator*));
71 newCount);
75 for (index = 0; index < newCount; index++) {
110 // total = oldCount + newCount;
118 int newCount = fAnimators.count(); local
122 int newTotal = records * newCount;
126 newTotal -= newCount;
131 sizeof(fSaveRestore[0]) * (newCount
[all...]
H A DSkDisplayApply.cpp101 int newCount = fActive->fAnimators.count(); local
102 for (int index = oldCount; index < newCount; index++)
/external/compiler-rt/BlocksRuntime/
H A Druntime.c461 int32_t newCount; local
463 newCount = latching_decr_int(&aBlock->flags) & BLOCK_REFCOUNT_MASK;
464 if (newCount > 0) return;
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DLinkedListMultimap.java759 public boolean setCount(K element, int oldCount, int newCount) { argument
760 return setCountImpl(this, element, oldCount, newCount);
H A DTreeMultiset.java231 public boolean setCount(E element, int oldCount, int newCount) { argument
234 return mutate(element, new ConditionalSetCountModifier(oldCount, newCount))
454 abstract int newCount(int oldCount); method in class:TreeMultiset.MultisetModifier
460 int newCount = newCount(oldCount);
461 if (oldCount == newCount) {
463 } else if (newCount == 0) {
466 return BstModificationResult.rebalancingChange(null, new Node<E>(key, newCount));
469 new Node<E>(originalEntry.getKey(), newCount));
483 int newCount(in method in class:TreeMultiset.AddModifier
498 int newCount(int oldCount) { method in class:TreeMultiset.RemoveModifier
512 int newCount(int oldCount) { method in class:TreeMultiset.SetCountModifier
528 int newCount(int oldCount) { method in class:TreeMultiset.ConditionalSetCountModifier
[all...]
/external/skia/src/animator/
H A DSkAnimateActive.cpp60 int newCount = animates.count(); local
62 int total = oldCount + newCount;
66 memset(&fInterpolators.begin()[oldCount], 0, newCount * sizeof(SkOperandInterpolator*));
71 newCount);
75 for (index = 0; index < newCount; index++) {
110 // total = oldCount + newCount;
118 int newCount = fAnimators.count(); local
122 int newTotal = records * newCount;
126 newTotal -= newCount;
131 sizeof(fSaveRestore[0]) * (newCount
[all...]
/external/chromium_org/third_party/skia/src/core/
H A DSkGlyphCache.cpp427 int SkGlyphCache_Globals::setCacheCountLimit(int newCount) { argument
428 if (newCount < 0) {
429 newCount = 0;
435 fCacheCountLimit = newCount;

Completed in 661 milliseconds

12