Home
last modified time | relevance | path

Searched refs:newLength (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/widget/
DTableLayout.java505 final int newLength = widths.length; in findLargestCells() local
508 if (mMaxWidths == null || mMaxWidths.length != newLength) { in findLargestCells()
509 mMaxWidths = new int[newLength]; in findLargestCells()
511 System.arraycopy(widths, 0, mMaxWidths, 0, newLength); in findLargestCells()
515 final int difference = newLength - length; in findLargestCells()
520 mMaxWidths = new int[newLength]; in findLargestCells()
532 length = Math.min(length, newLength); in findLargestCells()
/frameworks/av/media/mtp/
DMtpPacket.cpp57 int newLength = length + mAllocationIncrement; in allocate() local
58 mBuffer = (uint8_t *)realloc(mBuffer, newLength); in allocate()
63 mBufferSize = newLength; in allocate()
/frameworks/base/core/java/android/net/
DNetworkStats.java212 final int newLength = Math.max(iface.length, 10) * 3 / 2; in addValues() local
213 iface = Arrays.copyOf(iface, newLength); in addValues()
214 uid = Arrays.copyOf(uid, newLength); in addValues()
215 set = Arrays.copyOf(set, newLength); in addValues()
216 tag = Arrays.copyOf(tag, newLength); in addValues()
217 rxBytes = Arrays.copyOf(rxBytes, newLength); in addValues()
218 rxPackets = Arrays.copyOf(rxPackets, newLength); in addValues()
219 txBytes = Arrays.copyOf(txBytes, newLength); in addValues()
220 txPackets = Arrays.copyOf(txPackets, newLength); in addValues()
221 operations = Arrays.copyOf(operations, newLength); in addValues()
DNetworkStatsHistory.java397 final int newLength = Math.max(bucketStart.length, 10) * 3 / 2; in insertBucket() local
398 bucketStart = Arrays.copyOf(bucketStart, newLength); in insertBucket()
399 if (activeTime != null) activeTime = Arrays.copyOf(activeTime, newLength); in insertBucket()
400 if (rxBytes != null) rxBytes = Arrays.copyOf(rxBytes, newLength); in insertBucket()
401 if (rxPackets != null) rxPackets = Arrays.copyOf(rxPackets, newLength); in insertBucket()
402 if (txBytes != null) txBytes = Arrays.copyOf(txBytes, newLength); in insertBucket()
403 if (txPackets != null) txPackets = Arrays.copyOf(txPackets, newLength); in insertBucket()
404 if (operations != null) operations = Arrays.copyOf(operations, newLength); in insertBucket()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java132 final int newLength = ArrayUtils.idealCharArraySize(size + 1); in resizeFor() local
133 final int delta = newLength - oldLength; in resizeFor()
136 char[] newText = new char[newLength]; in resizeFor()
139 System.arraycopy(mText, oldLength - after, newText, newLength - after, after); in resizeFor()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java823 final int newLength = mLength + length;
826 if (newLength > oldCapacity) {