/external/skia/include/core/ |
D | SkTArray.h | 156 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 …]
|
D | SkTDArray.h | 208 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/ |
D | Differ.java | 143 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/ |
D | dePoolMultiSet.h | 74 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/ |
D | TreeMultiset.java | 308 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 …]
|
D | AbstractMapBasedMultiset.java | 224 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/ |
D | TreeMultiset.java | 312 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 …]
|
D | ConcurrentHashMultiset.java | 404 @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()
|
D | ForwardingMultiset.java | 99 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()
|
D | MapMakerInternalMap.java | 2502 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 …]
|
D | AbstractMapBasedMultiset.java | 227 long newCount = (long) oldCount + (long) occurrences; 228 checkArgument(newCount <= Integer.MAX_VALUE, 229 "too many occurrences: %s", newCount);
|
D | AbstractMultiset.java | 104 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/ |
D | TDStackNesterTest.cpp | 38 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/ |
D | SkFontMgr_win_dw.cpp | 76 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/ |
D | ByteStream.java | 185 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/ |
D | GrGLVertexArray.h | 58 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/ |
D | SkAnimateActive.cpp | 60 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/ |
D | fx_win32_dwrite.cpp | 298 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/ |
D | ConcurrentHashMultisetBenchmark.java | 394 @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/ |
D | SkDWriteFontFileStream.cpp | 166 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/ |
D | LocalCache.java | 2222 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/ |
D | trace_impl.h | 104 const WebRtc_UWord32 newCount) const; 109 const WebRtc_UWord32 newCount) const;
|
D | trace_impl.cc | 666 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/ |
D | ForwardingMultisetTest.java | 111 @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/ |
D | deSharedPtr.hpp | 485 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()
|