Home
last modified time | relevance | path

Searched refs:newCount (Results 1 – 25 of 35) sorted by relevance

12

/external/qemu/android/utils/
Dvector.c5 _avector_ensure( void** items, size_t itemSize, unsigned* pMaxItems, unsigned newCount ) in _avector_ensure() argument
9 if (newCount > oldMax) { in _avector_ensure()
14 AASSERT_FAIL("trying to reallocate array of 0-size items (count=%d)\n", newCount); in _avector_ensure()
17 if (newCount > bigMax) { in _avector_ensure()
19 itemSize, newCount, bigMax); in _avector_ensure()
22 while (newMax < newCount) { in _avector_ensure()
Dvector.h61 #define AVECTOR_ENSURE(obj,name,newCount) \ argument
63 unsigned _newCount = (newCount); \
71 unsigned* pMaxItems, unsigned newCount );
/external/skia/include/core/
DSkTArray.h216 void resize_back(int newCount) { in resize_back() argument
217 SkASSERT(newCount >= 0); in resize_back()
219 if (newCount > fCount) { in resize_back()
220 push_back_n(newCount - fCount); in resize_back()
221 } else if (newCount < fCount) { in resize_back()
222 pop_back_n(fCount - newCount); in resize_back()
331 int newCount = fCount + delta; in checkRealloc() local
334 if (newCount > fAllocCount) { in checkRealloc()
335 newAllocCount = SkMax32(newCount + ((newCount + 1) >> 1), in checkRealloc()
337 } else if (newCount < fAllocCount / 3) { in checkRealloc()
DSkTDArray.h200 unsigned newCount = fCount - 1; in removeShuffle() local
201 fCount = newCount; in removeShuffle()
202 if (index != newCount) { in removeShuffle()
203 memcpy(fArray + index, fArray + newCount, sizeof(T)); in removeShuffle()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultiset.java231 public boolean setCount(E element, int oldCount, int newCount) { in setCount() argument
234 return mutate(element, new ConditionalSetCountModifier(oldCount, newCount)) in setCount()
454 abstract int newCount(int oldCount); in newCount() method in MultisetModifier
460 int newCount = newCount(oldCount); in modify() local
461 if (oldCount == newCount) { in modify()
463 } else if (newCount == 0) { in modify()
466 return BstModificationResult.rebalancingChange(null, new Node<E>(key, newCount)); in modify()
469 new Node<E>(originalEntry.getKey(), newCount)); in modify()
483 int newCount(int oldCount) { in newCount() method in AddModifier
498 int newCount(int oldCount) { in newCount() method in RemoveModifier
[all …]
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/
DTreeMultiset.java235 public boolean setCount(E element, int oldCount, int newCount) { in setCount() argument
238 return mutate(element, new ConditionalSetCountModifier(oldCount, newCount)) in setCount()
458 abstract int newCount(int oldCount); in newCount() method in MultisetModifier
464 int newCount = newCount(oldCount); in modify() local
465 if (oldCount == newCount) { in modify()
467 } else if (newCount == 0) { in modify()
470 return BstModificationResult.rebalancingChange(null, new Node<E>(key, newCount)); in modify()
473 new Node<E>(originalEntry.getKey(), newCount)); in modify()
487 int newCount(int oldCount) { in newCount() method in AddModifier
502 int newCount(int oldCount) { in newCount() method in RemoveModifier
[all …]
DConcurrentHashMultiset.java402 @Override public boolean setCount(E element, int expectedOldCount, int newCount) { in setCount() argument
404 checkNonnegative(newCount, "newCount"); in setCount()
410 } else if (newCount == 0) { in setCount()
414 return countMap.putIfAbsent(element, new AtomicInteger(newCount)) == null; in setCount()
420 if (newCount == 0) { in setCount()
425 AtomicInteger newCounter = new AtomicInteger(newCount); in setCount()
430 if (existingCounter.compareAndSet(oldValue, newCount)) { in setCount()
431 if (newCount == 0) { in setCount()
DForwardingMultiset.java99 public boolean setCount(E element, int oldCount, int newCount) { in setCount() argument
100 return delegate().setCount(element, oldCount, newCount); in setCount()
230 E element, int oldCount, int newCount) { in standardSetCount() argument
231 return Multisets.setCountImpl(this, element, oldCount, newCount); in standardSetCount()
DMapMakerInternalMap.java2537 int newCount = this.count + 1; in put() local
2538 if (newCount > this.threshold) { // ensure capacity in put()
2540 newCount = this.count + 1; in put()
2562 newCount = this.count; // count remains unchanged in put()
2564 newCount = this.count + 1; in put()
2566 this.count = newCount; // write-volatile in put()
2590 newCount = this.count + 1; in put()
2592 this.count = newCount; // write-volatile in put()
2621 int newCount = count; in expand() local
2657 newCount--; in expand()
[all …]
DAbstractMultiset.java104 public boolean setCount(E element, int oldCount, int newCount) { in setCount() argument
105 return setCountImpl(this, element, oldCount, newCount); in setCount()
DAbstractMapBasedMultiset.java240 long newCount = (long) oldCount + (long) occurrences;
241 checkArgument(newCount <= Integer.MAX_VALUE,
242 "too many occurrences: %s", newCount);
DMultisets.java172 @Override public boolean setCount(E element, int oldCount, int newCount) { in setCount() argument
429 public boolean setCount(E element, int oldCount, int newCount) { in setCount() argument
430 return setCountImpl(this, element, oldCount, newCount); in setCount()
791 Multiset<E> self, E element, int oldCount, int newCount) {
793 checkNonnegative(newCount, "newCount");
796 self.setCount(element, newCount);
DMultiset.java177 boolean setCount(E element, int oldCount, int newCount); in setCount() argument
DConstraints.java363 @Override public boolean setCount(E element, int oldCount, int newCount) { in setCount() argument
365 return delegate.setCount(element, oldCount, newCount); in setCount()
/external/javassist/src/main/javassist/bytecode/
DByteStream.java185 int newCount = count + delta; in enlarge() local
186 if (newCount > buf.length) { in enlarge()
188 byte[] newBuf = new byte[newLen > newCount ? newLen : newCount]; in enlarge()
/external/skia/src/animator/
DSkAnimateActive.cpp60 int newCount = animates.count(); in append() local
62 int total = oldCount + newCount; in append()
66 memset(&fInterpolators.begin()[oldCount], 0, newCount * sizeof(SkOperandInterpolator*)); in append()
71 newCount); in append()
75 for (index = 0; index < newCount; index++) { in append()
118 int newCount = fAnimators.count(); in appendSave() local
122 int newTotal = records * newCount; in appendSave()
126 newTotal -= newCount; in appendSave()
131 sizeof(fSaveRestore[0]) * (newCount - oldCount)); in appendSave()
135 sizeof(fSaveRestore[0]) * (newCount - oldCount)); in appendSave()
/external/webrtc/src/system_wrappers/source/
Dtrace_impl.h103 const WebRtc_UWord32 newCount) const;
108 const WebRtc_UWord32 newCount) const;
Dtrace_impl.cc668 const WebRtc_UWord32 newCount) const in UpdateFileName()
703 static_cast<long unsigned int> (newCount), in UpdateFileName()
711 const WebRtc_UWord32 newCount) const in CreateFileName()
736 static_cast<long unsigned int> (newCount), in CreateFileName()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java2255 int newCount = this.count - 1; in lockedGetOrLoad() local
2285 this.count = newCount; // write-volatile in lockedGetOrLoad()
2857 int newCount = this.count + 1; in put() local
2858 if (newCount > this.threshold) { // ensure capacity in put()
2860 newCount = this.count + 1; in put()
2882 newCount = this.count; // count remains unchanged in put()
2885 newCount = this.count + 1; in put()
2887 this.count = newCount; // write-volatile in put()
2912 newCount = this.count + 1; in put()
2913 this.count = newCount; // write-volatile in put()
[all …]
/external/webkit/Source/WebCore/rendering/
DCounterNode.cpp184 int newCount = node->computeCountInParent(); in recount() local
185 if (oldCount == newCount) in recount()
187 node->m_countInParent = newCount; in recount()
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingMultisetTest.java111 @Override public boolean setCount(T element, int oldCount, int newCount) { in setCount() argument
112 return standardSetCount(element, oldCount, newCount); in setCount()
233 String element, int oldCount, int newCount) { in suite()
/external/srec/portable/src/
Dpmemory_ext.c359 void PortMemGetCount(int *newCount, int *deleteCount) in PortMemGetCount() argument
361 *newCount = portNewCount; in PortMemGetCount()
/external/webkit/Source/WebKit/win/
DWebHistory.cpp507 int newCount = CFArrayGetCount(entries); in orderedItemsLastVisitedOnDay() local
510 *count = newCount; in orderedItemsLastVisitedOnDay()
514 if (*count < newCount) { in orderedItemsLastVisitedOnDay()
515 *count = newCount; in orderedItemsLastVisitedOnDay()
519 *count = newCount; in orderedItemsLastVisitedOnDay()
520 for (int i = 0; i < newCount; i++) { in orderedItemsLastVisitedOnDay()
/external/compiler-rt/BlocksRuntime/
Druntime.c461 int32_t newCount; in _Block_release() local
463 newCount = latching_decr_int(&aBlock->flags) & BLOCK_REFCOUNT_MASK; in _Block_release()
464 if (newCount > 0) return; in _Block_release()

12