/frameworks/base/core/java/android/widget/ |
D | TableLayout.java | 509 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/ |
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/v4/java/android/support/v4/content/ |
D | FileProvider.java | 762 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/ |
D | NetworkStats.java | 248 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 …]
|
D | NetworkStatsHistory.java | 403 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/ |
D | PasswordTextView.java | 180 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/ |
D | SpannableStringBuilder.java | 140 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/ |
D | StaggeredGridLayoutManagerTest.java | 539 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/ |
D | PointerLocationView.java | 866 final int newLength = mLength + length; 869 if (newLength > oldCapacity) {
|