Home
last modified time | relevance | path

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

123

/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.h64 #define AVECTOR_ENSURE(obj,name,newCount) \ argument
66 unsigned _newCount = (newCount); \
74 unsigned* pMaxItems, unsigned newCount );
/external/chromium_org/third_party/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 …]
/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 …]
/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.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 …]
/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 …]
/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/chromium_org/third_party/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/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.h56 void resize(int newCount) { in resize() argument
57 fAttribArrayStates.resize_back(newCount); in resize()
58 for (int i = 0; i < newCount; ++i) { in resize()
/external/chromium_org/third_party/skia/src/gpu/gl/
DGrGLVertexArray.h56 void resize(int newCount) { in resize() argument
57 fAttribArrayStates.resize_back(newCount); in resize()
58 for (int i = 0; i < newCount; ++i) { in resize()
/external/chromium_org/third_party/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/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/chromium_org/third_party/WebKit/Source/core/css/
DCSSImageGeneratorValue.h41 SizeAndCount(IntSize newSize = IntSize(), int newCount = 0)
43 , count(newCount) in size()
/external/pdfium/core/src/fxge/win32/
Dfx_win32_dwrite.cpp302 ULONG newCount = InterlockedDecrement((long*)(&refCount_)); in Release() local
303 if (newCount == 0) { in Release()
306 return newCount; in Release()
361 ULONG newCount = InterlockedDecrement((long*)(&refCount_)); in Release() local
362 if (newCount == 0) { in Release()
366 return newCount; in Release()
/external/chromium_org/third_party/skia/src/ports/
DSkFontMgr_win_dw.cpp70 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
71 if (0 == newCount) { in Release()
74 return newCount; in Release()
146 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
147 if (0 == newCount) { in Release()
150 return newCount; in Release()
233 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
234 if (0 == newCount) { in Release()
237 return newCount; in Release()
/external/skia/src/ports/
DSkFontMgr_win_dw.cpp70 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
71 if (0 == newCount) { in Release()
74 return newCount; in Release()
146 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
147 if (0 == newCount) { in Release()
150 return newCount; in Release()
233 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
234 if (0 == newCount) { in Release()
237 return newCount; in Release()
/external/chromium_org/third_party/skia/src/utils/win/
DSkDWriteFontFileStream.cpp164 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
165 if (0 == newCount) { in Release()
168 return newCount; in Release()
/external/skia/src/utils/win/
DSkDWriteFontFileStream.cpp164 ULONG newCount = InterlockedDecrement(&fRefCount); in Release() local
165 if (0 == newCount) { in Release()
168 return newCount; in Release()
/external/webrtc/src/system_wrappers/source/
Dtrace_impl.h104 const WebRtc_UWord32 newCount) const;
109 const WebRtc_UWord32 newCount) const;
/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 …]

123