Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/metrics/
DDnsEvent.java81 public void resize(int newLength) { in resize() argument
82 eventTypes = Arrays.copyOf(eventTypes, newLength); in resize()
83 returnCodes = Arrays.copyOf(returnCodes, newLength); in resize()
84 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()
DTextViewTranslationCallback.java270 int newLength = translatedText.length(); in computePaddedText() local
271 if (newLength <= text.length()) { in computePaddedText()
274 StringBuilder sb = new StringBuilder(newLength); in computePaddedText()
276 for (int i = text.length(); i < newLength; i++) { in computePaddedText()
/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/SystemUI/shared/keyguard/src/com/android/keyguard/
DBasePasswordTextView.java71 protected void onAppend(char c, int newLength) {} in onAppend() argument
94 int newLength = mText.length(); in append() local
95 onAppend(c, newLength); in append()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java266 int newLength = values.length + 1; in DisplayDensityUtils() local
267 values = Arrays.copyOf(values, newLength); in DisplayDensityUtils()
270 valuesFloat = Arrays.copyOf(valuesFloat, newLength); in DisplayDensityUtils()
273 entries = Arrays.copyOf(entries, newLength); in DisplayDensityUtils()
/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/
DVector2.kt156 fun withLength(newLength: Float): Vector2 { in withLength()
157 return times(newLength / length()) in withLength()
DVector3.kt183 fun withLength(newLength: Float): Vector3 { in withLength()
184 return multiplyBy(newLength / length()) in withLength()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DPasswordTextView.java206 protected void onAppend(char c, int newLength) { in onAppend() argument
209 if (newLength > visibleChars) { in onAppend()
213 charState = mTextChars.get(newLength - 1); in onAppend()
219 if (newLength > 1) { in onAppend()
220 CharState previousState = mTextChars.get(newLength - 2); in onAppend()
/frameworks/base/core/java/android/content/res/
DAssetManager.java351 int newLength = sSystemApkAssets.length; in setApkAssets() local
354 newApkAssets[newLength++] = apkAsset; in setApkAssets()
359 if (newLength != newApkAssets.length) { in setApkAssets()
360 newApkAssets = Arrays.copyOf(newApkAssets, newLength); in setApkAssets()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DPersistAtomsStorage.java2492 final int newLength = storage.length + 1; in insertAtRandomPlace() local
2493 final boolean arrayFull = (newLength > maxLength); in insertAtRandomPlace()
2494 T[] result = Arrays.copyOf(storage, arrayFull ? maxLength : newLength); in insertAtRandomPlace()
2495 if (newLength == 1) { in insertAtRandomPlace()
2505 int insertAt = sRandom.nextInt(newLength); in insertAtRandomPlace()
2506 result[newLength - 1] = result[insertAt]; in insertAtRandomPlace()
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java150 final int newLength = newText.length; in resizeFor() local
151 final int delta = newLength - oldLength; in resizeFor()
153 System.arraycopy(mText, oldLength - after, newText, newLength - after, after); in resizeFor()
DTextUtils.java1313 return iterator.destinationIndex() + iterator.newLength(); in toUpperMapToDest()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java977 final int newLength = mLength + length;
980 if (newLength > oldCapacity) {