/frameworks/base/core/java/android/widget/ |
D | TableLayout.java | 506 final int newLength = widths.length; in findLargestCells() local 509 if (mMaxWidths == null || mMaxWidths.length != newLength) { in findLargestCells() 510 mMaxWidths = new int[newLength]; in findLargestCells() 512 System.arraycopy(widths, 0, mMaxWidths, 0, newLength); in findLargestCells() 516 final int difference = newLength - length; in findLargestCells() 521 mMaxWidths = new int[newLength]; in findLargestCells() 533 length = Math.min(length, newLength); in findLargestCells()
|
/frameworks/av/media/mtp/ |
D | MtpPacket.cpp | 57 int newLength = length + mAllocationIncrement; in allocate() local 58 mBuffer = (uint8_t *)realloc(mBuffer, newLength); in allocate() 63 mBufferSize = newLength; in allocate()
|
/frameworks/support/core-utils/java/android/support/v4/content/ |
D | FileProvider.java | 795 private static String[] copyOf(String[] original, int newLength) { in copyOf() argument 796 final String[] result = new String[newLength]; in copyOf() 797 System.arraycopy(original, 0, result, 0, newLength); in copyOf() 801 private static Object[] copyOf(Object[] original, int newLength) { in copyOf() argument 802 final Object[] result = new Object[newLength]; in copyOf() 803 System.arraycopy(original, 0, result, 0, newLength); in copyOf()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | DisplayDensityUtils.java | 161 int newLength = values.length + 1; in DisplayDensityUtils() local 162 values = Arrays.copyOf(values, newLength); in DisplayDensityUtils() 165 entries = Arrays.copyOf(entries, newLength); in DisplayDensityUtils()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 292 final int newLength = Math.max(size, 10) * 3 / 2; in addValues() local 293 iface = Arrays.copyOf(iface, newLength); in addValues() 294 uid = Arrays.copyOf(uid, newLength); in addValues() 295 set = Arrays.copyOf(set, newLength); in addValues() 296 tag = Arrays.copyOf(tag, newLength); in addValues() 297 roaming = Arrays.copyOf(roaming, newLength); in addValues() 298 rxBytes = Arrays.copyOf(rxBytes, newLength); in addValues() 299 rxPackets = Arrays.copyOf(rxPackets, newLength); in addValues() 300 txBytes = Arrays.copyOf(txBytes, newLength); in addValues() 301 txPackets = Arrays.copyOf(txPackets, newLength); in addValues() [all …]
|
D | NetworkStatsHistory.java | 405 final int newLength = Math.max(bucketStart.length, 10) * 3 / 2; in insertBucket() local 406 bucketStart = Arrays.copyOf(bucketStart, newLength); in insertBucket() 407 if (activeTime != null) activeTime = Arrays.copyOf(activeTime, newLength); in insertBucket() 408 if (rxBytes != null) rxBytes = Arrays.copyOf(rxBytes, newLength); in insertBucket() 409 if (rxPackets != null) rxPackets = Arrays.copyOf(rxPackets, newLength); in insertBucket() 410 if (txBytes != null) txBytes = Arrays.copyOf(txBytes, newLength); in insertBucket() 411 if (txPackets != null) txPackets = Arrays.copyOf(txPackets, newLength); in insertBucket() 412 if (operations != null) operations = Arrays.copyOf(operations, newLength); in insertBucket()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | PasswordTextView.java | 210 int newLength = mText.length(); in append() local 212 if (newLength > visibleChars) { in append() 216 charState = mTextChars.get(newLength - 1); in append() 222 if (newLength > 1) { in append() 223 CharState previousState = mTextChars.get(newLength - 2); in append()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | StaggeredGridLayoutManagerTest.java | 667 int newLength = to - from; in copyOfRange() local 668 if (newLength < 0) { in copyOfRange() 671 int[] copy = new int[newLength]; in copyOfRange() 673 Math.min(original.length - from, newLength)); in copyOfRange()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 866 final int newLength = mLength + length; 869 if (newLength > oldCapacity) {
|
/frameworks/base/core/java/android/text/ |
D | SpannableStringBuilder.java | 147 final int newLength = newText.length; in resizeFor() local 148 final int delta = newLength - oldLength; in resizeFor() 150 System.arraycopy(mText, oldLength - after, newText, newLength - after, after); in resizeFor()
|