/external/icu/icu4c/source/common/ |
unistr_props.cpp | 37 int32_t oldLength = this->length(); 38 int32_t i = oldLength, length; local 42 length = i; 51 if(length < oldLength) { 52 setLength(length); 60 if(i >= length) { 63 U16_NEXT(array, i, length, c);
|
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 25 return std::char_traits<char16_t>::length(u"") == 0 26 && std::char_traits<char16_t>::length(u"abcd") == 4; 34 assert(std::char_traits<char16_t>::length(u"") == 0); 35 assert(std::char_traits<char16_t>::length(u"a") == 1); 36 assert(std::char_traits<char16_t>::length(u"aa") == 2); 37 assert(std::char_traits<char16_t>::length(u"aaa") == 3); 38 assert(std::char_traits<char16_t>::length(u"aaaa") == 4);
|
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 25 return std::char_traits<char32_t>::length(U"") == 0 26 && std::char_traits<char32_t>::length(U"abcd") == 4; 34 assert(std::char_traits<char32_t>::length(U"") == 0); 35 assert(std::char_traits<char32_t>::length(U"a") == 1); 36 assert(std::char_traits<char32_t>::length(U"aa") == 2); 37 assert(std::char_traits<char32_t>::length(U"aaa") == 3); 38 assert(std::char_traits<char32_t>::length(U"aaaa") == 4);
|
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 25 return std::char_traits<wchar_t>::length(L"") == 0 26 && std::char_traits<wchar_t>::length(L"abcd") == 4; 32 assert(std::char_traits<wchar_t>::length(L"") == 0); 33 assert(std::char_traits<wchar_t>::length(L"a") == 1); 34 assert(std::char_traits<wchar_t>::length(L"aa") == 2); 35 assert(std::char_traits<wchar_t>::length(L"aaa") == 3); 36 assert(std::char_traits<wchar_t>::length(L"aaaa") == 4);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 25 return std::char_traits<char16_t>::length(u"") == 0 26 && std::char_traits<char16_t>::length(u"abcd") == 4; 34 assert(std::char_traits<char16_t>::length(u"") == 0); 35 assert(std::char_traits<char16_t>::length(u"a") == 1); 36 assert(std::char_traits<char16_t>::length(u"aa") == 2); 37 assert(std::char_traits<char16_t>::length(u"aaa") == 3); 38 assert(std::char_traits<char16_t>::length(u"aaaa") == 4);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 25 return std::char_traits<char32_t>::length(U"") == 0 26 && std::char_traits<char32_t>::length(U"abcd") == 4; 34 assert(std::char_traits<char32_t>::length(U"") == 0); 35 assert(std::char_traits<char32_t>::length(U"a") == 1); 36 assert(std::char_traits<char32_t>::length(U"aa") == 2); 37 assert(std::char_traits<char32_t>::length(U"aaa") == 3); 38 assert(std::char_traits<char32_t>::length(U"aaaa") == 4);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 25 return std::char_traits<wchar_t>::length(L"") == 0 26 && std::char_traits<wchar_t>::length(L"abcd") == 4; 32 assert(std::char_traits<wchar_t>::length(L"") == 0); 33 assert(std::char_traits<wchar_t>::length(L"a") == 1); 34 assert(std::char_traits<wchar_t>::length(L"aa") == 2); 35 assert(std::char_traits<wchar_t>::length(L"aaa") == 3); 36 assert(std::char_traits<wchar_t>::length(L"aaaa") == 4);
|
/frameworks/base/obex/javax/obex/ |
ObexPacket.java | 28 private ObexPacket(int headerId, int length) { 30 mLength = length; 52 // Read the 2 byte length field from the stream 53 int length = is.read(); local 54 length = (length << 8) + is.read(); 56 ObexPacket newPacket = new ObexPacket(headerId, length); 60 if (length > 3) { 62 temp = new byte[length - 3]; 64 while (bytesReceived != temp.length) { [all...] |
/external/puffin/src/ |
puff_reader.cc | 25 size_t length = 0; local 30 if (puff_buf_in_[index_] & 0x80) { // Reading length/distance. 32 length = puff_buf_in_[index_] & 0x7F; 38 length = puff_buf_in_[index_] + 127; 40 length += 3; 41 TEST_AND_RETURN_FALSE(length <= 259); 45 // End of block. End of block is similar to length/distance but without 46 // distance value and length value set to 259. 47 if (length == 259) { 66 pd.length = length [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
ReprocessFormatsMap.java | 51 * The inner array always contains {@code [format, length, ...]} where ... has length elements. 64 * (missing output format length or too few output formats) 77 int left = entry.length; 78 for (int i = 0; i < entry.length; ) { 86 String.format("Input %x had no output format length listed", inputFormat)); 89 final int length = entry[i]; local 93 for (int j = 0; j < length; ++j) { 98 if (length > 0) { 99 if (left < length) { 144 final int length = mEntry[i]; local 192 final int length = mEntry[i]; local [all...] |
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/ |
loc_eng_nmea.cpp | 47 Total length of the nmea sentence 53 void loc_eng_nmea_send(char *pNmea, int length, loc_eng_data_s_type *loc_eng_data_p) 59 loc_eng_data_p->nmea_cb(now, pNmea, length); 73 Total length of the nmea sentence 82 int length = 0; local 88 length++; 91 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); 92 return (length + checksumLength); 127 int length = 0; local 160 length = snprintf(pMarker, lengthRemaining, "$GPGSA,A,%c,", fixType) 609 int length = 0; local [all...] |
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/ |
loc_eng_nmea.cpp | 47 Total length of the nmea sentence 53 void loc_eng_nmea_send(char *pNmea, int length, loc_eng_data_s_type *loc_eng_data_p) 59 loc_eng_data_p->nmea_cb(now, pNmea, length); 73 Total length of the nmea sentence 82 int length = 0; local 88 length++; 91 // length now contains nmea sentence string length not including $ sign. 92 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); 94 // total length of nmea sentence is length of nmea sentence inc $ sign plu 131 int length = 0; local 614 int length = 0; local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/ |
OAEPEncoding.java | 66 hash.update(encodingParams, 0, encodingParams.length); 103 return baseBlockSize - 1 - 2 * defHash.length; 121 return baseBlockSize - 1 - 2 * defHash.length; 152 byte[] block = new byte[getInputBlockSize() + 1 + 2 * defHash.length]; 157 System.arraycopy(in, inOff, block, block.length - inLen, inLen); 162 block[block.length - inLen - 1] = 0x01; 171 System.arraycopy(defHash, 0, block, defHash.length, defHash.length); 176 byte[] seed = new byte[defHash.length]; 183 byte[] mask = maskGeneratorFunction1(seed, 0, seed.length, block.length - defHash.length) [all...] |
/external/tagsoup/src/org/ccil/cowan/tagsoup/ |
ScanHandler.java | 29 public void adup(char[] buff, int offset, int length) throws SAXException; 35 public void aname(char[] buff, int offset, int length) throws SAXException; 41 public void aval(char[] buff, int offset, int length) throws SAXException; 46 public void cdsect(char[] buff, int offset, int length) throws SAXException; 52 public void decl(char[] buff, int offset, int length) throws SAXException; 58 public void entity(char[] buff, int offset, int length) throws SAXException; 64 public void eof(char[] buff, int offset, int length) throws SAXException; 70 public void etag(char[] buff, int offset, int length) throws SAXException; 76 public void gi(char[] buff, int offset, int length) throws SAXException; 82 public void pcdata(char[] buff, int offset, int length) throws SAXException [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
BytesTrieBuilder.java | 34 public BytesAsCharSequence(byte[] sequence, int length) { 36 len=length; 39 public int length() { return len; } method in class:BytesTrieBuilder.BytesAsCharSequence 49 * Bytes 0..length-1 will be copied; the builder does not keep 52 * @param length The length of the byte sequence. 56 public BytesTrieBuilder add(byte[] sequence, int length, int value) { 57 addImpl(new BytesAsCharSequence(sequence, length), value); 77 return new BytesTrie(bytes, bytes.length-bytesLength); 100 return ByteBuffer.wrap(bytes, bytes.length-bytesLength, bytesLength) 223 int length=1; local 278 int length; local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
BytesTrieBuilder.java | 34 public BytesAsCharSequence(byte[] sequence, int length) { 36 len=length; 39 public int length() { return len; } method in class:BytesTrieBuilder.BytesAsCharSequence 49 * Bytes 0..length-1 will be copied; the builder does not keep 52 * @param length The length of the byte sequence. 57 public BytesTrieBuilder add(byte[] sequence, int length, int value) { 58 addImpl(new BytesAsCharSequence(sequence, length), value); 79 return new BytesTrie(bytes, bytes.length-bytesLength); 103 return ByteBuffer.wrap(bytes, bytes.length-bytesLength, bytesLength) 227 int length=1; local 282 int length; local [all...] |
/external/proguard/src/proguard/gui/ |
FilterBuilder.java | 58 return positive.length() <= negative.length() ? 80 for (int index = 0; index < checkBoxes.length; index++) 102 if (positive.length() > 0) 107 if (prefix.length() == 0 || 108 prefix.charAt(prefix.length()-1) == separator) 120 if (negative.length() > 0) 125 if (prefix.length() == 0 || 126 prefix.charAt(prefix.length()-1) == separator) 141 for (int index = 0; index < checkBoxes.length; index++ [all...] |
/libcore/luni/src/main/java/libcore/internal/ |
StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { 29 if (s.length() != length) { 32 for (int i = 0; i < length; i++) { 41 * Returns a string equal to {@code new String(array, start, length)}. 43 public String get(char[] array, int start, int length) { 46 for (int i = start; i < start + length; i++) { 53 int index = hashCode & (pool.length - 1); 56 if (pooled != null && contentEquals(pooled, array, start, length)) { 60 String result = new String(array, start, length); [all...] |
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/ |
Utils.java | 35 if (0 == arrays.length) return new int[] {}; 36 if (1 == arrays.length) return arrays[0]; 39 int totalSize = Arrays.stream(arrays).mapToInt((int[] array) -> array.length).sum(); 41 int usedSize = arrays[0].length; 42 for (int i = 1; i < arrays.length; ++i) { 44 int length = array.length; local 45 System.arraycopy(array, 0, newArray, usedSize, length); 46 usedSize += length;
|
/toolchain/binutils/binutils-2.27/gold/ |
ftruncate.c | 36 ftruncate (int fd, off_t length) 38 return fcntl (fd, F_CHSIZE, length); 50 ftruncate (int fd, off_t length) 58 if (filebuf.st_size < length) 60 /* Extend file length. */ 61 if (lseek (fd, (length - 1), SEEK_SET) < 0) 71 /* Truncate length. */ 75 fl.l_start = length; 93 ftruncate (int fd, off_t length) 95 return chsize (fd, length); [all...] |
/bionic/libc/upstream-openbsd/lib/libc/string/ |
memmove.c | 49 memmove(void *dst0, const void *src0, size_t length) 55 if (length == 0 || dst == src) /* nothing to do */ 74 if ((t ^ (long)dst) & wmask || length < wsize) 75 t = length; 78 length -= t; 84 t = length / wsize; 86 t = length & wmask; 94 src += length; 95 dst += length; 98 if ((t ^ (long)dst) & wmask || length <= wsize [all...] |
/frameworks/base/telephony/java/android/telephony/ |
JapanesePhoneNumberFormatter.java | 162 int length = text.length(); local 163 if (length > 3 166 } else if (length < 1 || text.charAt(0) != '0') { 170 CharSequence saved = text.subSequence(0, length); 174 while (i < text.length()) { 182 length = text.length(); 187 while (i < length) { 190 text.replace(0, length, saved) [all...] |
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/ |
loc_eng_nmea.cpp | 48 Total length of the nmea sentence 54 void loc_eng_nmea_send(char *pNmea, int length, loc_eng_data_s_type *loc_eng_data_p) 59 loc_eng_data_p->nmea_cb(now, pNmea, length); 73 Total length of the nmea sentence 82 int length = 0; local 88 length++; 91 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); 92 return (length + checksumLength); 121 int length = 0; local 157 length = snprintf(pMarker, lengthRemaining, "$GPGSA,A,%c,", fixType) 606 int length = 0; local [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
Exif.java | 30 int length = 0; local 33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { 51 // Get the length and check if it is reasonable. 52 length = pack(jpeg, offset, 2, false); 53 if (length < 2 || offset + length > jpeg.length) { 54 Log.e(TAG, "Invalid length"); 59 if (marker == 0xE1 && length >= 8 && 63 length -= 8 [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
BitArray.java | 41 private int length; field in class:BitArray 56 public BitArray(int length) throws IllegalArgumentException { 57 if (length < 0) { 58 throw new IllegalArgumentException("Negative length for BitArray"); 61 this.length = length; 63 repn = new byte[(length + BITS_PER_UNIT - 1)/BITS_PER_UNIT]; 72 * 8*a.length <= length. 74 public BitArray(int length, byte[] a) throws IllegalArgumentException 156 public int length() { method in class:BitArray [all...] |