HomeSort by relevance Sort by last modified time
    Searched refs:newSize (Results 1 - 25 of 149) sorted by null

1 2 3 4 5 6

  /external/antlr/src/org/antlr/runtime/misc/
IntArray.java 78 int newSize = data.length*2;
79 if ( index>newSize ) {
80 newSize = index+1;
82 int[] newData = new int[newSize];
  /external/skia/gpu/include/
GrMemory.h 55 void* realloc(size_t newSize, bool growOnly = false) {
58 alloc = newSize > fAllocatedBytes;
60 alloc = newSize != fAllocatedBytes;
64 fPtr = newSize ? GrMalloc(newSize) : NULL;
65 fAllocatedBytes = newSize;
67 GrAssert(fAllocatedBytes >= newSize);
125 void* realloc(size_t newSize, bool growOnly = false) {
126 if (newSize <= SIZE) {
135 } else if ((newSize > fAllocatedBytes) |
    [all...]
  /system/media/mca/filterfw/native/core/
native_frame.cpp 52 bool NativeFrame::Resize(int newSize) {
53 if (newSize <= capacity_ && newSize >= 0) {
54 size_ = newSize;
native_frame.h 54 bool Resize(int newSize);
  /external/icu4c/samples/layout/
arraymem.h 20 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
FontTableCache.cpp 75 le_int32 newSize = fTableCacheSize + TABLE_CACHE_GROW;
77 fTableCache = (FontTableCacheEntry *) LE_GROW_ARRAY(fTableCache, newSize);
79 for (le_int32 i = fTableCacheSize; i < newSize; i += 1) {
84 fTableCacheSize = newSize;
  /system/core/libcutils/
array.c 120 int newSize = array->size - 1;
123 if (index != newSize) {
125 (sizeof(void*)) * (newSize - index));
128 array->size = newSize;
140 int arraySetSize(Array* array, int newSize) {
142 assert(newSize >= 0);
146 if (newSize > oldSize) {
148 int result = ensureCapacity(array, newSize);
155 sizeof(void*) * (newSize - oldSize));
158 array->size = newSize;
    [all...]
open_memstream.c 94 size_t newSize;
97 newSize = kInitialSize;
99 newSize = stream->allocSize;
100 newSize += newSize / 2; /* expand by 3/2 */
103 if (newSize < neededSize)
104 newSize = neededSize;
106 stream->bufp, *stream->bufp, newSize));
107 char* newBuf = (char*) realloc(*stream->bufp, newSize);
112 stream->allocSize = newSize;
    [all...]
  /frameworks/base/libs/utils/
SharedBuffer.cpp 58 SharedBuffer* SharedBuffer::editResize(size_t newSize) const
62 if (buf->mSize == newSize) return buf;
63 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize);
65 buf->mSize = newSize;
69 SharedBuffer* sb = alloc(newSize);
72 memcpy(sb->data(), data(), newSize < mySize ? newSize : mySize);
  /system/core/libpixelflinger/tinyutils/
SharedBuffer.cpp 51 SharedBuffer* SharedBuffer::editResize(size_t newSize) const
55 if (buf->mSize == newSize) return buf;
56 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize);
58 buf->mSize = newSize;
62 SharedBuffer* sb = alloc(newSize);
65 memcpy(sb->data(), data(), newSize < mySize ? newSize : mySize);
  /external/icu4c/test/letest/
letest.h 33 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
FontTableCache.cpp 75 le_int32 newSize = fTableCacheSize + TABLE_CACHE_GROW;
77 fTableCache = (FontTableCacheEntry *) GROW_ARRAY(fTableCache, newSize);
79 for (le_int32 i = fTableCacheSize; i < newSize; i += 1) {
84 fTableCacheSize = newSize;
  /external/webkit/Source/WebCore/rendering/
RenderMedia.cpp 68 IntSize newSize = contentBoxRect().size();
69 if (newSize == oldSize && !controlsRenderer->needsLayout())
78 controlsRenderer->style()->setHeight(Length(newSize.height(), Fixed));
79 controlsRenderer->style()->setWidth(Length(newSize.width(), Fixed));
  /external/webkit/Source/JavaScriptCore/wtf/text/
StringBuilder.cpp 54 void StringBuilder::resize(unsigned newSize)
56 // Check newSize < m_length, hence m_length > 0.
57 ASSERT(newSize <= m_length);
58 if (newSize == m_length)
66 m_length = newSize;
74 ASSERT(newSize < m_string.length());
75 m_length = newSize;
76 m_string = StringImpl::create(m_string.impl(), 0, newSize);
  /external/qemu/android/utils/
refset.c 85 _arefSet_resize( ARefSet* s, unsigned newSize )
90 AVECTOR_INIT_ALLOC(&newSet,buckets, newSize);
162 unsigned nn, newSize;
171 newSize = s->max_buckets;
172 while (s->num_buckets < newSize*0.25)
173 newSize /= 2;
175 if (newSize != s->max_buckets)
176 _arefSet_resize(s, newSize);
  /external/webkit/Source/WebKit2/WebProcess/WebPage/ca/mac/
LayerTreeHostCAMac.h 47 virtual void sizeDidChange(const WebCore::IntSize& newSize);
  /frameworks/base/core/java/android/util/
StateSet.java 143 public static int[] trimStateSet(int[] states, int newSize) {
144 if (states.length == newSize) {
148 int[] trimmedStates = new int[newSize];
149 System.arraycopy(states, 0, trimmedStates, 0, newSize);
  /packages/apps/Mms/src/com/android/mms/model/
CarrierContentRestriction.java 50 int newSize = messageSize + increaseSize;
52 if ( (newSize < 0) || (newSize > MmsConfig.getMaxMessageSize()) ) {
  /libcore/luni/src/main/java/java/io/
SerializationHandleMap.java 44 private void resizeArrays(int newSize) {
48 this.keys = new Object[newSize];
49 this.values = new int[newSize];
119 int newSize = keys.length * 2;
120 resizeArrays(newSize);
  /dalvik/dx/src/com/android/dx/rop/code/
RegisterSpecList.java 249 int newSize = size() - 1;
251 if (newSize == 0) {
255 RegisterSpecList result = new RegisterSpecList(newSize);
257 for (int i = 0; i < newSize; i++) {
276 int newSize = size() - 1;
278 if (newSize == 0) {
282 RegisterSpecList result = new RegisterSpecList(newSize);
284 for (int i = 0; i < newSize; i++) {
305 int newSize = size() - exclusionSet.cardinality();
307 if (newSize == 0)
    [all...]
  /external/icu4c/common/
uvectr64.cpp 186 * Change the size of this vector as follows: If newSize is smaller,
188 * newSize. If newSize is larger, grow the array, filling in new
191 void UVector64::setSize(int32_t newSize) {
193 if (newSize < 0) {
196 if (newSize > count) {
198 if (!ensureCapacity(newSize, ec)) {
201 for (i=count; i<newSize; ++i) {
205 count = newSize;
  /external/srec/portable/include/
pmemory.h 127 #define REALLOC(ptr, newSize) (prealloc(ptr, newSize, L(__FILE__), __LINE__))
132 #define REALLOC(ptr, newSize) (prealloc(ptr, newSize))
208 * @param newSize The new size required.
218 PORTABLE_API void *prealloc(void* ptr, size_t newSize, const LCHAR* file, int line);
220 PORTABLE_API void *prealloc(void* ptr, size_t newSize);
  /dalvik/dexgen/src/com/android/dexgen/util/
LabeledList.java 71 int newSize = i+1;
73 labelToIndex.shrink(newSize);
75 return newSize;
  /dalvik/dx/src/com/android/dx/util/
LabeledList.java 70 int newSize = i + 1;
72 labelToIndex.shrink(newSize);
74 return newSize;
  /dalvik/vm/
ReferenceTable.cpp 72 int newSize;
74 newSize = pRef->allocEntries * 2;
75 if (newSize > pRef->maxEntries)
76 newSize = pRef->maxEntries;
77 assert(newSize > pRef->allocEntries);
79 newTable = (Object**) realloc(pRef->table, newSize * sizeof(Object*));
82 pRef->allocEntries, newSize, sizeof(Object*));
85 LOGVV("Growing %p from %d to %d", pRef, pRef->allocEntries, newSize);
90 pRef->allocEntries = newSize;

Completed in 688 milliseconds

1 2 3 4 5 6