Home
last modified time | relevance | path

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

12345

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DArrays.java730 public static byte[] copyOf(byte[] data, int newLength) in copyOf() argument
732 byte[] tmp = new byte[newLength]; in copyOf()
734 if (newLength < data.length) in copyOf()
736 System.arraycopy(data, 0, tmp, 0, newLength); in copyOf()
746 public static char[] copyOf(char[] data, int newLength) in copyOf() argument
748 char[] tmp = new char[newLength]; in copyOf()
750 if (newLength < data.length) in copyOf()
752 System.arraycopy(data, 0, tmp, 0, newLength); in copyOf()
762 public static int[] copyOf(int[] data, int newLength) in copyOf() argument
764 int[] tmp = new int[newLength]; in copyOf()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DEdits.java101 public void addReplace(int oldLength, int newLength) { in addReplace() argument
102 if(oldLength == newLength && 0 < oldLength && oldLength <= MAX_SHORT_WIDTH) { in addReplace()
115 if(oldLength < 0 || newLength < 0) { in addReplace()
117 "addReplace(" + oldLength + ", " + newLength + in addReplace()
120 if (oldLength == 0 && newLength == 0) { in addReplace()
123 int newDelta = newLength - oldLength; in addReplace()
134 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace()
136 head |= newLength; in addReplace()
150 if(newLength < LENGTH_IN_1TRAIL) { in addReplace()
151 head |= newLength; in addReplace()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DEdits.java104 public void addReplace(int oldLength, int newLength) { in addReplace() argument
105 if(oldLength == newLength && 0 < oldLength && oldLength <= MAX_SHORT_WIDTH) { in addReplace()
118 if(oldLength < 0 || newLength < 0) { in addReplace()
120 "addReplace(" + oldLength + ", " + newLength + in addReplace()
123 if (oldLength == 0 && newLength == 0) { in addReplace()
126 int newDelta = newLength - oldLength; in addReplace()
137 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace()
139 head |= newLength; in addReplace()
153 if(newLength < LENGTH_IN_1TRAIL) { in addReplace()
154 head |= newLength; in addReplace()
[all …]
/external/proguard/src/proguard/classfile/editor/
DConstantPoolSorter.java78 int newLength = 1; in visitProgramClass() local
89 newIndex = newLength; in visitProgramClass()
94 newConstantPool[newLength++] = constant; in visitProgramClass()
101 newConstantPool[newLength++] = null; in visitProgramClass()
112 System.arraycopy(newConstantPool, 0, programClass.constantPool, 0, newLength); in visitProgramClass()
115 Arrays.fill(programClass.constantPool, newLength, constantPoolCount, null); in visitProgramClass()
117 programClass.u2constantPoolCount = newLength; in visitProgramClass()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCharsTrieBuilder.java159 int newLength=charsLength+1; in write() local
160 ensureCapacity(newLength); in write()
161 charsLength=newLength; in write()
173 int newLength=charsLength+length; in write() local
174 ensureCapacity(newLength); in write()
175 charsLength=newLength; in write()
184 int newLength=charsLength+length; in write() local
185 ensureCapacity(newLength); in write()
186 charsLength=newLength; in write()
DBytesTrieBuilder.java181 int newLength=bytesLength+1; in write() local
182 ensureCapacity(newLength); in write()
183 bytesLength=newLength; in write()
195 int newLength=bytesLength+length; in write() local
196 ensureCapacity(newLength); in write()
197 bytesLength=newLength; in write()
206 int newLength=bytesLength+length; in write() local
207 ensureCapacity(newLength); in write()
208 bytesLength=newLength; in write()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCharsTrieBuilder.java155 int newLength=charsLength+1; in write() local
156 ensureCapacity(newLength); in write()
157 charsLength=newLength; in write()
169 int newLength=charsLength+length; in write() local
170 ensureCapacity(newLength); in write()
171 charsLength=newLength; in write()
180 int newLength=charsLength+length; in write() local
181 ensureCapacity(newLength); in write()
182 charsLength=newLength; in write()
DBytesTrieBuilder.java177 int newLength=bytesLength+1; in write() local
178 ensureCapacity(newLength); in write()
179 bytesLength=newLength; in write()
191 int newLength=bytesLength+length; in write() local
192 ensureCapacity(newLength); in write()
193 bytesLength=newLength; in write()
202 int newLength=bytesLength+length; in write() local
203 ensureCapacity(newLength); in write()
204 bytesLength=newLength; in write()
/external/proguard/src/proguard/evaluation/value/
DInstructionOffsetValue.java160 int newLength = thisValues.length; in generalize() local
165 newLength++; in generalize()
171 if (newLength == otherValues.length) in generalize()
180 if (newLength == this.values.length && in generalize()
189 int[] newValues = new int[newLength]; in generalize()
192 if (newLength == thisValues.length + otherValues.length) in generalize()
/external/icu/icu4c/source/common/
Dunistr_case.cpp128 int32_t newLength; in caseMap() local
131 newLength = stringCaseMapper(csm, getArrayStart(), getCapacity(), in caseMap()
133 setLength(newLength); in caseMap()
134 } while(errorCode==U_BUFFER_OVERFLOW_ERROR && cloneArrayIfNeeded(newLength, newLength, FALSE)); in caseMap()
Dcharstr.cpp42 CharString &CharString::truncate(int32_t newLength) { in truncate() argument
43 if(newLength<0) { in truncate()
44 newLength=0; in truncate()
46 if(newLength<len) { in truncate()
47 buffer[len=newLength]=0; in truncate()
Dunistr.cpp358 int32_t getGrowCapacity(int32_t newLength) { in getGrowCapacity() argument
359 int32_t growSize = (newLength >> 2) + kGrowSize; in getGrowCapacity()
360 if(growSize <= (kMaxCapacity - newLength)) { in getGrowCapacity()
361 return newLength + growSize; in getGrowCapacity()
1169 int32_t newLength) in findAndReplace() argument
1177 newText.pinIndices(newStart, newLength); in findAndReplace()
1190 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1192 start = pos + newLength; in findAndReplace()
1460 int32_t newLength = oldLength - length; in doReplace() local
1461 if(srcLength > (INT32_MAX - newLength)) { in doReplace()
[all …]
/external/smali/util/src/main/java/org/jf/util/
DStringWrapper.java92 private static String[] addString(@Nonnull String[] arr, String str, int index, int newLength) { in addString() argument
94 arr = enlargeArray(arr, newLength); in addString()
101 private static String[] enlargeArray(String[] arr, int newLength) { in enlargeArray() argument
102 String[] newArr = new String[newLength]; in enlargeArray()
/external/icu/icu4c/source/test/intltest/
Dwinnmtst.cpp194 int newLength = GetCurrencyFormatW(lcid, 0, nBuffer, NULL, NULL, 0); in getWindowsFormat() local
196 buffer = NEW_ARRAY(wchar_t, newLength); in getWindowsFormat()
198 GetCurrencyFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); in getWindowsFormat()
208 int newLength = GetNumberFormatW(lcid, 0, nBuffer, NULL, NULL, 0); in getWindowsFormat() local
210 buffer = NEW_ARRAY(wchar_t, newLength); in getWindowsFormat()
212 GetNumberFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); in getWindowsFormat()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DRecyclableBufferedInputStream.java147 int newLength = localBuf.length * 2; in fillbuf() local
148 if (newLength > marklimit) { in fillbuf()
149 newLength = marklimit; in fillbuf()
152 Log.d(TAG, "allocate buffer of length: " + newLength); in fillbuf()
154 byte[] newbuf = new byte[newLength]; in fillbuf()
/external/icu/icu4c/source/i18n/
Dwindtfmt.cpp242 … int newLength = GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0); in formatDate() local
244 buffer = NEW_ARRAY(wchar_t, newLength); in formatDate()
245 GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength); in formatDate()
268 int newLength = GetTimeFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, NULL, 0); in formatTime() local
270 buffer = NEW_ARRAY(wchar_t, newLength); in formatTime()
271 GetDateFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, buffer, newLength); in formatTime()
Dwinnmfmt.cpp317 … int newLength = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, NULL, 0); in format() local
319 buffer = NEW_ARRAY(wchar_t, newLength); in format()
321 GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format()
337 int newLength = GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, NULL, 0); in format() local
339 buffer = NEW_ARRAY(wchar_t, newLength); in format()
341 GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, buffer, newLength); in format()
/external/skia/src/core/
DSkLinearBitmapPipeline_core.h111 SkScalar newLength = dxSteps * dx; in breakAt() local
120 if (this->startX() + newLength == breakX && dx > 0) { in breakAt()
123 newLength -= dx; in breakAt()
135 SkScalar lengthToStart = newLength + dx; in breakAt()
140 return Span{newStart, newLength, newCount}; in breakAt()
/external/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp95 int newLength; in finish_range() local
97 newLength = range->fEndId - range->fStartId + 1; in finish_range()
102 newLength = 1; in finish_range()
104 SkASSERT(range->fAdvance.count() >= newLength); in finish_range()
105 range->fAdvance.setCount(newLength); in finish_range()
/external/icu/icu4c/source/tools/toolutil/
Ddenseranges.cpp52 void truncate(int32_t newLength) { in truncate() argument
53 if(newLength<length) { in truncate()
54 length=newLength; in truncate()
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DOpenIntToDoubleHashMap.java442 final int newLength = RESIZE_MULTIPLIER * oldLength; in growTable() local
443 final int[] newKeys = new int[newLength]; in growTable()
444 final double[] newValues = new double[newLength]; in growTable()
445 final byte[] newStates = new byte[newLength]; in growTable()
446 final int newMask = newLength - 1; in growTable()
DOpenIntToFieldHashMap.java454 final int newLength = RESIZE_MULTIPLIER * oldLength; in growTable() local
455 final int[] newKeys = new int[newLength]; in growTable()
456 final T[] newValues = buildArray(newLength); in growTable()
457 final byte[] newStates = new byte[newLength]; in growTable()
458 final int newMask = newLength - 1; in growTable()
/external/proguard/src/proguard/optimize/evaluation/
DEvaluationSimplifier.java1113 int newLength = highIndex - lowIndex + 1; in trimSwitchInstruction() local
1114 if (newLength < length) in trimSwitchInstruction()
1116 if (newLength <= 0) in trimSwitchInstruction()
1129 int[] newJumpOffsets = new int[newLength]; in trimSwitchInstruction()
1131 System.arraycopy(jumpOffsets, lowIndex, newJumpOffsets, 0, newLength); in trimSwitchInstruction()
1135 tableSwitchInstruction.highCase -= length - newLength - lowIndex; in trimSwitchInstruction()
1155 int newLength = length; in trimSwitchInstruction() local
1162 newLength--; in trimSwitchInstruction()
1167 if (newLength < length) in trimSwitchInstruction()
1169 if (newLength <= 0) in trimSwitchInstruction()
[all …]
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/
DSourceNodeImpl.java63 final int newLength = newLast - newFirst + 1; in ensureCapacity() local
64 if (newLength > lines.length) { in ensureCapacity()
65 final LineImpl[] newLines = new LineImpl[newLength]; in ensureCapacity()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DObjectArrays.java82 static <T> T[] arraysCopyOf(T[] original, int newLength) { in arraysCopyOf() argument
83 T[] copy = newArray(original, newLength); in arraysCopyOf()
85 original, 0, copy, 0, Math.min(original.length, newLength)); in arraysCopyOf()

12345