/external/qemu/android/utils/ |
vector.c | 5 _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) {
|
vector.h | 61 #define AVECTOR_ENSURE(obj,name,newCount) \ 63 unsigned _newCount = (newCount); \ 71 unsigned* pMaxItems, unsigned newCount );
|
reflist.c | 71 int newcount = l->size + count; local 72 if (newcount > l->max) { 84 while (newmax < newcount)
|
/external/e2fsprogs/lib/ext2fs/ |
ext_attr.c | 104 __u32 *newcount) 127 if (newcount) 128 *newcount = header->h_refcount;
|
/libcore/luni/src/main/java/java/lang/ |
AbstractStringBuilder.java | 93 int newCount = ((value.length >> 1) + value.length) + 2; 94 char[] newData = new char[min > newCount ? min : newCount]; 101 int newCount = count + 4; 102 if (newCount > value.length) { 103 enlargeBuffer(newCount); 112 int newCount = count + chars.length; 113 if (newCount > value.length) { 114 enlargeBuffer(newCount); 117 count = newCount; [all...] |
CaseMapper.java | 54 int newCount = 0; 68 newCount = i - offset; 69 System.arraycopy(value, offset, newValue, 0, newCount); 72 newValue[newCount++] = newCh; 75 return newValue != null ? new String(0, newCount, newValue) : s;
|
/external/skia/include/core/ |
SkTArray.h | 216 void resize_back(int newCount) { 217 SkASSERT(newCount >= 0); 219 if (newCount > fCount) { 220 push_back_n(newCount - fCount); 221 } else if (newCount < fCount) { 222 pop_back_n(fCount - newCount); 331 int newCount = fCount + delta; 334 if (newCount > fAllocCount) { 335 newAllocCount = SkMax32(newCount + ((newCount + 1) >> 1) [all...] |
SkTDArray.h | 200 unsigned newCount = fCount - 1; 201 fCount = newCount; 202 if (index != newCount) { 203 memcpy(fArray + index, fArray + newCount, sizeof(T));
|
/external/guava/guava/src/com/google/common/collect/ |
TreeMultiset.java | 235 public boolean setCount(E element, int oldCount, int newCount) { 238 return mutate(element, new ConditionalSetCountModifier(oldCount, newCount)) 458 abstract int newCount(int oldCount); 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(int oldCount) [all...] |
ConcurrentHashMultiset.java | 392 * 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) { 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...] |
ForwardingMultiset.java | 99 public boolean setCount(E element, int oldCount, int newCount) { 100 return delegate().setCount(element, oldCount, newCount); 230 E element, int oldCount, int newCount) { 231 return Multisets.setCountImpl(this, element, oldCount, newCount);
|
MapMakerInternalMap.java | [all...] |
AbstractMultiset.java | 104 public boolean setCount(E element, int oldCount, int newCount) { 105 return setCountImpl(this, element, oldCount, newCount);
|
Multisets.java | 172 @Override public boolean setCount(E element, int oldCount, int newCount) { 429 public boolean setCount(E element, int oldCount, int newCount) { 430 return setCountImpl(this, element, oldCount, newCount); 791 Multiset<E> self, E element, int oldCount, int newCount) { 793 checkNonnegative(newCount, "newCount"); 796 self.setCount(element, newCount);
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
TreeMultiset.java | 231 public boolean setCount(E element, int oldCount, int newCount) { 234 return mutate(element, new ConditionalSetCountModifier(oldCount, newCount)) 454 abstract int newCount(int oldCount); 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(int oldCount) [all...] |
/dalvik/vm/jdwp/ |
ExpandBuf.cpp | 86 static void ensureSpace(ExpandBuf* pBuf, int newCount) 90 if (pBuf->curLen + newCount <= pBuf->maxLen) 93 while (pBuf->curLen + newCount > pBuf->maxLen)
|
/external/skia/src/animator/ |
SkAnimateActive.cpp | 60 int newCount = animates.count(); 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(); 122 int newTotal = records * newCount; 126 newTotal -= newCount; 131 sizeof(fSaveRestore[0]) * (newCount - oldCount)) [all...] |
/external/javassist/src/main/javassist/bytecode/ |
ByteStream.java | 185 int newCount = count + delta; 186 if (newCount > buf.length) { 188 byte[] newBuf = new byte[newLen > newCount ? newLen : newCount];
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
ByteArrayOutputStream.java | 105 * @param newcount the size of the buffer if one is created
107 private void needNewBuffer(int newcount) {
118 newBufferSize = newcount;
123 newcount - filledBufferSum);
151 int newcount = count + len;
local 159 needNewBuffer(newcount);
163 count = newcount;
|
/external/webrtc/src/system_wrappers/source/ |
trace_impl.h | 103 const WebRtc_UWord32 newCount) const; 108 const WebRtc_UWord32 newCount) const;
|
/frameworks/opt/mailcommon/java/com/android/mailcommon/ |
MergedAdapter.java | 114 int newCount = count + a.getCount(); 115 if (position < newCount) { 118 count = newCount;
|
/external/guava/guava-tests/test/com/google/common/collect/ |
ForwardingMultisetTest.java | 111 @Override public boolean setCount(T element, int oldCount, int newCount) { 112 return standardSetCount(element, oldCount, newCount); 233 String element, int oldCount, int newCount) {
|
/external/webkit/Source/WebCore/rendering/ |
CounterNode.cpp | 184 int newCount = node->computeCountInParent(); 185 if (oldCount == newCount) 187 node->m_countInParent = newCount;
|
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/ |
ArraySizeDetector.java | 188 int newCount = LintUtils.getChildCount(node); 189 if (newCount != count) { 191 count = newCount; // first number encountered
|
/external/guava/guava/src/com/google/common/cache/ |
LocalCache.java | [all...] |