Home
last modified time | relevance | path

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

12

/external/skia/include/core/
DSkTArray.h156 int newCount = fCount - 1; in removeShuffle() local
157 fCount = newCount; in removeShuffle()
159 if (n != newCount) { in removeShuffle()
160 SkTArrayExt::copy(this, n, newCount); in removeShuffle()
161 fItemArray[newCount].~T(); in removeShuffle()
263 void resize_back(int newCount) { in resize_back() argument
264 SkASSERT(newCount >= 0); in resize_back()
266 if (newCount > fCount) { in resize_back()
267 this->push_back_n(newCount - fCount); in resize_back()
268 } else if (newCount < fCount) { in resize_back()
[all …]
DSkTDArray.h208 int newCount = fCount - 1; in removeShuffle() local
209 fCount = newCount; in removeShuffle()
210 if (index != newCount) { in removeShuffle()
211 memcpy(fArray + index, fArray + newCount, sizeof(T)); in removeShuffle()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DDiffer.java143 int newCount = aCount-aTop; in flush() local
144 System.arraycopy(a, aTop, a, 0, newCount); in flush()
145 aCount = newCount; in flush()
151 int newCount = bCount-bTop; in flush() local
152 System.arraycopy(b, bTop, b, 0, newCount); in flush()
153 bCount = newCount; in flush()
/external/deqp/framework/delibs/depool/
DdePoolMultiSet.h74 deBool TYPENAME##_setKeyCount (TYPENAME* set, KEYTYPE key, int newCount); \
147 deBool TYPENAME##_setKeyCount (TYPENAME* set, KEYTYPE key, int newCount) \
153 DE_ASSERT(newCount >= 0); \
154 set->numElements += (newCount - oldCount); \
156 if (newCount == 0 && countPtr) \
158 else if (newCount > 0 && countPtr) \
159 *countPtr = newCount; \
160 else if (newCount > 0) \
161 return TYPENAME##Hash_insert(set->hash, key, newCount); \
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultiset.java308 public boolean setCount(@Nullable E element, int oldCount, int newCount) { in setCount() argument
309 checkNonnegative(newCount, "newCount"); in setCount()
316 if (newCount > 0) { in setCount()
317 add(element, newCount); in setCount()
325 AvlNode<E> newRoot = root.setCount(comparator(), element, oldCount, newCount, result); in setCount()
717 int newCount,
724 if (expectedCount == 0 && newCount > 0) {
725 return addLeftChild(e, newCount);
730 left = initLeft.setCount(comparator, e, expectedCount, newCount, result);
733 if (newCount == 0 && result[0] != 0) {
[all …]
DAbstractMapBasedMultiset.java224 long newCount = (long) oldCount + (long) occurrences;
225 checkArgument(newCount <= Integer.MAX_VALUE,
226 "too many occurrences: %s", newCount);
/external/guava/guava/src/com/google/common/collect/
DTreeMultiset.java312 public boolean setCount(@Nullable E element, int oldCount, int newCount) { in setCount() argument
313 checkNonnegative(newCount, "newCount"); in setCount()
320 if (newCount > 0) { in setCount()
321 add(element, newCount); in setCount()
329 AvlNode<E> newRoot = root.setCount(comparator(), element, oldCount, newCount, result); in setCount()
721 int newCount,
728 if (expectedCount == 0 && newCount > 0) {
729 return addLeftChild(e, newCount);
734 left = initLeft.setCount(comparator, e, expectedCount, newCount, result);
737 if (newCount == 0 && result[0] != 0) {
[all …]
DConcurrentHashMultiset.java404 @Override public boolean setCount(E element, int expectedOldCount, int newCount) { in setCount() argument
407 checkNonnegative(newCount, "newCount"); in setCount()
413 } else if (newCount == 0) { in setCount()
417 return countMap.putIfAbsent(element, new AtomicInteger(newCount)) == null; in setCount()
423 if (newCount == 0) { in setCount()
428 AtomicInteger newCounter = new AtomicInteger(newCount); in setCount()
433 if (existingCounter.compareAndSet(oldValue, newCount)) { in setCount()
434 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()
225 protected boolean standardSetCount(E element, int oldCount, int newCount) { in standardSetCount() argument
226 return Multisets.setCountImpl(this, element, oldCount, newCount); in standardSetCount()
DMapMakerInternalMap.java2502 int newCount = this.count + 1; in put() local
2503 if (newCount > this.threshold) { // ensure capacity in put()
2505 newCount = this.count + 1; in put()
2527 newCount = this.count; // count remains unchanged in put()
2529 newCount = this.count + 1; in put()
2531 this.count = newCount; // write-volatile in put()
2555 newCount = this.count + 1; in put()
2557 this.count = newCount; // write-volatile in put()
2586 int newCount = count; in expand() local
2627 newCount--; in expand()
[all …]
DAbstractMapBasedMultiset.java227 long newCount = (long) oldCount + (long) occurrences;
228 checkArgument(newCount <= Integer.MAX_VALUE,
229 "too many occurrences: %s", newCount);
DAbstractMultiset.java104 public boolean setCount(@Nullable E element, int oldCount, int newCount) { in setCount() argument
105 return setCountImpl(this, element, oldCount, newCount); in setCount()
/external/skia/tests/
DTDStackNesterTest.cpp38 const int newCount = nester->count(); in test_pop() local
39 REPORTER_ASSERT(reporter, newCount == count - 1); in test_pop()
42 REPORTER_ASSERT(reporter, newCount == value); in test_pop()
/external/skia/src/ports/
DSkFontMgr_win_dw.cpp76 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
77 if (0 == newCount) { in Release()
80 return newCount; in Release()
152 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
153 if (0 == newCount) { in Release()
156 return newCount; in Release()
239 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
240 if (0 == newCount) { in Release()
243 return newCount; in Release()
603 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
[all …]
/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/gpu/gl/
DGrGLVertexArray.h58 void resize(int newCount) { in resize() argument
59 fAttribArrayStates.resize_back(newCount); in resize()
60 for (int i = 0; i < newCount; ++i) { in resize()
/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/pdfium/core/src/fxge/win32/
Dfx_win32_dwrite.cpp298 ULONG newCount = InterlockedDecrement((long*)(&refCount_)); in Release() local
299 if (newCount == 0) { in Release()
302 return newCount; in Release()
357 ULONG newCount = InterlockedDecrement((long*)(&refCount_)); in Release() local
358 if (newCount == 0) { in Release()
362 return newCount; in Release()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DConcurrentHashMultisetBenchmark.java394 @Override public boolean setCount(E element, int oldCount, int newCount) {
396 checkNonnegative(newCount, "newCount");
397 if (newCount == 0) {
406 return countMap.putIfAbsent(element, newCount) == null;
408 return countMap.replace(element, oldCount, newCount);
/external/skia/src/utils/win/
DSkDWriteFontFileStream.cpp166 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
167 if (0 == newCount) { in Release()
170 return newCount; in Release()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java2222 int newCount = this.count - 1; in lockedGetOrLoad() local
2252 this.count = newCount; // write-volatile in lockedGetOrLoad()
2827 int newCount = this.count + 1; in put() local
2828 if (newCount > this.threshold) { // ensure capacity in put()
2830 newCount = this.count + 1; in put()
2852 newCount = this.count; // count remains unchanged in put()
2855 newCount = this.count + 1; in put()
2857 this.count = newCount; // write-volatile in put()
2882 newCount = this.count + 1; in put()
2883 this.count = newCount; // write-volatile in put()
[all …]
/external/webrtc/src/system_wrappers/source/
Dtrace_impl.h104 const WebRtc_UWord32 newCount) const;
109 const WebRtc_UWord32 newCount) const;
Dtrace_impl.cc666 const WebRtc_UWord32 newCount) const in UpdateFileName()
701 static_cast<long unsigned int> (newCount), in UpdateFileName()
709 const WebRtc_UWord32 newCount) const in CreateFileName()
734 static_cast<long unsigned int> (newCount), in CreateFileName()
/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/deqp/framework/delibs/decpp/
DdeSharedPtr.hpp485 deInt32 oldCount, newCount; in acquireFromWeak() local
493 newCount = oldCount+1; in acquireFromWeak()
494 …eUint32 volatile*)&state->strongRefCount, (deUint32)oldCount, (deUint32)newCount) != (deUint32)old… in acquireFromWeak()

12