/frameworks/native/libs/utils/ |
D | SharedBuffer.cpp | 58 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/ |
D | native_frame.cpp | 52 bool NativeFrame::Resize(int newSize) { in Resize() argument 53 if (newSize <= capacity_ && newSize >= 0) { in Resize() 54 size_ = newSize; in Resize()
|
D | native_frame.h | 54 bool Resize(int newSize);
|
/frameworks/base/core/java/android/util/ |
D | StateSet.java | 143 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/ |
D | SparseWeakArray.java | 145 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/ |
D | LevelListDrawable.java | 201 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()
|
D | MipmapDrawable.java | 298 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()
|
D | AnimationDrawable.java | 348 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()
|
D | StateListDrawable.java | 305 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()
|
D | DrawableContainer.java | 692 public void growArray(int oldSize, int newSize) { in growArray() argument 693 Drawable[] newDrawables = new Drawable[newSize]; in growArray()
|
/frameworks/base/core/java/android/database/ |
D | MatrixCursor.java | 173 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/ |
D | MediaCodec.java | 126 int newOffset, int newSize, long newTimeUs, int newFlags) { in set() argument 128 size = newSize; in set()
|
/frameworks/base/core/java/android/webkit/ |
D | EventLogTags.logtags | 11 70151 browser_text_size_change (oldSize|1|5), (newSize|1|5)
|
/frameworks/av/libvideoeditor/vss/3gpwriter/inc/ |
D | M4MP4W_Utils.h | 81 void* M4MP4W_realloc(M4OSA_MemAddr32 ptr, M4OSA_UInt32 oldSize, M4OSA_UInt32 newSize);
|
/frameworks/native/libs/binder/ |
D | Parcel.cpp | 412 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/ |
D | M4MP4W_Utils.c | 118 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/ |
D | GroupingListAdapter.java | 203 int newSize = idealLongArraySize( in addGroup() local 205 long[] array = new long[newSize]; in addGroup()
|
/frameworks/base/core/java/android/text/ |
D | DynamicLayout.java | 486 final int newSize = ArrayUtils.idealIntArraySize(newNumberOfBlocks); in updateBlocks() 487 int[] blockEndLines = new int[newSize]; in updateBlocks() 488 int[] blockIndices = new int[newSize]; in updateBlocks()
|
D | Layout.java | 408 int newSize = ArrayUtils.idealObjectArraySize(2 * spansLength); in drawBackground() local 409 ParagraphStyle[] newSpans = new ParagraphStyle[newSize]; in drawBackground()
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 185 final int newSize = mLength * 2; in nextSpellCheckSpanIndex() local 186 int[] newIds = new int[newSize]; in nextSpellCheckSpanIndex() 187 SpellCheckSpan[] newSpellCheckSpans = new SpellCheckSpan[newSize]; in nextSpellCheckSpanIndex()
|
D | Editor.java | 1356 int newSize = ArrayUtils.idealIntArraySize(length + 1); in getAvailableDisplayListIndex() local 1357 DisplayList[] displayLists = new DisplayList[newSize]; in getAvailableDisplayListIndex()
|
/frameworks/base/tools/aapt/ |
D | Images.cpp | 1219 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/ |
D | CarouselRS.java | 536 int newSize = count > 0 ? count : 1; in resizeProgramStoresCard() local 537 mProgramStoresCard.resize(newSize); in resizeProgramStoresCard()
|
/frameworks/base/docs/html/guide/topics/renderscript/ |
D | advanced.jd | 316 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/ |
D | M4MCS_API.c | 122 M4OSA_UInt32 newSize ); 8771 M4OSA_UInt32 newSize ) in M4MCS_intReallocTemporaryAU() argument 8776 *addr = (M4OSA_MemAddr8)M4OSA_32bitAlignedMalloc(newSize, M4MCS, in M4MCS_intReallocTemporaryAU()
|