/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/ |
D | Arrays.java | 676 public static boolean[] copyOf(boolean[] original, int newLength) in copyOf() argument 678 boolean[] copy = new boolean[newLength]; in copyOf() 679 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); in copyOf() 683 public static byte[] copyOf(byte[] original, int newLength) in copyOf() argument 685 byte[] copy = new byte[newLength]; in copyOf() 686 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); in copyOf() 690 public static char[] copyOf(char[] original, int newLength) in copyOf() argument 692 char[] copy = new char[newLength]; in copyOf() 693 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); in copyOf() 697 public static int[] copyOf(int[] original, int newLength) in copyOf() argument [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/ |
D | Arrays.java | 676 public static boolean[] copyOf(boolean[] original, int newLength) in copyOf() argument 678 boolean[] copy = new boolean[newLength]; in copyOf() 679 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); in copyOf() 683 public static byte[] copyOf(byte[] original, int newLength) in copyOf() argument 685 byte[] copy = new byte[newLength]; in copyOf() 686 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); in copyOf() 690 public static char[] copyOf(char[] original, int newLength) in copyOf() argument 692 char[] copy = new char[newLength]; in copyOf() 693 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); in copyOf() 697 public static int[] copyOf(int[] original, int newLength) in copyOf() argument [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | Arrays.java | 674 public static boolean[] copyOf(boolean[] original, int newLength) in copyOf() argument 676 boolean[] copy = new boolean[newLength]; in copyOf() 677 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); in copyOf() 681 public static byte[] copyOf(byte[] original, int newLength) in copyOf() argument 683 byte[] copy = new byte[newLength]; in copyOf() 684 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); in copyOf() 688 public static char[] copyOf(char[] original, int newLength) in copyOf() argument 690 char[] copy = new char[newLength]; in copyOf() 691 System.arraycopy(original, 0, copy, 0, Math.min(original.length, newLength)); in copyOf() 695 public static int[] copyOf(int[] original, int newLength) in copyOf() argument [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 | 142 void Edits::addReplace(int32_t oldLength, int32_t newLength) { in addReplace() argument 144 if(oldLength < 0 || newLength < 0) { in addReplace() 148 if (oldLength == 0 && newLength == 0) { in addReplace() 152 int32_t newDelta = newLength - oldLength; in addReplace() 164 newLength <= MAX_SHORT_CHANGE_NEW_LENGTH) { in addReplace() 166 int32_t u = (oldLength << 12) | (newLength << 9); in addReplace() 179 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 181 head |= newLength; in addReplace() 195 if(newLength < LENGTH_IN_1TRAIL) { in addReplace() 196 head |= newLength; in addReplace() [all …]
|
D | unistr.cpp | 357 int32_t getGrowCapacity(int32_t newLength) { in getGrowCapacity() argument 358 int32_t growSize = (newLength >> 2) + kGrowSize; in getGrowCapacity() 359 if(growSize <= (kMaxCapacity - newLength)) { in getGrowCapacity() 360 return newLength + growSize; in getGrowCapacity() 1168 int32_t newLength) in findAndReplace() argument 1176 newText.pinIndices(newStart, newLength); in findAndReplace() 1189 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace() 1191 start = pos + newLength; in findAndReplace() 1465 int32_t newLength = oldLength - length; in doReplace() local 1466 if(srcLength > (INT32_MAX - newLength)) { in doReplace() [all …]
|
D | charstr.cpp | 92 CharString &CharString::truncate(int32_t newLength) { in truncate() argument 93 if(newLength<0) { in truncate() 94 newLength=0; in truncate() 96 if(newLength<len) { in truncate() 97 buffer[len=newLength]=0; in truncate()
|
/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/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/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/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/text/ |
D | Edits.java | 144 public void addReplace(int oldLength, int newLength) { in addReplace() argument 145 if(oldLength < 0 || newLength < 0) { in addReplace() 147 "addReplace(" + oldLength + ", " + newLength + in addReplace() 150 if (oldLength == 0 && newLength == 0) { in addReplace() 154 int newDelta = newLength - oldLength; in addReplace() 165 newLength <= MAX_SHORT_CHANGE_NEW_LENGTH) { in addReplace() 167 int u = (oldLength << 12) | (newLength << 9); in addReplace() 180 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 182 head |= newLength; in addReplace() 196 if(newLength < LENGTH_IN_1TRAIL) { in addReplace() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | Edits.java | 138 public void addReplace(int oldLength, int newLength) { in addReplace() argument 139 if(oldLength < 0 || newLength < 0) { in addReplace() 141 "addReplace(" + oldLength + ", " + newLength + in addReplace() 144 if (oldLength == 0 && newLength == 0) { in addReplace() 148 int newDelta = newLength - oldLength; in addReplace() 159 newLength <= MAX_SHORT_CHANGE_NEW_LENGTH) { in addReplace() 161 int u = (oldLength << 12) | (newLength << 9); in addReplace() 174 if (oldLength < LENGTH_IN_1TRAIL && newLength < LENGTH_IN_1TRAIL) { in addReplace() 176 head |= newLength; in addReplace() 190 if(newLength < LENGTH_IN_1TRAIL) { in addReplace() [all …]
|
/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/llvm-project/flang/lib/Evaluate/ |
D | fold-character.cpp | 82 auto newLength{folded->second.ToInt64()}; in FoldOperation() local 83 if (newLength < oldLength) { in FoldOperation() 84 folded->first.erase(newLength); in FoldOperation() 86 folded->first.append(newLength - oldLength, ' '); in FoldOperation() 88 CHECK(static_cast<ConstantSubscript>(folded->first.size()) == newLength); in FoldOperation()
|
D | character.h | 87 static Character Resize(const Character &str, std::size_t newLength) { in Resize() argument 89 if (newLength > oldLength) { in Resize() 90 return str + Character(newLength - oldLength, Space()); in Resize() 92 return str.substr(0, newLength); in Resize()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | SeekableInMemoryByteChannel.java | 168 private void resize(int newLength) { in resize() argument 173 if (newLength < NAIVE_RESIZE_LIMIT) { in resize() 174 while (len < newLength) { in resize() 178 len = newLength; in resize()
|
/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/dexlib2/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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 829 private int oldLength, newLength; field in UCharacterCaseTest.EditChange 830 EditChange(boolean change, int oldLength, int newLength) { in EditChange() argument 833 this.newLength = newLength; in EditChange() 839 return "" + ei.oldLength() + "->" + ei.newLength(); in printOneEdit() 841 return "" + ei.oldLength() + "=" + ei.newLength(); in printOneEdit() 859 int prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest() 886 int prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc() 935 assertEquals(msg, expect.newLength, ei1.newLength()); in checkEditsIter() 945 assertEquals(msg, expect.newLength, ei2.newLength()); in checkEditsIter() 957 if (expect.newLength > 0) { in checkEditsIter() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | UCharacterCaseTest.java | 832 private int oldLength, newLength; field in UCharacterCaseTest.EditChange 833 EditChange(boolean change, int oldLength, int newLength) { in EditChange() argument 836 this.newLength = newLength; in EditChange() 842 return "" + ei.oldLength() + "->" + ei.newLength(); in printOneEdit() 844 return "" + ei.oldLength() + "=" + ei.newLength(); in printOneEdit() 862 int prevDestIndex = destIndex - expected[i].newLength; in srcIndexFromDest() 889 int prevDestIndex = destIndex - expected[i].newLength; in destIndexFromSrc() 938 assertEquals(msg, expect.newLength, ei1.newLength()); in checkEditsIter() 948 assertEquals(msg, expect.newLength, ei2.newLength()); in checkEditsIter() 960 if (expect.newLength > 0) { in checkEditsIter() [all …]
|