Home
last modified time | relevance | path

Searched refs:newSize (Results 1 – 25 of 40) 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/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/util/
DStateSet.java254 public static int[] trimStateSet(int[] states, int newSize) { in trimStateSet() argument
255 if (states.length == newSize) { in trimStateSet()
259 int[] trimmedStates = new int[newSize]; in trimStateSet()
260 System.arraycopy(states, 0, trimmedStates, 0, newSize); in trimStateSet()
/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.h66 void notifySizeChanged(int newSize);
/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/tests/unit/
DGpuMemoryTrackerTests.cpp35 void changeSize(int newSize) { in changeSize() argument
36 notifySizeChanged(newSize); in changeSize()
/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.java371 public void growArray(int oldSize, int newSize) { in growArray() argument
372 super.growArray(oldSize, newSize); in growArray()
373 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()
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DDiffUtil.java110 final int newSize = cb.getNewListSize(); in calculateDiff() local
118 stack.add(new Range(0, oldSize, 0, newSize)); in calculateDiff()
120 final int max = oldSize + newSize + Math.abs(oldSize - newSize); in calculateDiff()
191 final int newSize = endNew - startNew; in diffPartial() local
197 final int delta = oldSize - newSize; in diffPartial()
198 final int dLimit = (oldSize + newSize + 1) / 2; in diffPartial()
218 while (x < oldSize && y < newSize in diffPartial()
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
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/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/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_struct_field/
DScriptField_InnerTwo.java.expect193 public synchronized void resize(int newSize) {
196 int copySize = Math.min(oldSize, newSize);
197 if (newSize == oldSize) return;
198 Item ni[] = new Item[newSize];
203 mAllocation.resize(newSize);
DScriptField_InnerOne.java.expect206 public synchronized void resize(int newSize) {
209 int copySize = Math.min(oldSize, newSize);
210 if (newSize == oldSize) return;
211 Item ni[] = new Item[newSize];
216 mAllocation.resize(newSize);
/frameworks/base/core/java/android/view/
DNotificationHeaderView.java130 int newSize = appWidth - Math.min(appWidth - mChildMinWidth, overFlow); in onMeasure() local
131 int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST); in onMeasure()
133 overFlow -= appWidth - newSize; in onMeasure()
139 int newSize = Math.max(0, textWidth - overFlow); in onMeasure() local
140 int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST); in onMeasure()
/frameworks/av/media/libstagefright/mpeg2ts/
DHlsSampleDecryptor.cpp93 size_t newSize = unescapeStream(nalData, nalSize); in processNal() local
95 ALOGV("processNal:unescapeStream[%d]: %zu -> %zu", nalType, nalSize, newSize); in processNal()
96 nalSize = newSize; in processNal()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java650 int newSize = mCapacity * 2; in push() local
652 float[] newRingLux = new float[newSize]; in push()
653 long[] newRingTime = new long[newSize]; in push()
665 mCapacity = newSize; in push()
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp490 size_t newSize = size + sizeof(int32_t); in appendVorbisNumPageSamples() local
491 sp<ABuffer> abuf = new ABuffer(newSize); in appendVorbisNumPageSamples()
501 info->mSample->meta_data()->setData(kKeyEncryptedSizes, type, adata, newSize); in appendVorbisNumPageSamples()
516 info->mSample->meta_data()->setData(kKeyPlainSizes, type, adata, newSize); in appendVorbisNumPageSamples()

12