/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/com/android/internal/util/ |
D | LineBreakBufferedWriter.java | 262 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/ |
D | StateSet.java | 254 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/ |
D | GpuMemoryTracker.cpp | 49 void GpuMemoryTracker::notifySizeChanged(int newSize) { in notifySizeChanged() argument 50 int delta = newSize - mSize; in notifySizeChanged() 51 mSize = newSize; in notifySizeChanged()
|
D | GpuMemoryTracker.h | 66 void notifySizeChanged(int newSize);
|
/frameworks/base/core/java/android/database/ |
D | MatrixCursor.java | 172 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/ |
D | GpuMemoryTrackerTests.cpp | 35 void changeSize(int newSize) { in changeSize() argument 36 notifySizeChanged(newSize); in changeSize()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | LevelListDrawable.java | 226 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()
|
D | AnimationDrawable.java | 419 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()
|
D | StateListDrawable.java | 371 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/ |
D | Utils.java | 319 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/ |
D | BufferedTextOutput.cpp | 52 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/ |
D | DiffUtil.java | 110 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()
|
D | SortedList.java | 200 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/ |
D | ByteArrayRingBufferTest.java | 163 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/ |
D | ScriptField_MyStruct.java.expect | 185 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/ |
D | ScriptField_MyStruct.java.expect | 185 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/ |
D | ScriptField_MyStruct.java.expect | 185 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/ |
D | ScriptField_InnerTwo.java.expect | 193 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);
|
D | ScriptField_InnerOne.java.expect | 206 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/ |
D | NotificationHeaderView.java | 130 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/ |
D | HlsSampleDecryptor.cpp | 93 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/ |
D | AutomaticBrightnessController.java | 650 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/ |
D | NuMediaExtractor.cpp | 490 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()
|