/external/qemu/android/utils/ |
H A D | vector.c | 5 _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 D | vector.h | 61 #define AVECTOR_ENSURE(obj,name,newCount) \ 63 unsigned _newCount = (newCount); \ 71 unsigned* pMaxItems, unsigned newCount );
|
/external/skia/include/core/ |
H A D | SkTArray.h | 216 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 D | SkTDArray.h | 200 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 D | TreeMultiset.java | 231 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 D | AbstractMapBasedMultiset.java | 237 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 D | ForwardingMultiset.java | 99 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 D | TreeMultiset.java | 235 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 D | ConcurrentHashMultiset.java | 392 * 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 D | Multiset.java | 166 * @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 D | AbstractMultiset.java | 104 public boolean setCount(E element, int oldCount, int newCount) { argument 105 return setCountImpl(this, element, oldCount, newCount);
|
H A D | AbstractMapBasedMultiset.java | 240 long newCount = (long) oldCount + (long) occurrences; 241 checkArgument(newCount <= Integer.MAX_VALUE, 242 "too many occurrences: %s", newCount);
|
H A D | MapMakerInternalMap.java | 2537 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 D | Constraints.java | 363 @Override public boolean setCount(E element, int oldCount, int newCount) { argument 365 return delegate.setCount(element, oldCount, newCount);
|
H A D | Multisets.java | 172 @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 D | trace_impl.h | 103 const WebRtc_UWord32 newCount) const; 108 const WebRtc_UWord32 newCount) const;
|
H A D | trace_impl.cc | 668 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 D | ByteStream.java | 185 int newCount = count + delta; 186 if (newCount > buf.length) { 188 byte[] newBuf = new byte[newLen > newCount ? newLen : newCount];
|
/external/skia/src/animator/ |
H A D | SkAnimateActive.cpp | 60 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 D | pmemory_ext.c | 359 void PortMemGetCount(int *newCount, int *deleteCount) argument 361 *newCount = portNewCount;
|
/external/webkit/Source/WebCore/rendering/ |
H A D | CounterNode.cpp | 184 int newCount = node->computeCountInParent(); local 185 if (oldCount == newCount) 187 node->m_countInParent = newCount;
|
/external/guava/guava/src/com/google/common/cache/ |
H A D | LocalCache.java | 2255 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 D | ForwardingMultisetTest.java | 111 @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 D | runtime.c | 461 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 D | WebHistory.cpp | 507 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++) {
|