Searched refs:newCount (Results 1 - 25 of 65) sorted by relevance

123

/external/qemu/android/utils/
H A Dvector.c5 _avector_ensure( void** items, size_t itemSize, unsigned* pMaxItems, unsigned newCount )
9 if (newCount > oldMax) {
14 AASSERT_FAIL("trying to reallocate array of 0-size items (count=%d)\n", newCount);
17 if (newCount > bigMax) {
19 itemSize, newCount, bigMax);
22 while (newMax < newCount) {
H A Dvector.h64 #define AVECTOR_ENSURE(obj,name,newCount) \
66 unsigned _newCount = (newCount); \
74 unsigned* pMaxItems, unsigned newCount );
/external/chromium_org/third_party/skia/tests/
H A DTDStackNesterTest.cpp38 const int newCount = nester->count(); local
39 REPORTER_ASSERT(reporter, newCount == count - 1);
42 REPORTER_ASSERT(reporter, newCount == value);
/external/skia/tests/
H A DTDStackNesterTest.cpp38 const int newCount = nester->count(); local
39 REPORTER_ASSERT(reporter, newCount == count - 1);
42 REPORTER_ASSERT(reporter, newCount == value);
/external/chromium_org/third_party/skia/include/core/
H A DSkTArray.h156 int newCount = fCount - 1;
157 fCount = newCount;
159 if (n != newCount) {
160 SkTArrayExt::copy(this, n, newCount);
161 fItemArray[newCount].~T();
263 void resize_back(int newCount) { argument
264 SkASSERT(newCount >= 0);
266 if (newCount > fCount) {
267 this->push_back_n(newCount - fCount);
268 } else if (newCount < fCoun
417 int newCount = fCount + delta; local
[all...]
H A DSkTDArray.h227 int newCount = fCount - 1;
228 fCount = newCount;
229 if (index != newCount) {
230 memcpy(fArray + index, fArray + newCount, sizeof(T));
/external/skia/include/core/
H A DSkTArray.h156 int newCount = fCount - 1;
157 fCount = newCount;
159 if (n != newCount) {
160 SkTArrayExt::copy(this, n, newCount);
161 fItemArray[newCount].~T();
263 void resize_back(int newCount) { argument
264 SkASSERT(newCount >= 0);
266 if (newCount > fCount) {
267 this->push_back_n(newCount - fCount);
268 } else if (newCount < fCoun
417 int newCount = fCount + delta; local
[all...]
H A DSkTDArray.h227 int newCount = fCount - 1;
228 fCount = newCount;
229 if (index != newCount) {
230 memcpy(fArray + index, fArray + newCount, sizeof(T));
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DCSSImageGeneratorValue.h41 SizeAndCount(IntSize newSize = IntSize(), int newCount = 0)
43 , count(newCount)
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DTreeMultiset.java231 public boolean setCount(E element, int oldCount, int newCount) { argument
234 return mutate(element, new ConditionalSetCountModifier(oldCount, newCount))
454 abstract int newCount(int oldCount); method in class:TreeMultiset.MultisetModifier
460 int newCount = newCount(oldCount);
461 if (oldCount == newCount) {
463 } else if (newCount == 0) {
466 return BstModificationResult.rebalancingChange(null, new Node<E>(key, newCount));
469 new Node<E>(originalEntry.getKey(), newCount));
483 int newCount(in method in class:TreeMultiset.AddModifier
498 int newCount(int oldCount) { method in class:TreeMultiset.RemoveModifier
512 int newCount(int oldCount) { method in class:TreeMultiset.SetCountModifier
528 int newCount(int oldCount) { method in class:TreeMultiset.ConditionalSetCountModifier
[all...]
/external/deqp/framework/delibs/depool/
H A 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/chromium_org/third_party/skia/src/gpu/gl/
H A DGrGLVertexArray.h56 void resize(int newCount) { argument
57 fAttribArrayStates.resize_back(newCount);
58 for (int i = 0; i < newCount; ++i) {
/external/skia/src/gpu/gl/
H A DGrGLVertexArray.h56 void resize(int newCount) { argument
57 fAttribArrayStates.resize_back(newCount);
58 for (int i = 0; i < newCount; ++i) {
/external/guava/guava/src/com/google/common/collect/
H A DForwardingMultiset.java99 public boolean setCount(E element, int oldCount, int newCount) { argument
100 return delegate().setCount(element, oldCount, newCount);
230 E element, int oldCount, int newCount) {
231 return Multisets.setCountImpl(this, element, oldCount, newCount);
229 standardSetCount( E element, int oldCount, int newCount) argument
H A DTreeMultiset.java235 public boolean setCount(E element, int oldCount, int newCount) { argument
238 return mutate(element, new ConditionalSetCountModifier(oldCount, newCount))
458 abstract int newCount(int oldCount); method in class:TreeMultiset.MultisetModifier
464 int newCount = newCount(oldCount);
465 if (oldCount == newCount) {
467 } else if (newCount == 0) {
470 return BstModificationResult.rebalancingChange(null, new Node<E>(key, newCount));
473 new Node<E>(originalEntry.getKey(), newCount));
487 int newCount(in method in class:TreeMultiset.AddModifier
502 int newCount(int oldCount) { method in class:TreeMultiset.RemoveModifier
516 int newCount(int oldCount) { method in class:TreeMultiset.SetCountModifier
532 int newCount(int oldCount) { method in class:TreeMultiset.ConditionalSetCountModifier
[all...]
H A DConcurrentHashMultiset.java392 * Sets the number of occurrences of {@code element} to {@code newCount}, but only if
398 * {@code expectedOldCount == newCount}, the method will return {@code true} if
400 * @throws IllegalArgumentException if {@code expectedOldCount} or {@code newCount} is negative
402 @Override public boolean setCount(E element, int expectedOldCount, int newCount) { argument
404 checkNonnegative(newCount, "newCount");
410 } else if (newCount == 0) {
414 return countMap.putIfAbsent(element, new AtomicInteger(newCount)) == null;
420 if (newCount == 0) {
425 AtomicInteger newCounter = new AtomicInteger(newCount);
[all...]
H A DMultiset.java166 * @param newCount the desired count of the element in this multiset
169 * {@code oldCount == newCount}.
170 * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is
174 * oldCount} and {@code newCount} are both zero, the implementor may
177 boolean setCount(E element, int oldCount, int newCount); argument
H A DAbstractMultiset.java104 public boolean setCount(E element, int oldCount, int newCount) { argument
105 return setCountImpl(this, element, oldCount, newCount);
/external/webrtc/src/system_wrappers/source/
H A Dtrace_impl.h104 const WebRtc_UWord32 newCount) const;
109 const WebRtc_UWord32 newCount) const;
/external/javassist/src/main/javassist/bytecode/
H A DByteStream.java185 int newCount = count + delta;
186 if (newCount > buf.length) {
188 byte[] newBuf = new byte[newLen > newCount ? newLen : newCount];
/external/chromium_org/third_party/skia/src/animator/
H A DSkAnimateActive.cpp60 int newCount = animates.count(); local
62 int total = oldCount + newCount;
66 memset(&fInterpolators.begin()[oldCount], 0, newCount * sizeof(SkOperandInterpolator*));
71 newCount);
75 for (index = 0; index < newCount; index++) {
110 // total = oldCount + newCount;
118 int newCount = fAnimators.count(); local
122 int newTotal = records * newCount;
126 newTotal -= newCount;
131 sizeof(fSaveRestore[0]) * (newCount
[all...]
/external/skia/src/animator/
H A DSkAnimateActive.cpp60 int newCount = animates.count(); local
62 int total = oldCount + newCount;
66 memset(&fInterpolators.begin()[oldCount], 0, newCount * sizeof(SkOperandInterpolator*));
71 newCount);
75 for (index = 0; index < newCount; index++) {
110 // total = oldCount + newCount;
118 int newCount = fAnimators.count(); local
122 int newTotal = records * newCount;
126 newTotal -= newCount;
131 sizeof(fSaveRestore[0]) * (newCount
[all...]
/external/pdfium/core/src/fxge/win32/
H A Dfx_win32_dwrite.cpp302 ULONG newCount = InterlockedDecrement((long*)(&refCount_)); local
303 if (newCount == 0) {
306 return newCount;
361 ULONG newCount = InterlockedDecrement((long*)(&refCount_)); local
362 if (newCount == 0) {
366 return newCount;
/external/srec/portable/src/
H A Dpmemory_ext.c359 void PortMemGetCount(int *newCount, int *deleteCount) argument
361 *newCount = portNewCount;
/external/chromium_org/third_party/skia/src/utils/win/
H A DSkDWriteFontFileStream.cpp164 ULONG newCount = InterlockedDecrement(&fRefCount); local
165 if (0 == newCount) {
168 return newCount;

Completed in 470 milliseconds

123