Home
last modified time | relevance | path

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

12

/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.java231 public static int[] trimStateSet(int[] states, int newSize) { in trimStateSet() argument
232 if (states.length == newSize) { in trimStateSet()
236 int[] trimmedStates = new int[newSize]; in trimStateSet()
237 System.arraycopy(states, 0, trimmedStates, 0, newSize); in trimStateSet()
/frameworks/base/core/java/com/android/internal/util/
DLineBreakBufferedWriter.java262 int newSize = buffer.length * 2 + 2; in ensureCapacity() local
263 if (newSize < capacity) { in ensureCapacity()
264 newSize = capacity; in ensureCapacity()
266 buffer = Arrays.copyOf(buffer, newSize); in ensureCapacity()
/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/libs/hwui/
DGpuMemoryTracker.cpp49 void GpuMemoryTracker::notifySizeChanged(int newSize) { in notifySizeChanged() argument
50 int delta = newSize - mSize; in notifySizeChanged()
51 mSize = newSize; in notifySizeChanged()
DGpuMemoryTracker.h65 void notifySizeChanged(int newSize);
/frameworks/base/graphics/java/android/graphics/drawable/
DLevelListDrawable.java226 public void growArray(int oldSize, int newSize) { in growArray() argument
227 super.growArray(oldSize, newSize); in growArray()
228 int[] newInts = new int[newSize]; in growArray()
231 newInts = new int[newSize]; in growArray()
DAnimationDrawable.java419 public void growArray(int oldSize, int newSize) { in growArray() argument
420 super.growArray(oldSize, newSize); in growArray()
421 int[] newDurations = new int[newSize]; in growArray()
DStateListDrawable.java361 public void growArray(int oldSize, int newSize) { in growArray() argument
362 super.growArray(oldSize, newSize); in growArray()
363 final int[][] newStateSets = new int[newSize][]; in growArray()
/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/native/libs/binder/
DBufferedTextOutput.cpp52 size_t newSize = ((len+bufferPos)*3)/2; in append() local
53 if (newSize < (len+bufferPos)) return NO_MEMORY; // overflow in append()
54 void* b = realloc(buffer, newSize); in append()
57 bufferSize = newSize; in append()
DParcel.cpp550 size_t newSize = ((mObjectsSize + numObjects)*3)/2; in appendFrom() local
551 if (newSize < mObjectsSize) return NO_MEMORY; // overflow in appendFrom()
553 (binder_size_t*)realloc(mObjects, newSize*sizeof(binder_size_t)); in appendFrom()
558 mObjectsCapacity = newSize; in appendFrom()
1344 size_t newSize = ((mObjectsSize+2)*3)/2; in writeObject() local
1345 if (newSize < mObjectsSize) return NO_MEMORY; // overflow in writeObject()
1346 binder_size_t* objects = (binder_size_t*)realloc(mObjects, newSize*sizeof(binder_size_t)); in writeObject()
1349 mObjectsCapacity = newSize; in writeObject()
2318 size_t newSize = ((mDataSize+len)*3)/2; in growData() local
2319 return (newSize <= mDataSize) in growData()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DGpuMemoryTrackerTests.cpp35 void changeSize(int newSize) { in changeSize() argument
36 notifySizeChanged(newSize); in changeSize()
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptField_MyStruct.java.expect185 public synchronized void resize(int newSize) {
188 int copySize = Math.min(oldSize, newSize);
189 if (newSize == oldSize) return;
190 Item ni[] = new Item[newSize];
195 mAllocation.resize(newSize);
/frameworks/compile/slang/tests/P_reduce_general_result/
DScriptField_MyStruct.java.expect185 public synchronized void resize(int newSize) {
188 int copySize = Math.min(oldSize, newSize);
189 if (newSize == oldSize) return;
190 Item ni[] = new Item[newSize];
195 mAllocation.resize(newSize);
/frameworks/compile/slang/tests/P_reduce_general_input/
DScriptField_MyStruct.java.expect185 public synchronized void resize(int newSize) {
188 int copySize = Math.min(oldSize, newSize);
189 if (newSize == oldSize) return;
190 Item ni[] = new Item[newSize];
195 mAllocation.resize(newSize);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DByteArrayRingBufferTest.java163 final byte newSize = 1; in resizePrunesDataAndUpdatesSizeLimitOnShrink()
164 rb.resize(newSize); in resizePrunesDataAndUpdatesSizeLimitOnShrink()
166 assertFalse(rb.appendBuffer(new byte[newSize + 1])); in resizePrunesDataAndUpdatesSizeLimitOnShrink()
/frameworks/base/core/java/android/view/
DNotificationHeaderView.java158 int newSize = appWidth - Math.min(appWidth - mChildMinWidth, overFlow); in onMeasure() local
159 int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST); in onMeasure()
161 overFlow -= appWidth - newSize; in onMeasure()
167 int newSize = Math.max(0, textWidth - overFlow); in onMeasure() local
168 int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST); in onMeasure()
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DSortedList.java200 final int newSize = deduplicate(newItems); in addAllInternal() local
203 mSize = newSize; in addAllInternal()
204 mMergedSize = newSize; in addAllInternal()
205 mCallback.onInserted(0, newSize); in addAllInternal()
207 merge(newItems, newSize); in addAllInternal()
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp491 size_t newSize = size + sizeof(int32_t); in appendVorbisNumPageSamples() local
492 sp<ABuffer> abuf = new ABuffer(newSize); in appendVorbisNumPageSamples()
502 info->mSample->meta_data()->setData(kKeyEncryptedSizes, type, adata, newSize); in appendVorbisNumPageSamples()
517 info->mSample->meta_data()->setData(kKeyPlainSizes, type, adata, newSize); in appendVorbisNumPageSamples()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java665 int newSize = mCapacity * 2; in push() local
667 float[] newRingLux = new float[newSize]; in push()
668 long[] newRingTime = new long[newSize]; in push()
680 mCapacity = newSize; in push()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java308 final int newSize = Math.max((currentSize != null) in updateMemoryUsagePerPackageLocked() local
311 if (newSize > mMaxBytesPerAppPackage) { in updateMemoryUsagePerPackageLocked()
319 + " size: " + newSize + " bytes."); in updateMemoryUsagePerPackageLocked()
322 mPackageToMemoryUsage.put(packageName, newSize); in updateMemoryUsagePerPackageLocked()
/frameworks/base/rs/java/android/renderscript/
DFieldPacker.java777 private boolean resize(int newSize) { in resize() argument
778 if (newSize == mLen) { in resize()
782 byte[] newData = new byte[newSize]; in resize()
785 mLen = newSize; in resize()
/frameworks/ex/common/java/com/android/common/widget/
DGroupingListAdapter.java203 int newSize = idealLongArraySize( in addGroup() local
205 long[] array = new long[newSize]; in addGroup()

12