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

12

/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...]
H A DMultisets.java172 @Override public boolean setCount(E element, int oldCount, int newCount) { argument
429 public boolean setCount(E element, int oldCount, int newCount) { argument
430 return setCountImpl(this, element, oldCount, newCount);
791 Multiset<E> self, E element, int oldCount, int newCount) {
793 checkNonnegative(newCount, "newCount");
796 self.setCount(element, newCount);
790 setCountImpl( Multiset<E> self, E element, int oldCount, int newCount) argument
H A DSynchronized.java456 public boolean setCount(E element, int oldCount, int newCount) { argument
458 return delegate().setCount(element, oldCount, newCount);
/external/webkit/Source/WebCore/rendering/
H A DCounterNode.cpp184 int newCount = node->computeCountInParent(); local
185 if (oldCount == newCount)
187 node->m_countInParent = 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.h216 void resize_back(int newCount) { argument
217 SkASSERT(newCount >= 0);
219 if (newCount > fCount) {
220 push_back_n(newCount - fCount);
221 } else if (newCount < fCount) {
222 pop_back_n(fCount - newCount);
331 int newCount = fCount + delta; local
334 if (newCount > fAllocCount) {
335 newAllocCount = SkMax32(newCount + ((newCount
[all...]
/external/srec/portable/src/
H A Dpmemory_ext.c359 void PortMemGetCount(int *newCount, int *deleteCount) argument
361 *newCount = portNewCount;
/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...]
H A DSynchronized.java443 public boolean setCount(E element, int oldCount, int newCount) { argument
445 return delegate().setCount(element, oldCount, newCount);
/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...]
H A DSkDisplayApply.cpp101 int newCount = fActive->fAnimators.count(); local
102 for (int index = oldCount; index < newCount; index++)
/external/skia/src/gpu/
H A DGrTesselatedPathRenderer.cpp529 int newCount = computeEdgesAndIntersect(matrix, inverse, &btess.contourPoints()[i], count, &edges, 1.0f); local
531 for (int j = 0; j < newCount; j++) {
/external/webkit/Source/WebKit/win/
H A DWebHistory.cpp507 int newCount = CFArrayGetCount(entries); local
510 *count = newCount;
514 if (*count < newCount) {
515 *count = newCount;
519 *count = newCount;
520 for (int i = 0; i < newCount; i++) {
/external/webkit/Source/JavaScriptCore/parser/
H A DJSParser.cpp1977 int newCount = 0; local
1980 newCount++;
2015 if (newCount) {
2016 newCount--;
2048 while (newCount--)
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.team.core_3.5.100.R36x_v20100825-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.core.databinding.observable_1.3.0.I20100601-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 455 milliseconds

12