/external/guava/guava-tests/test/com/google/common/jdk5backport/ |
Arrays.java | 9 public static byte[] copyOf(byte[] original, int newLength) { 10 return copyOfRange(original, 0, newLength); 14 int newLength = to - from; 15 if (newLength >= 0) { 16 byte[] copy = new byte[newLength]; 17 System.arraycopy(original, from, copy, 0, Math.min(original.length - from, newLength));
|
/external/proguard/src/proguard/classfile/editor/ |
ConstantPoolSorter.java | 78 int newLength = 1; 89 newIndex = newLength; 94 newConstantPool[newLength++] = constant; 101 newConstantPool[newLength++] = null; 112 System.arraycopy(newConstantPool, 0, programClass.constantPool, 0, newLength); 115 Arrays.fill(programClass.constantPool, newLength, constantPoolCount, null); 117 programClass.u2constantPoolCount = newLength;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
Arrays.java | 605 public static byte[] copyOf(byte[] data, int newLength) 607 byte[] tmp = new byte[newLength]; 609 if (newLength < data.length) 611 System.arraycopy(data, 0, tmp, 0, newLength); 621 public static char[] copyOf(char[] data, int newLength) 623 char[] tmp = new char[newLength]; 625 if (newLength < data.length) 627 System.arraycopy(data, 0, tmp, 0, newLength); 637 public static int[] copyOf(int[] data, int newLength) 639 int[] tmp = new int[newLength]; [all...] |
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
ResizableIntArray.java | 86 public void setLength(final int newLength) { 87 ensureCapacity(newLength); 88 mLength = newLength; 123 final int newLength = currentLength + length; 124 ensureCapacity(newLength); 126 mLength = newLength;
|
/external/icu/icu4c/source/common/ |
charstr.cpp | 30 CharString &CharString::truncate(int32_t newLength) { 31 if(newLength<0) { 32 newLength=0; 34 if(newLength<len) { 35 buffer[len=newLength]=0;
|
unistr_case.cpp | 126 int32_t newLength; 129 newLength = stringCaseMapper(csm, getArrayStart(), getCapacity(), 131 setLength(newLength); 132 } while(errorCode==U_BUFFER_OVERFLOW_ERROR && cloneArrayIfNeeded(newLength, newLength, FALSE));
|
ucharstriebuilder.cpp | 349 int32_t newLength=ucharsLength+1; 350 if(ensureCapacity(newLength)) { 351 ucharsLength=newLength; 359 int32_t newLength=ucharsLength+length; 360 if(ensureCapacity(newLength)) { 361 ucharsLength=newLength;
|
bytestriebuilder.cpp | 401 int32_t newLength=bytesLength+1; 402 if(ensureCapacity(newLength)) { 403 bytesLength=newLength; 411 int32_t newLength=bytesLength+length; 412 if(ensureCapacity(newLength)) { 413 bytesLength=newLength;
|
/external/icu/icu4c/source/i18n/ |
winnmfmt.cpp | 264 int newLength; 267 newLength = _vscwprintf(fmt, args); 270 nBuffer = NEW_ARRAY(UChar, newLength + 1); 273 result = _vsnwprintf(nBuffer, newLength + 1, fmt, args); 315 int newLength = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, NULL, 0); 317 buffer = NEW_ARRAY(UChar, newLength); 319 GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, newLength); 335 int newLength = GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, NULL, 0); 337 buffer = NEW_ARRAY(UChar, newLength); 339 GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, buffer, newLength); [all...] |
windtfmt.cpp | 246 int newLength = GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, NULL, 0); 248 buffer = NEW_ARRAY(UChar, newLength); 249 GetDateFormatW(fLCID, dfFlags[fDateStyle - kDateOffset], st, NULL, buffer, newLength); 272 int newLength = GetTimeFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, NULL, 0); 274 buffer = NEW_ARRAY(UChar, newLength); 275 GetDateFormatW(fLCID, tfFlags[fTimeStyle], st, NULL, buffer, newLength);
|
sortkey.cpp | 112 void CollationKey::setLength(int32_t newLength) { 113 // U_ASSERT(newLength >= 0 && newLength <= getCapacity()); 114 fFlagAndLength = (fFlagAndLength & 0x80000000) | newLength;
|
/external/icu/icu4c/source/test/intltest/ |
winnmtst.cpp | 151 int newLength; 154 newLength = _vscwprintf(fmt, args); 157 nBuffer = NEW_ARRAY(UChar, newLength + 1); 160 result = _vsnwprintf(nBuffer, newLength + 1, fmt, args); 193 int newLength = GetCurrencyFormatW(lcid, 0, nBuffer, NULL, NULL, 0); 195 buffer = NEW_ARRAY(UChar, newLength); 197 GetCurrencyFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); 207 int newLength = GetNumberFormatW(lcid, 0, nBuffer, NULL, NULL, 0); 209 buffer = NEW_ARRAY(UChar, newLength); 211 GetNumberFormatW(lcid, 0, nBuffer, NULL, buffer, newLength); [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
BytesTrieBuilder.java | 179 int newLength=bytesLength+1; 180 ensureCapacity(newLength); 181 bytesLength=newLength; 193 int newLength=bytesLength+length; 194 ensureCapacity(newLength); 195 bytesLength=newLength; 204 int newLength=bytesLength+length; 205 ensureCapacity(newLength); 206 bytesLength=newLength;
|
CharsTrieBuilder.java | 157 int newLength=charsLength+1; 158 ensureCapacity(newLength); 159 charsLength=newLength; 171 int newLength=charsLength+length; 172 ensureCapacity(newLength); 173 charsLength=newLength; 182 int newLength=charsLength+length; 183 ensureCapacity(newLength); 184 charsLength=newLength;
|
/external/proguard/src/proguard/evaluation/value/ |
InstructionOffsetValue.java | 160 int newLength = thisValues.length; 165 newLength++; 171 if (newLength == otherValues.length) 180 if (newLength == this.values.length && 189 int[] newValues = new int[newLength]; 192 if (newLength == thisValues.length + otherValues.length)
|
/libcore/luni/src/main/java/java/util/ |
Arrays.java | [all...] |
/frameworks/av/media/mtp/ |
MtpPacket.cpp | 57 int newLength = length + mAllocationIncrement; 58 mBuffer = (uint8_t *)realloc(mBuffer, newLength); 63 mBufferSize = newLength;
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ddk/ |
ntstrsafe.h | 138 OUT PSIZE_T NewLength OPTIONAL, 170 if (NewLength) *NewLength = LocalNewLength; 179 OUT PSIZE_T NewLength OPTIONAL, 205 if (NewLength) *NewLength = LocalNewLength;
|
/external/smali/util/src/main/java/org/jf/util/ |
StringWrapper.java | 92 private static String[] addString(@Nonnull String[] arr, String str, int index, int newLength) { 94 arr = enlargeArray(arr, newLength); 101 private static String[] enlargeArray(String[] arr, int newLength) { 102 String[] newArr = new String[newLength];
|
/external/v8/src/ |
typedarray.js | 54 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);
|
/libcore/luni/src/test/java/com/android/org/bouncycastle/crypto/digests/ |
DigestTest.java | 74 int newLength = newDigest.doFinal(newHash, 0); 79 assertEquals("Hash sizes must be equal", oldLength, newLength);
|
/external/icu/icu4c/source/tools/toolutil/ |
denseranges.cpp | 50 void truncate(int32_t newLength) { 51 if(newLength<length) { 52 length=newLength;
|
/external/skia/src/core/ |
SkAdvancedTypefaceMetrics.cpp | 112 int newLength; 114 newLength = range->fEndId - range->fStartId + 1; 120 newLength = 1; 122 SkASSERT(range->fAdvance.count() >= newLength); 123 range->fAdvance.setCount(newLength);
|
/external/webrtc/src/modules/interface/ |
module_common_types.h | 448 WebRtc_Word32 SetLength(const WebRtc_UWord32 newLength); 453 WebRtc_UWord32& newLength, 460 * Copy buffer: If newLength is bigger than allocated size, a new buffer of size length 465 * Copy buffer: If newLength is bigger than allocated size, a new buffer of size length 586 VideoFrame::SetLength(const WebRtc_UWord32 newLength) 588 if (newLength >_bufferSize ) 592 _bufferLength = newLength; 620 VideoFrame::Swap(WebRtc_UWord8*& newMemory, WebRtc_UWord32& newLength, WebRtc_UWord32& newSize) 626 _bufferLength = newLength; 629 newLength = tmpLength [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
ObjectArrays.java | 82 static <T> T[] arraysCopyOf(T[] original, int newLength) { 83 T[] copy = newArray(original, newLength); 85 original, 0, copy, 0, Math.min(original.length, newLength));
|