/frameworks/base/core/java/android/text/ |
D | AutoGrowArray.java | 79 public void resize(@IntRange(from = 0) int newSize) { in resize() 80 if (newSize > mValues.length) { in resize() 81 ensureCapacity(newSize - mSize); in resize() 83 mSize = newSize; in resize() 188 public void resize(@IntRange(from = 0) int newSize) { in resize() 189 if (newSize > mValues.length) { in resize() 190 ensureCapacity(newSize - mSize); in resize() 192 mSize = newSize; in resize() 297 public void resize(@IntRange(from = 0) int newSize) { in resize() 298 if (newSize > mValues.length) { in resize() [all …]
|
/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()
|
/frameworks/base/core/java/android/util/ |
D | IntArray.java | 79 public void resize(int newSize) { in resize() argument 80 Preconditions.checkArgumentNonnegative(newSize); in resize() 81 if (newSize <= mValues.length) { in resize() 82 Arrays.fill(mValues, newSize, mValues.length, 0); in resize() 84 ensureCapacity(newSize - mSize); in resize() 86 mSize = newSize; in resize()
|
D | LongArray.java | 84 public void resize(int newSize) { in resize() argument 85 Preconditions.checkArgumentNonnegative(newSize); in resize() 86 if (newSize <= mValues.length) { in resize() 87 Arrays.fill(mValues, newSize, mValues.length, 0); in resize() 89 ensureCapacity(newSize - mSize); in resize() 91 mSize = newSize; in resize()
|
D | StateSet.java | 253 public static int[] trimStateSet(int[] states, int newSize) { in trimStateSet() argument 254 if (states.length == newSize) { in trimStateSet() 258 int[] trimmedStates = new int[newSize]; in trimStateSet() 259 System.arraycopy(states, 0, trimmedStates, 0, newSize); in trimStateSet()
|
D | LongArrayQueue.java | 65 final int newSize = GrowingArrayUtils.growSize(mSize); in grow() local 66 final long[] newArray = ArrayUtils.newUnpaddedLongArray(newSize); in grow()
|
/frameworks/av/media/codec2/vndk/internal/ |
D | C2ParamInternal.h | 84 void TrimParam(C2Param *param, uint32_t newSize) { in TrimParam() 85 if (param && *param && param->size() > newSize && newSize >= sizeof(C2Param)) { in TrimParam() 86 param->_mSize = newSize; in TrimParam()
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | GeometryTests.kt | 155 val newSize = Point(1280, 960) in <lambda>() constant 158 resizeCountDownLatch = it.resizeSurfaceView(newSize) in <lambda>() 170 val svBounds = Rect(0, 0, newSize.x, newSize.y) in <lambda>() 176 it.hasLayerSize(newSize) in <lambda>() 203 val newSize = Point(1280, 960) in <lambda>() constant 206 resizeCountDownLatch = it.resizeSurfaceView(newSize) in <lambda>()
|
/frameworks/av/media/module/foundation/ |
D | MediaBuffer.cpp | 62 size_t newSize = 0; in MediaBuffer() local 63 if (!__builtin_add_overflow(size, sizeof(SharedControl), &newSize)) { in MediaBuffer() 64 sp<MemoryDealer> memoryDealer = new MemoryDealer(newSize, "MediaBuffer"); in MediaBuffer() 65 mMemory = memoryDealer->allocate(newSize); in MediaBuffer()
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbMidiBlockParser.java | 169 int newSize = (((int) byteArray[3]) & (0xff)) in calculateMidiType() local 171 if (newSize <= 0) { in calculateMidiType() 172 Log.e(TAG, "Parsed a non-positive block terminal size: " + newSize); in calculateMidiType() 175 byteArray = new byte[newSize]; in calculateMidiType() 183 newSize, in calculateMidiType()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/ |
D | TaskPreviewSizeProvider.kt | 55 val newSize = calculateSize() in onConfigChanged() constant 56 if (newSize != size) { in onConfigChanged() 57 size.set(newSize) in onConfigChanged()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | LineBreakBufferedWriter.java | 263 int newSize = buffer.length * 2 + 2; in ensureCapacity() local 264 if (newSize < capacity) { in ensureCapacity() 265 newSize = capacity; in ensureCapacity() 267 buffer = Arrays.copyOf(buffer, newSize); in ensureCapacity()
|
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/ |
D | Parcel_host.java | 117 var newSize = getCapacity() * 2; in ensureCapacity() local 118 if (newSize < targetSize) { in ensureCapacity() 119 newSize = targetSize; in ensureCapacity() 121 forceSetCapacity(newSize); in ensureCapacity() 124 private void forceSetCapacity(int newSize) { in forceSetCapacity() argument 125 var newBuf = new byte[newSize]; in forceSetCapacity() 128 System.arraycopy(mBuffer, 0, newBuf, 0, Math.min(newSize, getCapacity())); in forceSetCapacity()
|
/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()
|
/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/base/core/java/android/database/ |
D | MatrixCursor.java | 179 int newSize = data.length * 2; in ensureCapacity() local 180 if (newSize < size) { in ensureCapacity() 181 newSize = size; in ensureCapacity() 183 this.data = new Object[newSize]; in ensureCapacity()
|
/frameworks/base/core/java/android/view/ |
D | NotificationTopLineView.java | 431 int newSize = Math.max(minimumWidth, oldWidth - mOverflow); in adjust() local 432 if (minimumWidth == 0 && newSize < mChildHideWidth in adjust() 436 newSize = 0; in adjust() 439 int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST); in adjust() 441 mOverflow -= oldWidth - newSize; in adjust() 443 if (newSize == 0) { in adjust() 464 if (newSize != 0) { in adjust()
|
/frameworks/av/media/module/bufferpool/1.0/vts/ |
D | allocator.cpp | 151 size_t newSize = newParams.size(); in compatible() local 153 if (newSize == oldSize) { in compatible() 154 for (size_t i = 0; i < newSize; ++i) { in compatible()
|
/frameworks/compile/slang/tests/P_reduce_general_result/ |
D | ScriptField_MyStruct.java.expect | 188 public synchronized void resize(int newSize) { 191 int copySize = Math.min(oldSize, newSize); 192 if (newSize == oldSize) return; 193 Item ni[] = new Item[newSize]; 198 mAllocation.resize(newSize);
|
/frameworks/compile/slang/tests/P_reduce_general_input/ |
D | ScriptField_MyStruct.java.expect | 188 public synchronized void resize(int newSize) { 191 int copySize = Math.min(oldSize, newSize); 192 if (newSize == oldSize) return; 193 Item ni[] = new Item[newSize]; 198 mAllocation.resize(newSize);
|
/frameworks/compile/slang/tests/P_reduce_general_inputs/ |
D | ScriptField_MyStruct.java.expect | 188 public synchronized void resize(int newSize) { 191 int copySize = Math.min(oldSize, newSize); 192 if (newSize == oldSize) return; 193 Item ni[] = new Item[newSize]; 198 mAllocation.resize(newSize);
|
/frameworks/compile/slang/tests/P_reflection3264_divergent/ |
D | ScriptField_NonDivergent.java.expect | 186 public synchronized void resize(int newSize) { 189 int copySize = Math.min(oldSize, newSize); 190 if (newSize == oldSize) return; 191 Item ni[] = new Item[newSize]; 196 mAllocation.resize(newSize);
|
/frameworks/native/libs/binder/ |
D | BufferedTextOutput.cpp | 54 size_t newSize = ((len+bufferPos)*3)/2; in append() local 55 void* b = realloc(buffer, newSize); in append() 58 bufferSize = newSize; in append()
|
/frameworks/compile/slang/tests/P_struct_field/ |
D | ScriptField_InnerTwo.java.expect | 196 public synchronized void resize(int newSize) { 199 int copySize = Math.min(oldSize, newSize); 200 if (newSize == oldSize) return; 201 Item ni[] = new Item[newSize]; 206 mAllocation.resize(newSize);
|
/frameworks/av/media/module/bufferpool/2.0/tests/ |
D | allocator.cpp | 169 size_t newSize = newParams.size(); in compatible() local 171 if (newSize == oldSize) { in compatible() 172 for (size_t i = 0; i < newSize; ++i) { in compatible()
|