/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | Arrays.java | 730 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/oj-libjdwp/src/share/npt/ |
D | utf.c | 147 int newLength; in utf8sToUtf8mLength() local 150 newLength = 0; in utf8sToUtf8mLength() 156 newLength++; in utf8sToUtf8mLength() 158 newLength++; /* We gain one byte in length on NULL bytes */ in utf8sToUtf8mLength() 166 newLength += 2; in utf8sToUtf8mLength() 174 newLength += 3; in utf8sToUtf8mLength() 183 newLength += 6; /* 4byte encoding turns into 2 3byte ones */ in utf8sToUtf8mLength() 193 return newLength; in utf8sToUtf8mLength() 203 utf8sToUtf8m(struct UtfInst *ui, jbyte *string, int length, jbyte *newString, int newLength) in utf8sToUtf8m() argument 255 UTF_ASSERT(j==newLength); in utf8sToUtf8m() [all …]
|
/external/icu/icu4c/source/common/ |
D | unistr_case.cpp | 104 int32_t newLength; in caseMap() local 139 newLength = stringCaseMapper(caseLocale, options, UCASEMAP_BREAK_ITERATOR in caseMap() 143 setLength(newLength); in caseMap() 170 newLength = oldLength + edits.lengthDelta(); in caseMap() 171 if (newLength > oldLength && !cloneArrayIfNeeded(newLength, newLength)) { in caseMap() 176 replacementChars, ei.replacementIndex(), ei.newLength()); in caseMap() 184 newLength = oldLength + edits.lengthDelta(); in caseMap() 197 if (!cloneArrayIfNeeded(newLength, newLength, FALSE, &bufferToDelete, TRUE)) { in caseMap() 202 newLength = stringCaseMapper(caseLocale, options, UCASEMAP_BREAK_ITERATOR in caseMap() 209 setLength(newLength); in caseMap()
|
D | edits.cpp | 139 void Edits::addReplace(int32_t oldLength, int32_t newLength) { in addReplace() argument 141 if(oldLength < 0 || newLength < 0) { in addReplace() 145 if (oldLength == 0 && newLength == 0) { in addReplace() 149 int32_t newDelta = newLength - oldLength; in addReplace() 161 newLength <= MAX_SHORT_CHANGE_NEW_LENGTH) { in addReplace() 163 int32_t u = (oldLength << 12) | (newLength << 9); in addReplace() 176 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 178 head |= newLength; in addReplace() 192 if(newLength < LENGTH_IN_1TRAIL) { in addReplace() 193 head |= newLength; in addReplace() [all …]
|
D | unistr.cpp | 358 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() 1461 int32_t newLength = oldLength - length; in doReplace() local 1462 if(srcLength > (INT32_MAX - newLength)) { in doReplace() [all …]
|
D | charstr.cpp | 43 CharString &CharString::truncate(int32_t newLength) { in truncate() argument 44 if(newLength<0) { in truncate() 45 newLength=0; in truncate() 47 if(newLength<len) { in truncate() 48 buffer[len=newLength]=0; in truncate()
|
/external/icu/icu4c/source/test/intltest/ |
D | testutil.cpp | 76 return UnicodeString() + ei.oldLength() + u"->" + ei.newLength(); in printOneEdit() 78 return UnicodeString() + ei.oldLength() + u"=" + ei.newLength(); in printOneEdit() 96 int32_t prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest() 123 int32_t prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc() 185 test.assertEquals(msg + u":" + __LINE__, expect.newLength, ei1.newLength()); in checkEditsIter() 195 test.assertEquals(msg + u":" + __LINE__, expect.newLength, ei2.newLength()); in checkEditsIter() 207 if (expect.newLength > 0) { in checkEditsIter() 211 test.assertEquals(msg + u":" + __LINE__, expect.newLength, ei2.newLength()); in checkEditsIter() 224 expDestIndex += expect.newLength; in checkEditsIter() 226 expReplIndex += expect.newLength; in checkEditsIter() [all …]
|
D | winnmtst.cpp | 198 int newLength = GetCurrencyFormatW(lcid, 0, nBuffer, NULL, NULL, 0); in getWindowsFormat() local 200 buffer = NEW_ARRAY(wchar_t, newLength); in getWindowsFormat() 202 GetCurrencyFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); in getWindowsFormat() 212 int newLength = GetNumberFormatW(lcid, 0, nBuffer, NULL, NULL, 0); in getWindowsFormat() local 214 buffer = NEW_ARRAY(wchar_t, newLength); in getWindowsFormat() 216 GetNumberFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); in getWindowsFormat()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | Edits.java | 105 public void addReplace(int oldLength, int newLength) { in addReplace() argument 106 if(oldLength < 0 || newLength < 0) { in addReplace() 108 "addReplace(" + oldLength + ", " + newLength + in addReplace() 111 if (oldLength == 0 && newLength == 0) { in addReplace() 115 int newDelta = newLength - oldLength; in addReplace() 126 newLength <= MAX_SHORT_CHANGE_NEW_LENGTH) { in addReplace() 128 int u = (oldLength << 12) | (newLength << 9); in addReplace() 141 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 143 head |= newLength; in addReplace() 157 if(newLength < LENGTH_IN_1TRAIL) { in addReplace() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | Edits.java | 102 public void addReplace(int oldLength, int newLength) { in addReplace() argument 103 if(oldLength < 0 || newLength < 0) { in addReplace() 105 "addReplace(" + oldLength + ", " + newLength + in addReplace() 108 if (oldLength == 0 && newLength == 0) { in addReplace() 112 int newDelta = newLength - oldLength; in addReplace() 123 newLength <= MAX_SHORT_CHANGE_NEW_LENGTH) { in addReplace() 125 int u = (oldLength << 12) | (newLength << 9); in addReplace() 138 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 140 head |= newLength; in addReplace() 154 if(newLength < LENGTH_IN_1TRAIL) { in addReplace() [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/android_icu4j/src/main/java/android/icu/util/ |
D | CharsTrieBuilder.java | 155 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()
|
D | BytesTrieBuilder.java | 177 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/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | CharsTrieBuilder.java | 159 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()
|
D | BytesTrieBuilder.java | 181 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/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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 776 private int oldLength, newLength; field in UCharacterCaseTest.EditChange 777 EditChange(boolean change, int oldLength, int newLength) { in EditChange() argument 780 this.newLength = newLength; in EditChange() 786 return "" + ei.oldLength() + "->" + ei.newLength(); in printOneEdit() 788 return "" + ei.oldLength() + "=" + ei.newLength(); in printOneEdit() 806 int prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest() 833 int prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc() 882 assertEquals(msg, expect.newLength, ei1.newLength()); in checkEditsIter() 892 assertEquals(msg, expect.newLength, ei2.newLength()); in checkEditsIter() 904 if (expect.newLength > 0) { in checkEditsIter() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 779 private int oldLength, newLength; field in UCharacterCaseTest.EditChange 780 EditChange(boolean change, int oldLength, int newLength) { in EditChange() argument 783 this.newLength = newLength; in EditChange() 789 return "" + ei.oldLength() + "->" + ei.newLength(); in printOneEdit() 791 return "" + ei.oldLength() + "=" + ei.newLength(); in printOneEdit() 809 int prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest() 836 int prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc() 885 assertEquals(msg, expect.newLength, ei1.newLength()); in checkEditsIter() 895 assertEquals(msg, expect.newLength, ei2.newLength()); in checkEditsIter() 907 if (expect.newLength > 0) { in checkEditsIter() [all …]
|
/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/smali/util/src/main/java/org/jf/util/ |
D | StringWrapper.java | 175 private static String[] addString(@Nonnull String[] arr, String str, int index, int newLength) { 177 arr = enlargeArray(arr, newLength); 184 private static String[] enlargeArray(String[] arr, int newLength) { 185 String[] newArr = new String[newLength];
|
/external/skia/src/pdf/ |
D | SkPDFMakeCIDGlyphWidthsArray.cpp | 95 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/skqp/src/pdf/ |
D | SkPDFMakeCIDGlyphWidthsArray.cpp | 95 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/i18n/ |
D | winnmfmt.cpp | 414 … int newLength = GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, NULL, 0); in format() local 416 buffer = NEW_ARRAY(wchar_t, newLength); in format() 418 … GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format() 434 … int newLength = GetNumberFormatEx(localeName, 0, nBuffer, &formatInfo.number, NULL, 0); in format() local 436 buffer = NEW_ARRAY(wchar_t, newLength); in format() 438 GetNumberFormatEx(localeName, 0, nBuffer, &formatInfo.number, buffer, newLength); in format()
|
D | windtfmt.cpp | 323 …int newLength = GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0, … in formatDate() local 325 buffer = NEW_ARRAY(wchar_t, newLength); in formatDate() 327 … GetDateFormatEx(localeName, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength, NULL); in formatDate() 356 int newLength = GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, NULL, 0); in formatTime() local 358 buffer = NEW_ARRAY(wchar_t, newLength); in formatTime() 360 GetTimeFormatEx(localeName, tfFlags[fTimeStyle], st, NULL, buffer, newLength); in formatTime()
|
/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()
|