/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;
|
/external/icu4c/test/letest/ |
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;
|
letest.h | 33 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
|
/external/icu4c/tools/tzcode/ |
ialloc.c | 51 register int oldsize, newsize; local 53 newsize = (new == NULL) ? 0 : strlen(new); 56 else if (newsize == 0) 59 if ((result = irealloc(old, oldsize + newsize + 1)) != NULL)
|
/frameworks/base/media/mca/filterfw/native/core/ |
native_frame.cpp | 52 bool NativeFrame::Resize(int newSize) { 53 if (newSize <= capacity_ && newSize >= 0) { 54 size_ = newSize;
|
/frameworks/native/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);
|
/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...] |
/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);
|
/frameworks/base/core/java/android/webkit/ |
EventLogTags.logtags | 11 70151 browser_text_size_change (oldSize|1|5), (newSize|1|5)
|
/frameworks/base/core/java/android/text/ |
PackedObjectVector.java | 112 int newsize = size() + 1; local 113 newsize = ArrayUtils.idealIntArraySize(newsize * mColumns) / mColumns; 114 Object[] newvalues = new Object[newsize * mColumns]; 119 System.arraycopy(mValues, (mRows - after) * mColumns, newvalues, (newsize - after) * mColumns, after * mColumns); 121 mRowGapLength += newsize - mRows; 122 mRows = newsize;
|
/external/bsdiff/ |
bsdiff.c | 142 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) 146 for(i=0;(i<oldsize)&&(i<newsize);i++) 153 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) 158 x=matchlen(old+I[st],oldsize-I[st],new,newsize); 159 y=matchlen(old+I[en],oldsize-I[en],new,newsize); 171 if(memcmp(old+I[x],new,MIN(oldsize-I[x],newsize))<0) { 172 return search(I,old,oldsize,new,newsize,x,en,pos); 174 return search(I,old,oldsize,new,newsize,st,x,pos); 200 off_t oldsize,newsize; local 234 /* Allocate newsize+1 bytes instead of newsize bytes to ensur [all...] |
bspatch.c | 64 ssize_t oldsize,newsize; local 107 newsize=offtin(header+24); 108 if((bzctrllen<0) || (bzdatalen<0) || (newsize<0)) 142 if((new=malloc(newsize+1))==NULL) err(1,NULL); 145 while(newpos<newsize) { 156 if(newpos+ctrl[0]>newsize) 175 if(newpos+ctrl[1]>newsize) 198 (write(fd,new,newsize)!=newsize) || (close(fd)==-1))
|
/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;
|
uvectr32.cpp | 268 * Change the size of this vector as follows: If newSize is smaller, 270 * newSize. If newSize is larger, grow the array, filling in new 273 void UVector32::setSize(int32_t newSize) { 275 if (newSize < 0) { 278 if (newSize > count) { 280 if (!ensureCapacity(newSize, ec)) { 283 for (i=count; i<newSize; ++i) { 287 count = newSize;
|
/external/tinyxml/ |
tinystr.cpp | 74 size_type newsize = length() + len; local 75 if (newsize > capacity()) 77 reserve (newsize + capacity()); 80 set_size(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);
|
/bootable/recovery/applypatch/ |
bsdiff.c | 159 static off_t matchlen(u_char *old,off_t oldsize,u_char *new,off_t newsize) 163 for(i=0;(i<oldsize)&&(i<newsize);i++) 170 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) 175 x=matchlen(old+I[st],oldsize-I[st],new,newsize); 176 y=matchlen(old+I[en],oldsize-I[en],new,newsize); 188 if(memcmp(old+I[x],new,MIN(oldsize-I[x],newsize))<0) { 189 return search(I,old,oldsize,new,newsize,x,en,pos); 191 return search(I,old,oldsize,new,newsize,st,x,pos); 215 // - old, oldsize, new, newsize are arguments; we don't load this 224 int bsdiff(u_char* old, off_t oldsize, off_t** IP, u_char* new, off_t newsize, [all...] |
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/basis/ |
FilteredBasis.java | 101 public FloatBuffer clip(FloatBuffer buf, int origSize, int newSize, int offset) {
102 FloatBuffer result = FloatBuffer.allocate(newSize * newSize);
105 for (int i = offset; i < offset + newSize; i++) {
106 result.put(orig, i * origSize + offset, newSize);
|
/external/llvm/lib/Support/ |
IntervalMap.cpp | 121 const unsigned *CurSize, unsigned NewSize[], 134 Sum += NewSize[n] = PerNode + (n < Extra); 136 PosPair = IdxPair(n, Position - (Sum - NewSize[n])); 143 assert(NewSize[PosPair.first] && "Too few elements to need Grow"); 144 --NewSize[PosPair.first]; 150 assert(NewSize[n] <= Capacity && "Overallocated node"); 151 Sum += NewSize[n];
|
/packages/apps/Mms/src/com/android/mms/model/ |
CarrierContentRestriction.java | 58 int newSize = messageSize + increaseSize; 60 if ( (newSize < 0) || (newSize > MmsConfig.getMaxMessageSize()) ) {
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/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/antlr/antlr-3.4/runtime/ObjC/Framework/ |
IntArray.h | 78 int newSize = data.length*2; 79 if ( index>newSize ) { 80 newSize = index+1; 82 int[] newData = new int[newSize];
|