Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/metrics/
DDnsEvent.java71 public void resize(int newLength) { in resize() argument
72 eventTypes = Arrays.copyOf(eventTypes, newLength); in resize()
73 returnCodes = Arrays.copyOf(returnCodes, newLength); in resize()
74 latenciesMs = Arrays.copyOf(latenciesMs, newLength); in resize()
/frameworks/base/core/java/android/widget/
DTableLayout.java507 final int newLength = widths.length; in findLargestCells() local
510 if (mMaxWidths == null || mMaxWidths.length != newLength) { in findLargestCells()
511 mMaxWidths = new int[newLength]; in findLargestCells()
513 System.arraycopy(widths, 0, mMaxWidths, 0, newLength); in findLargestCells()
517 final int difference = newLength - length; in findLargestCells()
522 mMaxWidths = new int[newLength]; in findLargestCells()
534 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/core-utils/java/android/support/v4/content/
DFileProvider.java796 private static String[] copyOf(String[] original, int newLength) { in copyOf() argument
797 final String[] result = new String[newLength]; in copyOf()
798 System.arraycopy(original, 0, result, 0, newLength); in copyOf()
802 private static Object[] copyOf(Object[] original, int newLength) { in copyOf() argument
803 final Object[] result = new Object[newLength]; in copyOf()
804 System.arraycopy(original, 0, result, 0, newLength); in copyOf()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java161 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/
DNetworkStats.java318 final int newLength = Math.max(size, 10) * 3 / 2; in addValues() local
319 iface = Arrays.copyOf(iface, newLength); in addValues()
320 uid = Arrays.copyOf(uid, newLength); in addValues()
321 set = Arrays.copyOf(set, newLength); in addValues()
322 tag = Arrays.copyOf(tag, newLength); in addValues()
323 metered = Arrays.copyOf(metered, newLength); in addValues()
324 roaming = Arrays.copyOf(roaming, newLength); in addValues()
325 rxBytes = Arrays.copyOf(rxBytes, newLength); in addValues()
326 rxPackets = Arrays.copyOf(rxPackets, newLength); in addValues()
327 txBytes = Arrays.copyOf(txBytes, newLength); in addValues()
[all …]
DNetworkStatsHistory.java408 final int newLength = Math.max(bucketStart.length, 10) * 3 / 2; in insertBucket() local
409 bucketStart = Arrays.copyOf(bucketStart, newLength); in insertBucket()
410 if (activeTime != null) activeTime = Arrays.copyOf(activeTime, newLength); in insertBucket()
411 if (rxBytes != null) rxBytes = Arrays.copyOf(rxBytes, newLength); in insertBucket()
412 if (rxPackets != null) rxPackets = Arrays.copyOf(rxPackets, newLength); in insertBucket()
413 if (txBytes != null) txBytes = Arrays.copyOf(txBytes, newLength); in insertBucket()
414 if (txPackets != null) txPackets = Arrays.copyOf(txPackets, newLength); in insertBucket()
415 if (operations != null) operations = Arrays.copyOf(operations, newLength); in insertBucket()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DPasswordTextView.java209 int newLength = mText.length(); in append() local
211 if (newLength > visibleChars) { in append()
215 charState = mTextChars.get(newLength - 1); in append()
221 if (newLength > 1) { in append()
222 CharState previousState = mTextChars.get(newLength - 2); in append()
/frameworks/base/core/java/android/text/method/
DAllCapsTransformationMethod.java113 return iterator.destinationIndex() + iterator.newLength(); in mapToDest()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DStaggeredGridLayoutManagerTest.java1118 int newLength = to - from; in copyOfRange() local
1119 if (newLength < 0) { in copyOfRange()
1122 int[] copy = new int[newLength]; in copyOfRange()
1124 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) {
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java147 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()
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...