/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | Arrays.java | 662 public static byte[] copyOf(byte[] data, int newLength) in copyOf() argument 664 byte[] tmp = new byte[newLength]; in copyOf() 666 if (newLength < data.length) in copyOf() 668 System.arraycopy(data, 0, tmp, 0, newLength); in copyOf() 678 public static char[] copyOf(char[] data, int newLength) in copyOf() argument 680 char[] tmp = new char[newLength]; in copyOf() 682 if (newLength < data.length) in copyOf() 684 System.arraycopy(data, 0, tmp, 0, newLength); in copyOf() 694 public static int[] copyOf(int[] data, int newLength) in copyOf() argument 696 int[] tmp = new int[newLength]; in copyOf() [all …]
|
/external/proguard/src/proguard/classfile/editor/ |
D | ConstantPoolSorter.java | 78 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/ |
D | CharsTrieBuilder.java | 157 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()
|
D | BytesTrieBuilder.java | 179 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/icu/android_icu4j/src/main/java/android/icu/util/ |
D | CharsTrieBuilder.java | 153 int newLength=charsLength+1; in write() local 154 ensureCapacity(newLength); in write() 155 charsLength=newLength; in write() 167 int newLength=charsLength+length; in write() local 168 ensureCapacity(newLength); in write() 169 charsLength=newLength; in write() 178 int newLength=charsLength+length; in write() local 179 ensureCapacity(newLength); in write() 180 charsLength=newLength; in write()
|
D | BytesTrieBuilder.java | 175 int newLength=bytesLength+1; in write() local 176 ensureCapacity(newLength); in write() 177 bytesLength=newLength; in write() 189 int newLength=bytesLength+length; in write() local 190 ensureCapacity(newLength); in write() 191 bytesLength=newLength; in write() 200 int newLength=bytesLength+length; in write() local 201 ensureCapacity(newLength); in write() 202 bytesLength=newLength; in write()
|
/external/proguard/src/proguard/evaluation/value/ |
D | InstructionOffsetValue.java | 160 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/ |
D | unistr_case.cpp | 126 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()
|
D | charstr.cpp | 40 CharString &CharString::truncate(int32_t newLength) { in truncate() argument 41 if(newLength<0) { in truncate() 42 newLength=0; in truncate() 44 if(newLength<len) { in truncate() 45 buffer[len=newLength]=0; in truncate()
|
D | unistr.cpp | 1140 int32_t newLength) in findAndReplace() argument 1148 newText.pinIndices(newStart, newLength); in findAndReplace() 1161 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace() 1163 start = pos + newLength; in findAndReplace() 1430 int32_t newLength = oldLength - length + srcLength; in doReplace() local 1436 if((fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZE)) { in doReplace() 1447 if(!cloneArrayIfNeeded(newLength, newLength + (newLength >> 2) + kGrowSize, in doReplace() 1472 setLength(newLength); in doReplace() 1511 int32_t newLength = oldLength + srcLength; in doAppend() local 1513 if((newLength <= getCapacity() && isBufferWritable()) || in doAppend() [all …]
|
D | ucharstriebuilder.cpp | 349 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()
|
D | bytestriebuilder.cpp | 401 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/ |
D | StringWrapper.java | 92 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/ |
D | winnmtst.cpp | 193 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/ |
D | RecyclableBufferedInputStream.java | 147 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/ |
D | winnmfmt.cpp | 315 … 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()
|
D | windtfmt.cpp | 246 … 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()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | denseranges.cpp | 50 void truncate(int32_t newLength) { in truncate() argument 51 if(newLength<length) { in truncate() 52 length=newLength; in truncate()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
D | OpenIntToDoubleHashMap.java | 442 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()
|
D | OpenIntToFieldHashMap.java | 454 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/skia/src/core/ |
D | SkAdvancedTypefaceMetrics.cpp | 112 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/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/ |
D | SourceNodeImpl.java | 63 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/proguard/src/proguard/optimize/evaluation/ |
D | EvaluationSimplifier.java | 1113 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/ |
D | ObjectArrays.java | 82 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/guava/guava/src/com/google/common/collect/ |
D | ObjectArrays.java | 111 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()
|