Home
last modified time | relevance | path

Searched refs:newSize (Results 1 – 25 of 25) sorted by relevance

/frameworks/native/libs/utils/
DSharedBuffer.cpp58 SharedBuffer* SharedBuffer::editResize(size_t newSize) const in editResize()
62 if (buf->mSize == newSize) return buf; in editResize()
63 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize); in editResize()
65 buf->mSize = newSize; in editResize()
69 SharedBuffer* sb = alloc(newSize); in editResize()
72 memcpy(sb->data(), data(), newSize < mySize ? newSize : mySize); in editResize()
/frameworks/base/media/mca/filterfw/native/core/
Dnative_frame.cpp52 bool NativeFrame::Resize(int newSize) { in Resize() argument
53 if (newSize <= capacity_ && newSize >= 0) { in Resize()
54 size_ = newSize; in Resize()
Dnative_frame.h54 bool Resize(int newSize);
/frameworks/base/core/java/android/util/
DStateSet.java143 public static int[] trimStateSet(int[] states, int newSize) { in trimStateSet() argument
144 if (states.length == newSize) { in trimStateSet()
148 int[] trimmedStates = new int[newSize]; in trimStateSet()
149 System.arraycopy(states, 0, trimmedStates, 0, newSize); in trimStateSet()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java145 int newSize = ArrayUtils.idealIntArraySize(mSize); in gc() local
146 if (newSize < mKeys.length) { in gc()
147 int[] nkeys = new int[newSize]; in gc()
148 WeakReference<?>[] nvalues = new WeakReference[newSize]; in gc()
150 System.arraycopy(mKeys, 0, nkeys, 0, newSize); in gc()
151 System.arraycopy(mValues, 0, nvalues, 0, newSize); in gc()
/frameworks/base/graphics/java/android/graphics/drawable/
DLevelListDrawable.java201 public void growArray(int oldSize, int newSize) { in growArray() argument
202 super.growArray(oldSize, newSize); in growArray()
203 int[] newInts = new int[newSize]; in growArray()
206 newInts = new int[newSize]; in growArray()
DMipmapDrawable.java298 public void growArray(int oldSize, int newSize) { in growArray() argument
299 super.growArray(oldSize, newSize); in growArray()
300 int[] newInts = new int[newSize]; in growArray()
DAnimationDrawable.java348 public void growArray(int oldSize, int newSize) { in growArray() argument
349 super.growArray(oldSize, newSize); in growArray()
350 int[] newDurations = new int[newSize]; in growArray()
DStateListDrawable.java305 public void growArray(int oldSize, int newSize) { in growArray() argument
306 super.growArray(oldSize, newSize); in growArray()
307 final int[][] newStateSets = new int[newSize][]; in growArray()
DDrawableContainer.java692 public void growArray(int oldSize, int newSize) { in growArray() argument
693 Drawable[] newDrawables = new Drawable[newSize]; in growArray()
/frameworks/base/core/java/android/database/
DMatrixCursor.java173 int newSize = data.length * 2; in ensureCapacity() local
174 if (newSize < size) { in ensureCapacity()
175 newSize = size; in ensureCapacity()
177 this.data = new Object[newSize]; in ensureCapacity()
/frameworks/base/media/java/android/media/
DMediaCodec.java126 int newOffset, int newSize, long newTimeUs, int newFlags) { in set() argument
128 size = newSize; in set()
/frameworks/base/core/java/android/webkit/
DEventLogTags.logtags11 70151 browser_text_size_change (oldSize|1|5), (newSize|1|5)
/frameworks/av/libvideoeditor/vss/3gpwriter/inc/
DM4MP4W_Utils.h81 void* M4MP4W_realloc(M4OSA_MemAddr32 ptr, M4OSA_UInt32 oldSize, M4OSA_UInt32 newSize);
/frameworks/native/libs/binder/
DParcel.cpp412 int newSize = ((mObjectsSize + numObjects)*3)/2; in appendFrom() local
414 (size_t*)realloc(mObjects, newSize*sizeof(size_t)); in appendFrom()
419 mObjectsCapacity = newSize; in appendFrom()
851 size_t newSize = ((mObjectsSize+2)*3)/2; in writeObject() local
852 size_t* objects = (size_t*)realloc(mObjects, newSize*sizeof(size_t)); in writeObject()
855 mObjectsCapacity = newSize; in writeObject()
1354 size_t newSize = ((mDataSize+len)*3)/2; in growData() local
1355 return (newSize <= mDataSize) in growData()
1357 : continueWrite(newSize); in growData()
/frameworks/av/libvideoeditor/vss/3gpwriter/src/
DM4MP4W_Utils.c118 void* M4MP4W_realloc(M4OSA_MemAddr32 ptr, M4OSA_UInt32 oldSize, M4OSA_UInt32 newSize) in M4MP4W_realloc() argument
121 M4OSA_MemAddr32 ptr2 = (M4OSA_MemAddr32)M4OSA_32bitAlignedMalloc(newSize, M4MP4_WRITER, in M4MP4W_realloc()
/frameworks/ex/common/java/com/android/common/widget/
DGroupingListAdapter.java203 int newSize = idealLongArraySize( in addGroup() local
205 long[] array = new long[newSize]; in addGroup()
/frameworks/base/core/java/android/text/
DDynamicLayout.java486 final int newSize = ArrayUtils.idealIntArraySize(newNumberOfBlocks); in updateBlocks()
487 int[] blockEndLines = new int[newSize]; in updateBlocks()
488 int[] blockIndices = new int[newSize]; in updateBlocks()
DLayout.java408 int newSize = ArrayUtils.idealObjectArraySize(2 * spansLength); in drawBackground() local
409 ParagraphStyle[] newSpans = new ParagraphStyle[newSize]; in drawBackground()
/frameworks/base/core/java/android/widget/
DSpellChecker.java185 final int newSize = mLength * 2; in nextSpellCheckSpanIndex() local
186 int[] newIds = new int[newSize]; in nextSpellCheckSpanIndex()
187 SpellCheckSpan[] newSpellCheckSpans = new SpellCheckSpan[newSize]; in nextSpellCheckSpanIndex()
DEditor.java1356 int newSize = ArrayUtils.idealIntArraySize(length + 1); in getAvailableDisplayListIndex() local
1357 DisplayList[] displayLists = new DisplayList[newSize]; in getAvailableDisplayListIndex()
/frameworks/base/tools/aapt/
DImages.cpp1219 size_t newSize = file->getSize(); in preProcessImage() local
1220 float factor = ((float)newSize)/oldSize; in preProcessImage()
1354 size_t newSize = (size_t)ftell(reader); in preProcessImageToCache() local
1357 float factor = ((float)newSize)/oldSize; in preProcessImageToCache()
/frameworks/ex/carousel/java/com/android/ex/carousel/
DCarouselRS.java536 int newSize = count > 0 ? count : 1; in resizeProgramStoresCard() local
537 mProgramStoresCard.resize(newSize); in resizeProgramStoresCard()
/frameworks/base/docs/html/guide/topics/renderscript/
Dadvanced.jd316 public void resize(int newSize) {
319 int copySize = Math.min(oldSize, newSize);
320 if (newSize == oldSize) return;
321 Item ni[] = new Item[newSize];
325 mAllocation.resize(newSize);
/frameworks/av/libvideoeditor/vss/mcs/src/
DM4MCS_API.c122 M4OSA_UInt32 newSize );
8771 M4OSA_UInt32 newSize ) in M4MCS_intReallocTemporaryAU() argument
8776 *addr = (M4OSA_MemAddr8)M4OSA_32bitAlignedMalloc(newSize, M4MCS, in M4MCS_intReallocTemporaryAU()