Searched refs:newSize (Results 1 - 4 of 4) sorted by relevance

/system/core/libcutils/
H A Darray.c120 int newSize = array->size - 1; local
123 if (index != newSize) {
125 (sizeof(void*)) * (newSize - index));
128 array->size = newSize;
140 int arraySetSize(Array* array, int newSize) { argument
142 assert(newSize >= 0);
146 if (newSize > oldSize) {
148 int result = ensureCapacity(array, newSize);
155 sizeof(void*) * (newSize - oldSize));
158 array->size = newSize;
[all...]
H A Dopen_memstream.c94 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...]
/system/core/libpixelflinger/tinyutils/
H A DSharedBuffer.cpp51 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/libpixelflinger/codeflinger/
H A DCodeCache.cpp141 ssize_t Assembly::resize(size_t newSize)
143 mBase = (uint32_t*)mspace_realloc(getMspace(), mBase, newSize);
146 "of size %zd", newSize, kMaxCodeCacheCapacity);
147 mSize = newSize;

Completed in 67 milliseconds