Home
last modified time | relevance | path

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

123

/external/protobuf/objectivec/
DGPBArray.m220 //% NSUInteger newCount = initialCount + count;
221 //%MAYBE_GROW_TO_SET_COUNT(newCount)
231 //% NSUInteger newCount = initialCount + 1;
232 //%MAYBE_GROW_TO_SET_COUNT(newCount)
268 //% NSUInteger newCount = _count - 1;
269 //% if (index != newCount) {
270 //% memmove(&_values[index], &_values[index + 1], (newCount - index) * sizeof(TYPE));
272 //%SET_COUNT_AND_MAYBE_SHRINK(newCount)
449 NSUInteger newCount = initialCount + count;
450 if (newCount > _capacity) {
[all …]
/external/skia/include/private/
DSkTArray.h156 int newCount = fCount - 1; in removeShuffle() local
157 fCount = newCount; in removeShuffle()
159 if (n != newCount) { in removeShuffle()
160 this->move(n, newCount); in removeShuffle()
289 void resize_back(int newCount) { in resize_back() argument
290 SkASSERT(newCount >= 0); in resize_back()
292 if (newCount > fCount) { in resize_back()
293 this->push_back_n(newCount - fCount); in resize_back()
294 } else if (newCount < fCount) { in resize_back()
295 this->pop_back_n(fCount - newCount); in resize_back()
[all …]
/external/skqp/include/private/
DSkTArray.h156 int newCount = fCount - 1; in removeShuffle() local
157 fCount = newCount; in removeShuffle()
159 if (n != newCount) { in removeShuffle()
160 this->move(n, newCount); in removeShuffle()
289 void resize_back(int newCount) { in resize_back() argument
290 SkASSERT(newCount >= 0); in resize_back()
292 if (newCount > fCount) { in resize_back()
293 this->push_back_n(newCount - fCount); in resize_back()
294 } else if (newCount < fCount) { in resize_back()
295 this->pop_back_n(fCount - newCount); 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/demos/src/com/ibm/icu/dev/demo/translit/
DIntDiffer.java128 int newCount = aCount-aTop; in flush() local
129 System.arraycopy(a, aTop, a, 0, newCount); in flush()
130 aCount = newCount; in flush()
135 int newCount = bCount-bTop; in flush() local
136 System.arraycopy(b, bTop, b, 0, newCount); in flush()
137 bCount = newCount; in flush()
/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/cldr/tools/java/org/unicode/cldr/util/
DDiffer.java146 int newCount = aCount - aTop; in flush() local
147 System.arraycopy(a, aTop, a, 0, newCount); in flush()
148 aCount = newCount; in flush()
154 int newCount = bCount - bTop; in flush() local
155 System.arraycopy(b, bTop, b, 0, newCount); in flush()
156 bCount = newCount; in flush()
/external/deqp/framework/delibs/depool/
DdePoolMultiSet.h74 deBool TYPENAME##_setKeyCount (DE_PTR_TYPE(TYPENAME) set, KEYTYPE key, int newCount); \
147 deBool TYPENAME##_setKeyCount (DE_PTR_TYPE(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/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 …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DCLDRCompare.java78 int newCount = 0; in main() local
91 ++newCount; in main()
109 … printLine(subDir, file, sameCount, newCount, deletedCount, diffValueCount, diffBothCount, in main()
115 …private static void printLine(String subDir, String file, Object sameCount, Object newCount, Objec… in printLine() argument
117 …System.out.println(subDir + "\t" + file + "\t" + sameCount + "\t" + newCount + "\t" + deletedCount… in printLine()
/external/skqp/src/ports/
DSkFontMgr_win_dw.cpp83 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
84 if (0 == newCount) { in Release()
87 return newCount; in Release()
159 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
160 if (0 == newCount) { in Release()
163 return newCount; in Release()
246 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
247 if (0 == newCount) { in Release()
250 return newCount; in Release()
616 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
[all …]
/external/skia/src/ports/
DSkFontMgr_win_dw.cpp83 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
84 if (0 == newCount) { in Release()
87 return newCount; in Release()
159 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
160 if (0 == newCount) { in Release()
163 return newCount; in Release()
246 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
247 if (0 == newCount) { in Release()
250 return newCount; in Release()
616 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
[all …]
/external/guice/core/src/com/google/inject/internal/
DInternalContext.java78 int newCount = --enterCount; in close() local
79 if (newCount < 0) { in close()
82 if (newCount == 0) { in close()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestReferenceStringSearch.java106 int newCount = checkNew("lazy", bigText, newPos, newTimer, icuTimer); in checkAgainstStringSearch() local
110 int diff = findDifference(icuPos, newPos, oldCount, newCount); in checkAgainstStringSearch()
522 int newCount) { in findDifference() argument
523 int count = Math.min(oldCount, newCount); in findDifference()
529 if (oldCount != newCount) { in findDifference()
/external/pdfium/core/fxge/win32/
Dfx_win32_dwrite.cpp301 ULONG newCount = InterlockedDecrement((long*)(&refCount_)); in Release() local
302 if (newCount == 0) { in Release()
305 return newCount; in Release()
356 ULONG newCount = InterlockedDecrement((long*)(&refCount_)); in Release() local
357 if (newCount == 0) { in Release()
361 return newCount; in Release()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java2224 int newCount = this.count - 1; in lockedGetOrLoad() local
2254 this.count = newCount; // write-volatile in lockedGetOrLoad()
2830 int newCount = this.count + 1; in put() local
2831 if (newCount > this.threshold) { // ensure capacity in put()
2833 newCount = this.count + 1; in put()
2855 newCount = this.count; // count remains unchanged in put()
2858 newCount = this.count + 1; in put()
2860 this.count = newCount; // write-volatile in put()
2885 newCount = this.count + 1; in put()
2886 this.count = newCount; // write-volatile in put()
[all …]
/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/gpu/gl/
DGrGLVertexArray.h30 void resize(int newCount) { in resize() argument
31 fAttribArrayStates.resize_back(newCount); in resize()
/external/skqp/src/gpu/gl/
DGrGLVertexArray.h30 void resize(int newCount) { in resize() argument
31 fAttribArrayStates.resize_back(newCount); in resize()
/external/skqp/src/utils/win/
DSkDWriteFontFileStream.cpp168 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
169 if (0 == newCount) { in Release()
172 return newCount; in Release()
/external/skia/src/utils/win/
DSkDWriteFontFileStream.cpp168 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
169 if (0 == newCount) { in Release()
172 return newCount; in Release()

123