Searched refs:newCount (Results 1 - 25 of 41) sorted by relevance

12

/external/qemu/android/utils/
H A Dvector.c5 _avector_ensure( void** items, size_t itemSize, unsigned* pMaxItems, unsigned newCount )
9 if (newCount > oldMax) {
14 AASSERT_FAIL("trying to reallocate array of 0-size items (count=%d)\n", newCount);
17 if (newCount > bigMax) {
19 itemSize, newCount, bigMax);
22 while (newMax < newCount) {
H A Dvector.h61 #define AVECTOR_ENSURE(obj,name,newCount) \
63 unsigned _newCount = (newCount); \
71 unsigned* pMaxItems, unsigned 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...]
H A DSkTDArray.h200 unsigned newCount = fCount - 1;
201 fCount = newCount;
202 if (index != newCount) {
203 memcpy(fArray + index, fArray + newCount, sizeof(T));
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
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 DAbstractMapBasedMultiset.java237 long newCount = (long) oldCount + (long) occurrences;
238 checkArgument(newCount <= Integer.MAX_VALUE,
239 "too many occurrences: %s", newCount);
/external/guava/guava/src/com/google/common/collect/
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 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 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 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 DAbstractMultiset.java104 public boolean setCount(E element, int oldCount, int newCount) { argument
105 return setCountImpl(this, element, oldCount, newCount);
H A DAbstractMapBasedMultiset.java240 long newCount = (long) oldCount + (long) occurrences;
241 checkArgument(newCount <= Integer.MAX_VALUE,
242 "too many occurrences: %s", newCount);
H A DMapMakerInternalMap.java2537 int newCount = this.count + 1;
2538 if (newCount > this.threshold) { // ensure capacity
2540 newCount = this.count + 1;
2562 newCount = this.count; // count remains unchanged
2564 newCount = this.count + 1;
2566 this.count = newCount; // write-volatile
2590 newCount = this.count + 1;
2592 this.count = newCount; // write-volatile
2621 int newCount = count;
2657 newCount
[all...]
H A DConstraints.java363 @Override public boolean setCount(E element, int oldCount, int newCount) { argument
365 return delegate.setCount(element, oldCount, newCount);
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
/external/webrtc/src/system_wrappers/source/
H A Dtrace_impl.h103 const WebRtc_UWord32 newCount) const;
108 const WebRtc_UWord32 newCount) const;
H A Dtrace_impl.cc668 const WebRtc_UWord32 newCount) const
703 static_cast<long unsigned int> (newCount),
711 const WebRtc_UWord32 newCount) const
736 static_cast<long unsigned int> (newCount),
/external/javassist/src/main/javassist/bytecode/
H A DByteStream.java185 int newCount = count + delta;
186 if (newCount > buf.length) {
188 byte[] newBuf = new byte[newLen > newCount ? newLen : 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...]
/external/srec/portable/src/
H A Dpmemory_ext.c359 void PortMemGetCount(int *newCount, int *deleteCount) argument
361 *newCount = portNewCount;
/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/src/com/google/common/cache/
H A DLocalCache.java2255 int newCount = this.count - 1;
2285 this.count = newCount; // write-volatile
2857 int newCount = this.count + 1;
2858 if (newCount > this.threshold) { // ensure capacity
2860 newCount = this.count + 1;
2882 newCount = this.count; // count remains unchanged
2885 newCount = this.count + 1;
2887 this.count = newCount; // write-volatile
2912 newCount = this.count + 1;
2913 this.count = newCount; // writ
[all...]
/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/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/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++) {

Completed in 885 milliseconds

12