Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DTableLayout.java509 final int newLength = widths.length; in findLargestCells() local
512 if (mMaxWidths == null || mMaxWidths.length != newLength) { in findLargestCells()
513 mMaxWidths = new int[newLength]; in findLargestCells()
515 System.arraycopy(widths, 0, mMaxWidths, 0, newLength); in findLargestCells()
519 final int difference = newLength - length; in findLargestCells()
524 mMaxWidths = new int[newLength]; in findLargestCells()
536 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/support/v4/java/android/support/v4/content/
DFileProvider.java762 private static String[] copyOf(String[] original, int newLength) { in copyOf() argument
763 final String[] result = new String[newLength]; in copyOf()
764 System.arraycopy(original, 0, result, 0, newLength); in copyOf()
768 private static Object[] copyOf(Object[] original, int newLength) { in copyOf() argument
769 final Object[] result = new Object[newLength]; in copyOf()
770 System.arraycopy(original, 0, result, 0, newLength); in copyOf()
/frameworks/base/core/java/android/net/
DNetworkStats.java248 final int newLength = Math.max(size, 10) * 3 / 2; in addValues() local
249 iface = Arrays.copyOf(iface, newLength); in addValues()
250 uid = Arrays.copyOf(uid, newLength); in addValues()
251 set = Arrays.copyOf(set, newLength); in addValues()
252 tag = Arrays.copyOf(tag, newLength); in addValues()
253 rxBytes = Arrays.copyOf(rxBytes, newLength); in addValues()
254 rxPackets = Arrays.copyOf(rxPackets, newLength); in addValues()
255 txBytes = Arrays.copyOf(txBytes, newLength); in addValues()
256 txPackets = Arrays.copyOf(txPackets, newLength); in addValues()
257 operations = Arrays.copyOf(operations, newLength); in addValues()
[all …]
DNetworkStatsHistory.java403 final int newLength = Math.max(bucketStart.length, 10) * 3 / 2; in insertBucket() local
404 bucketStart = Arrays.copyOf(bucketStart, newLength); in insertBucket()
405 if (activeTime != null) activeTime = Arrays.copyOf(activeTime, newLength); in insertBucket()
406 if (rxBytes != null) rxBytes = Arrays.copyOf(rxBytes, newLength); in insertBucket()
407 if (rxPackets != null) rxPackets = Arrays.copyOf(rxPackets, newLength); in insertBucket()
408 if (txBytes != null) txBytes = Arrays.copyOf(txBytes, newLength); in insertBucket()
409 if (txPackets != null) txPackets = Arrays.copyOf(txPackets, newLength); in insertBucket()
410 if (operations != null) operations = Arrays.copyOf(operations, newLength); in insertBucket()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DPasswordTextView.java180 int newLength = mText.length(); in append() local
182 if (newLength > visibleChars) { in append()
186 charState = mTextChars.get(newLength - 1); in append()
192 if (newLength > 1) { in append()
193 CharState previousState = mTextChars.get(newLength - 2); in append()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java140 final int newLength = newText.length; in resizeFor() local
141 final int delta = newLength - oldLength; in resizeFor()
143 System.arraycopy(mText, oldLength - after, newText, newLength - after, after); in resizeFor()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DStaggeredGridLayoutManagerTest.java539 int newLength = to - from; in copyOfRange() local
540 if (newLength < 0) in copyOfRange()
542 int[] copy = new int[newLength]; in copyOfRange()
544 Math.min(original.length - from, newLength)); in copyOfRange()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java866 final int newLength = mLength + length;
869 if (newLength > oldCapacity) {