Home
last modified time | relevance | path

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

/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/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()
DAnimationDrawable.java385 public void growArray(int oldSize, int newSize) { in growArray() argument
386 super.growArray(oldSize, newSize); in growArray()
387 int[] newDurations = new int[newSize]; in growArray()
DStateListDrawable.java317 public void growArray(int oldSize, int newSize) { in growArray() argument
318 super.growArray(oldSize, newSize); in growArray()
319 final int[][] newStateSets = new int[newSize][]; in growArray()
DDrawableContainer.java1001 public void growArray(int oldSize, int newSize) { in growArray() argument
1002 Drawable[] newDrawables = new Drawable[newSize]; in growArray()
/frameworks/base/core/java/android/database/
DMatrixCursor.java172 int newSize = data.length * 2; in ensureCapacity() local
173 if (newSize < size) { in ensureCapacity()
174 newSize = size; in ensureCapacity()
176 this.data = new Object[newSize]; in ensureCapacity()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DUtils.java319 public static String[] copyOf(String[] source, int newSize) { in copyOf() argument
320 String[] result = new String[newSize]; in copyOf()
321 newSize = Math.min(source.length, newSize); in copyOf()
322 System.arraycopy(source, 0, result, 0, newSize); in copyOf()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DStackScrollAlgorithm.java380 int newSize = (int) Math.max(bottomStackStart - mPaddingBetweenElements - in updatePositionsForState() local
382 childViewState.height = newSize; in updatePositionsForState()
638 float newSize = yPositionInScrollViewAfterElement in findNumberOfItemsInTopStackAndUpdateState() local
641 newSize = Math.max(mCollapsedSize, newSize); in findNumberOfItemsInTopStackAndUpdateState()
643 childViewState.height = (int) newSize; in findNumberOfItemsInTopStackAndUpdateState()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java581 int newSize = mCapacity * 2; in push() local
583 float[] newRingLux = new float[newSize]; in push()
584 long[] newRingTime = new long[newSize]; in push()
596 mCapacity = newSize; in push()
/frameworks/native/libs/binder/
DParcel.cpp420 int newSize = ((mObjectsSize + numObjects)*3)/2; in appendFrom() local
422 (binder_size_t*)realloc(mObjects, newSize*sizeof(binder_size_t)); in appendFrom()
427 mObjectsCapacity = newSize; in appendFrom()
945 size_t newSize = ((mObjectsSize+2)*3)/2; in writeObject() local
946 binder_size_t* objects = (binder_size_t*)realloc(mObjects, newSize*sizeof(binder_size_t)); in writeObject()
949 mObjectsCapacity = newSize; in writeObject()
1539 size_t newSize = ((mDataSize+len)*3)/2; in growData() local
1540 return (newSize <= mDataSize) in growData()
1542 : continueWrite(newSize); in growData()
/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/tools/aapt/
DImages.cpp1335 size_t newSize = file->getSize(); in preProcessImage() local
1336 float factor = ((float)newSize)/oldSize; in preProcessImage()
1470 size_t newSize = (size_t)ftell(reader); in preProcessImageToCache() local
1473 float factor = ((float)newSize)/oldSize; in preProcessImageToCache()
/frameworks/base/media/java/android/media/
DMediaCodec.java257 int newOffset, int newSize, long newTimeUs, int newFlags) { in set() argument
259 size = newSize; in set()
/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);