Home
last modified time | relevance | path

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

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DArrays.java605 public static byte[] copyOf(byte[] data, int newLength) in copyOf() argument
607 byte[] tmp = new byte[newLength]; in copyOf()
609 if (newLength < data.length) in copyOf()
611 System.arraycopy(data, 0, tmp, 0, newLength); in copyOf()
621 public static char[] copyOf(char[] data, int newLength) in copyOf() argument
623 char[] tmp = new char[newLength]; in copyOf()
625 if (newLength < data.length) in copyOf()
627 System.arraycopy(data, 0, tmp, 0, newLength); in copyOf()
637 public static int[] copyOf(int[] data, int newLength) in copyOf() argument
639 int[] tmp = new int[newLength]; in copyOf()
[all …]
/external/guava/guava-tests/test/com/google/common/jdk5backport/
DArrays.java9 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument
10 return copyOfRange(original, 0, newLength); in copyOf()
14 int newLength = to - from; in copyOfRange() local
15 if (newLength >= 0) { in copyOfRange()
16 byte[] copy = new byte[newLength]; in copyOfRange()
17 System.arraycopy(original, from, copy, 0, Math.min(original.length - from, newLength)); in copyOfRange()
/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.java157 int newLength=charsLength+1; in write() local
158 ensureCapacity(newLength); in write()
159 charsLength=newLength; in write()
171 int newLength=charsLength+length; in write() local
172 ensureCapacity(newLength); in write()
173 charsLength=newLength; in write()
182 int newLength=charsLength+length; in write() local
183 ensureCapacity(newLength); in write()
184 charsLength=newLength; in write()
DBytesTrieBuilder.java179 int newLength=bytesLength+1; in write() local
180 ensureCapacity(newLength); in write()
181 bytesLength=newLength; in write()
193 int newLength=bytesLength+length; in write() local
194 ensureCapacity(newLength); in write()
195 bytesLength=newLength; in write()
204 int newLength=bytesLength+length; in write() local
205 ensureCapacity(newLength); in write()
206 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.cpp126 int32_t newLength; in caseMap() local
129 newLength = stringCaseMapper(csm, getArrayStart(), getCapacity(), in caseMap()
131 setLength(newLength); in caseMap()
132 } while(errorCode==U_BUFFER_OVERFLOW_ERROR && cloneArrayIfNeeded(newLength, newLength, FALSE)); in caseMap()
Dcharstr.cpp30 CharString &CharString::truncate(int32_t newLength) { in truncate() argument
31 if(newLength<0) { in truncate()
32 newLength=0; in truncate()
34 if(newLength<len) { in truncate()
35 buffer[len=newLength]=0; in truncate()
Dunistr.cpp1053 int32_t newLength) in findAndReplace() argument
1061 newText.pinIndices(newStart, newLength); in findAndReplace()
1074 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1076 start = pos + newLength; in findAndReplace()
1341 int32_t newLength; in doReplace() local
1348 newLength = oldLength + srcLength; in doReplace()
1349 if(newLength <= getCapacity() && isBufferWritable()) { in doReplace()
1361 setLength(newLength); in doReplace()
1372 newLength = oldLength - length + srcLength; in doReplace()
1379 if((fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZE)) { in doReplace()
[all …]
Ducharstriebuilder.cpp349 int32_t newLength=ucharsLength+1; in write() local
350 if(ensureCapacity(newLength)) { in write()
351 ucharsLength=newLength; in write()
359 int32_t newLength=ucharsLength+length; in write() local
360 if(ensureCapacity(newLength)) { in write()
361 ucharsLength=newLength; in write()
Dbytestriebuilder.cpp401 int32_t newLength=bytesLength+1; in write() local
402 if(ensureCapacity(newLength)) { in write()
403 bytesLength=newLength; in write()
411 int32_t newLength=bytesLength+length; in write() local
412 if(ensureCapacity(newLength)) { in write()
413 bytesLength=newLength; in write()
/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.cpp193 int newLength = GetCurrencyFormatW(lcid, 0, nBuffer, NULL, NULL, 0); in getWindowsFormat() local
195 buffer = NEW_ARRAY(UChar, newLength); in getWindowsFormat()
197 GetCurrencyFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); in getWindowsFormat()
207 int newLength = GetNumberFormatW(lcid, 0, nBuffer, NULL, NULL, 0); in getWindowsFormat() local
209 buffer = NEW_ARRAY(UChar, newLength); in getWindowsFormat()
211 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/v8/src/
Dtypedarray.js54 var newLength;
61 newLength = newByteLength / ELEMENT_SIZE;
63 var newLength = length;
64 newByteLength = newLength * ELEMENT_SIZE;
67 || (newLength > %_MaxSmi())) {
179 var newLength = endInt - beginInt;
183 beginByteOffset, newLength);
/external/icu/icu4c/source/i18n/
Dwindtfmt.cpp246 … int newLength = GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0); in formatDate() local
248 buffer = NEW_ARRAY(UChar, newLength); in formatDate()
249 GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength); in formatDate()
272 int newLength = GetTimeFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, NULL, 0); in formatTime() local
274 buffer = NEW_ARRAY(UChar, newLength); in formatTime()
275 GetDateFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, buffer, newLength); in formatTime()
Dwinnmfmt.cpp315 … int newLength = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, NULL, 0); in format() local
317 buffer = NEW_ARRAY(UChar, newLength); in format()
319 GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format()
335 int newLength = GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, NULL, 0); in format() local
337 buffer = NEW_ARRAY(UChar, newLength); in format()
339 GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, buffer, newLength); in format()
/external/icu/icu4c/source/tools/toolutil/
Ddenseranges.cpp50 void truncate(int32_t newLength) { in truncate() argument
51 if(newLength<length) { in truncate()
52 length=newLength; in truncate()
/external/skia/src/core/
DSkAdvancedTypefaceMetrics.cpp112 int newLength; in finishRange() local
114 newLength = range->fEndId - range->fStartId + 1; in finishRange()
120 newLength = 1; in finishRange()
122 SkASSERT(range->fAdvance.count() >= newLength); in finishRange()
123 range->fAdvance.setCount(newLength); in finishRange()
/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/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()
/external/webrtc/src/modules/interface/
Dmodule_common_types.h448 WebRtc_Word32 SetLength(const WebRtc_UWord32 newLength);
453 WebRtc_UWord32& newLength,
586 VideoFrame::SetLength(const WebRtc_UWord32 newLength) in SetLength() argument
588 if (newLength >_bufferSize ) in SetLength()
592 _bufferLength = newLength; in SetLength()
620 VideoFrame::Swap(WebRtc_UWord8*& newMemory, WebRtc_UWord32& newLength, WebRtc_UWord32& newSize) in Swap() argument
626 _bufferLength = newLength; in Swap()
629 newLength = tmpLength; in Swap()
/external/guava/guava/src/com/google/common/collect/
DObjectArrays.java111 static <T> T[] arraysCopyOf(T[] original, int newLength) { in arraysCopyOf() argument
112 T[] copy = newArray(original, newLength); in arraysCopyOf()
114 original, 0, copy, 0, Math.min(original.length, newLength)); in arraysCopyOf()

12