/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 | 231 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/ |
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/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/ |
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 | 65 void notifySizeChanged(int newSize);
|
/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 | 361 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/ |
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()
|
D | Parcel.cpp | 550 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/ |
D | GpuMemoryTrackerTests.cpp | 35 void changeSize(int newSize) { in changeSize() argument 36 notifySizeChanged(newSize); in changeSize()
|
/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_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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
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/base/core/java/android/view/ |
D | NotificationHeaderView.java | 158 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/ |
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/av/media/libstagefright/ |
D | NuMediaExtractor.cpp | 491 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/ |
D | AutomaticBrightnessController.java | 665 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/ |
D | SettingsState.java | 308 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/ |
D | FieldPacker.java | 777 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/ |
D | GroupingListAdapter.java | 203 int newSize = idealLongArraySize( in addGroup() local 205 long[] array = new long[newSize]; in addGroup()
|