/frameworks/base/core/java/android/net/metrics/ |
D | DnsEvent.java | 77 public void resize(int newLength) { in resize() argument 78 eventTypes = Arrays.copyOf(eventTypes, newLength); in resize() 79 returnCodes = Arrays.copyOf(returnCodes, newLength); in resize() 80 latenciesMs = Arrays.copyOf(latenciesMs, newLength); in resize()
|
/frameworks/base/core/java/android/widget/ |
D | TextViewTranslationCallback.java | 191 int newLength = translatedText.length(); in computePaddedText() local 192 if (newLength <= text.length()) { in computePaddedText() 195 StringBuilder sb = new StringBuilder(newLength); in computePaddedText() 197 for (int i = text.length(); i < newLength; i++) { in computePaddedText()
|
D | TableLayout.java | 507 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/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | PersistAtomsStorage.java | 240 int newLength = mAtoms.carrierIdMismatch.length + 1; in addCarrierIdMismatch() local 241 mAtoms.carrierIdMismatch = Arrays.copyOf(mAtoms.carrierIdMismatch, newLength); in addCarrierIdMismatch() 242 mAtoms.carrierIdMismatch[newLength - 1] = carrierIdMismatch; in addCarrierIdMismatch() 310 int newLength = mAtoms.networkRequests.length + 1; in addNetworkRequests() local 311 mAtoms.networkRequests = Arrays.copyOf(mAtoms.networkRequests, newLength); in addNetworkRequests() 312 mAtoms.networkRequests[newLength - 1] = networkRequests; in addNetworkRequests() 712 final int newLength = storage.length + 1; in insertAtRandomPlace() local 713 final boolean arrayFull = (newLength > maxLength); in insertAtRandomPlace() 714 T[] result = Arrays.copyOf(storage, arrayFull ? maxLength : newLength); in insertAtRandomPlace() 715 if (newLength == 1) { in insertAtRandomPlace() [all …]
|
/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/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | DisplayDensityUtils.java | 160 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/ |
D | NetworkStats.java | 565 final int newLength = Math.max(size, 10) * 3 / 2; in insertEntry() local 566 iface = Arrays.copyOf(iface, newLength); in insertEntry() 567 uid = Arrays.copyOf(uid, newLength); in insertEntry() 568 set = Arrays.copyOf(set, newLength); in insertEntry() 569 tag = Arrays.copyOf(tag, newLength); in insertEntry() 570 metered = Arrays.copyOf(metered, newLength); in insertEntry() 571 roaming = Arrays.copyOf(roaming, newLength); in insertEntry() 572 defaultNetwork = Arrays.copyOf(defaultNetwork, newLength); in insertEntry() 573 rxBytes = Arrays.copyOf(rxBytes, newLength); in insertEntry() 574 rxPackets = Arrays.copyOf(rxPackets, newLength); in insertEntry() [all …]
|
D | NetworkStatsHistory.java | 447 final int newLength = Math.max(bucketStart.length, 10) * 3 / 2; in insertBucket() local 448 bucketStart = Arrays.copyOf(bucketStart, newLength); in insertBucket() 449 if (activeTime != null) activeTime = Arrays.copyOf(activeTime, newLength); in insertBucket() 450 if (rxBytes != null) rxBytes = Arrays.copyOf(rxBytes, newLength); in insertBucket() 451 if (rxPackets != null) rxPackets = Arrays.copyOf(rxPackets, newLength); in insertBucket() 452 if (txBytes != null) txBytes = Arrays.copyOf(txBytes, newLength); in insertBucket() 453 if (txPackets != null) txPackets = Arrays.copyOf(txPackets, newLength); in insertBucket() 454 if (operations != null) operations = Arrays.copyOf(operations, newLength); in insertBucket()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | PasswordTextView.java | 248 int newLength = mText.length(); in append() local 250 if (newLength > visibleChars) { in append() 254 charState = mTextChars.get(newLength - 1); in append() 260 if (newLength > 1) { in append() 261 CharState previousState = mTextChars.get(newLength - 2); in append()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetManager.java | 307 int newLength = sSystemApkAssets.length; in setApkAssets() local 310 newApkAssets[newLength++] = apkAsset; in setApkAssets() 315 if (newLength != newApkAssets.length) { in setApkAssets() 316 newApkAssets = Arrays.copyOf(newApkAssets, newLength); in setApkAssets()
|
/frameworks/base/core/java/android/text/ |
D | SpannableStringBuilder.java | 149 final int newLength = newText.length; in resizeFor() local 150 final int delta = newLength - oldLength; in resizeFor() 152 System.arraycopy(mText, oldLength - after, newText, newLength - after, after); in resizeFor()
|
D | TextUtils.java | 1246 return iterator.destinationIndex() + iterator.newLength(); in toUpperMapToDest()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 948 final int newLength = mLength + length; 951 if (newLength > oldCapacity) {
|