Home
last modified time | relevance | path

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

/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DPersistAtomsStorage.java66 int newLength = mAtoms.voiceCallSession.length + 1; in addVoiceCallSession() local
67 if (newLength > MAX_NUM_CALL_SESSIONS) { in addVoiceCallSession()
69 newLength = MAX_NUM_CALL_SESSIONS; in addVoiceCallSession()
71 mAtoms.voiceCallSession = Arrays.copyOf(mAtoms.voiceCallSession, newLength); in addVoiceCallSession()
74 if (newLength > 1) { in addVoiceCallSession()
77 insertAt = sRandom.nextInt(newLength); in addVoiceCallSession()
78 mAtoms.voiceCallSession[newLength - 1] = mAtoms.voiceCallSession[insertAt]; in addVoiceCallSession()
/frameworks/base/core/java/android/net/metrics/
DDnsEvent.java80 public void resize(int newLength) { in resize() argument
81 eventTypes = Arrays.copyOf(eventTypes, newLength); in resize()
82 returnCodes = Arrays.copyOf(returnCodes, newLength); in resize()
83 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/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java160 int newLength = values.length + 1; in DisplayDensityUtils() local
161 values = Arrays.copyOf(values, newLength); in DisplayDensityUtils()
164 entries = Arrays.copyOf(entries, newLength); in DisplayDensityUtils()
/frameworks/base/core/java/android/net/
DNetworkStats.java562 final int newLength = Math.max(size, 10) * 3 / 2; in insertEntry() local
563 iface = Arrays.copyOf(iface, newLength); in insertEntry()
564 uid = Arrays.copyOf(uid, newLength); in insertEntry()
565 set = Arrays.copyOf(set, newLength); in insertEntry()
566 tag = Arrays.copyOf(tag, newLength); in insertEntry()
567 metered = Arrays.copyOf(metered, newLength); in insertEntry()
568 roaming = Arrays.copyOf(roaming, newLength); in insertEntry()
569 defaultNetwork = Arrays.copyOf(defaultNetwork, newLength); in insertEntry()
570 rxBytes = Arrays.copyOf(rxBytes, newLength); in insertEntry()
571 rxPackets = Arrays.copyOf(rxPackets, newLength); in insertEntry()
[all …]
DNetworkStatsHistory.java446 final int newLength = Math.max(bucketStart.length, 10) * 3 / 2; in insertBucket() local
447 bucketStart = Arrays.copyOf(bucketStart, newLength); in insertBucket()
448 if (activeTime != null) activeTime = Arrays.copyOf(activeTime, newLength); in insertBucket()
449 if (rxBytes != null) rxBytes = Arrays.copyOf(rxBytes, newLength); in insertBucket()
450 if (rxPackets != null) rxPackets = Arrays.copyOf(rxPackets, newLength); in insertBucket()
451 if (txBytes != null) txBytes = Arrays.copyOf(txBytes, newLength); in insertBucket()
452 if (txPackets != null) txPackets = Arrays.copyOf(txPackets, newLength); in insertBucket()
453 if (operations != null) operations = Arrays.copyOf(operations, newLength); in insertBucket()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DPasswordTextView.java218 int newLength = mText.length(); in append() local
220 if (newLength > visibleChars) { in append()
224 charState = mTextChars.get(newLength - 1); in append()
230 if (newLength > 1) { in append()
231 CharState previousState = mTextChars.get(newLength - 2); in append()
/frameworks/base/core/java/android/content/res/
DAssetManager.java313 int newLength = sSystemApkAssets.length; in setApkAssets() local
316 newApkAssets[newLength++] = apkAsset; in setApkAssets()
321 if (newLength != newApkAssets.length) { in setApkAssets()
322 newApkAssets = Arrays.copyOf(newApkAssets, newLength); in setApkAssets()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java148 final int newLength = newText.length; in resizeFor() local
149 final int delta = newLength - oldLength; in resizeFor()
151 System.arraycopy(mText, oldLength - after, newText, newLength - after, after); in resizeFor()
DTextUtils.java1239 return iterator.destinationIndex() + iterator.newLength(); in toUpperMapToDest()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java945 final int newLength = mLength + length;
948 if (newLength > oldCapacity) {
/frameworks/base/non-updatable-api/
Dcurrent.txt20518 method public int newLength();
/frameworks/base/api/
Dcurrent.txt20518 method public int newLength();
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt28568 Landroid/icu/text/Edits$Iterator;->newLength()I