/external/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/ |
wchar_t_length.pass.cpp | 14 // int length(stateT& state, const externT* from, const externT* from_end, size_t max) const; 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 9) == 9); 29 assert(f.length(mbs, from, from+10, 10) == 10); 30 assert(f.length(mbs, from, from+10, 11) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/ |
CharCache.java | 33 int available = cache.length - pos; 34 int toWrite = chars.length < available ? chars.length : available; 48 if (pos < cache.length - 1) { 54 public int length() {
|
/external/v8/src/objects/ |
literal-objects.cc | 26 DCHECK_EQ(0, (length() - (this->has_number_of_properties() ? 1 : 0)) % 2); 28 return length() / 2; 34 return Smi::cast(this->get(length() - 1))->value(); 47 set(length() - 1, *backing_store_size_obj); 51 return length() % 2 != 0;
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothInputStream.java | 68 * Reads at most {@code length} bytes from this stream and stores them in 74 * @param length the maximum number of bytes to store in {@code b}. 76 * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code length < 0}, or if {@code 77 * offset + length} is greater than the length of {@code b}. 81 public int read(byte[] b, int offset, int length) throws IOException { 85 if ((offset | length) < 0 || length > b.length - offset) { 86 throw new ArrayIndexOutOfBoundsException("invalid offset or length"); [all...] |
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
Chunk.java | 25 * The "offset" and "length" fields are present so handlers can over-allocate 35 public int offset, length; // position within "data" field in class:Chunk 45 public Chunk(int type, byte[] data, int offset, int length) { 49 this.length = length; 61 this.length = buf.position();
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/ |
char16_t_length.pass.cpp | 14 // int length(stateT& state, const externT* from, const externT* from_end, size_t max) const; 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 8) == 8); 29 assert(f.length(mbs, from, from+10, 9) == 9); 30 assert(f.length(mbs, from, from+10, 10) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char32_t_length.pass.cpp | 14 // int length(stateT& state, const externT* from, const externT* from_end, size_t max) const; 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 8) == 8); 29 assert(f.length(mbs, from, from+10, 9) == 9); 30 assert(f.length(mbs, from, from+10, 10) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
char_length.pass.cpp | 14 // int length(stateT& state, const externT* from, const externT* from_end, size_t max) const; 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 9) == 9); 29 assert(f.length(mbs, from, from+10, 10) == 10); 30 assert(f.length(mbs, from, from+10, 11) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
wchar_t_length.pass.cpp | 14 // int length(stateT& state, const externT* from, const externT* from_end, size_t max) const; 27 assert(f.length(mbs, from, from+10, 0) == 0); 28 assert(f.length(mbs, from, from+10, 9) == 9); 29 assert(f.length(mbs, from, from+10, 10) == 10); 30 assert(f.length(mbs, from, from+10, 11) == 10); 31 assert(f.length(mbs, from, from+10, 100) == 10);
|
/external/sfntly/cpp/src/sfntly/data/ |
growable_memory_byte_array.cc | 36 int32_t length) { 38 os->Write(&b_, offset, length); 39 return length; 52 int32_t length) { 53 if ((size_t)index + length >= b_.size()) { 56 b_.resize((size_t)(index + length + 1)); 58 std::copy(b + offset, b + offset + length, b_.begin() + index); 59 return length; 69 int32_t length) { 70 memcpy(b + offset, &(b_[0]) + index, length); [all...] |
/external/tcpdump/ |
print-null.c | 56 null_hdr_print(netdissect_options *ndo, u_int family, u_int length) 66 ND_PRINT((ndo, ", length %u: ", length)); 72 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 78 u_int length = h->len; local 101 null_hdr_print(ndo, family, length); 103 length -= NULL_HDRLEN; 110 ip_print(ndo, p, length); 116 ip6_print(ndo, p, length); 120 isoclns_print(ndo, p, length); [all...] |
/frameworks/base/wifi/java/android/net/wifi/aware/ |
TlvBufferUtils.java | 33 * Type/Length/Value format. The utilities accept a configuration of the size of 34 * the Type field and the Length field. A Type field size of 0 is allowed - 46 * Type/Length/Value. 48 * A constructor is created specifying the size of the Type (T) and Length 71 * Length (L) fields. 77 * @param lengthSize Number of bytes used for the Length (L) field. 98 mArrayLength = (array == null) ? 0 : array.length; 116 * Creates a TLV array (of the previously specified Type and Length sizes) from the input 117 * list. Allocates an array matching the contents (and required Type and Length 118 * fields), copies the contents, and set the Length fields. The Type field is set to 0 261 int length = 0; local 330 public int length; field in class:TlvBufferUtils.TlvElement 523 int length = 0; local [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
CharSequenceReader.java | 79 if (idx >= charSequence.length()) { 91 * @param length The maximum number of characters to read 95 public int read(char[] array, int offset, int length) { 96 if (idx >= charSequence.length()) { 102 if (length < 0 || (offset + length) > array.length) { 103 throw new IndexOutOfBoundsException("Array Size=" + array.length + 104 ", offset=" + offset + ", length=" + length); [all...] |
/bionic/libc/bionic/ |
c32rtomb.cpp | 66 // about the sequence length. 68 size_t length; local 71 length = 1; 74 length = 2; 77 length = 3; 80 length = 4; 88 // a special case because it contains the sequence length 90 for (size_t i = length - 1; i > 0; i--) { 96 return length;
|
/cts/tools/cfassembler/src/dxconvext/util/ |
FileUtils.java | 66 long longLength = file.length(); 67 int length = (int) longLength; local 68 if (length != longLength) { 72 byte[] result = new byte[length]; 77 while (length > 0) { 78 int amt = in.read(result, at, length); 83 length -= amt;
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
FileUtils.java | 66 long longLength = file.length(); 67 int length = (int) longLength; local 68 if (length != longLength) { 72 byte[] result = new byte[length]; 79 while (length > 0) { 80 int amt = in.read(result, at, length); 85 length -= amt;
|
/external/guava/guava/src/com/google/common/collect/ |
ObjectArrays.java | 42 * Returns a new array of the given length with the specified component type. 45 * @param length the length of the new array 49 public static <T> T[] newArray(Class<T> type, int length) { 50 return (T[]) Array.newInstance(type, length); 54 * Returns a new array of the given length with the same type as a reference 58 * @param length the length of the new array 60 public static <T> T[] newArray(T[] reference, int length) { 61 return Platform.newArray(reference, length); [all...] |
/external/icu/icu4c/source/common/ |
cstr.cpp | 24 int32_t length = in.extract(0, in.length(), static_cast<char *>(NULL), static_cast<uint32_t>(0)); local 26 char *buf = s.getAppendBuffer(length, length, resultCapacity, status); 28 in.extract(0, in.length(), buf, resultCapacity); 29 s.append(buf, length, status); 36 for (int i=0; i<in.length(); i = in.moveIndex32(i, 1)) {
|
/external/nist-sip/java/gov/nist/javax/sip/address/ |
RFC2396UrlDecoder.java | 52 StringBuffer translatedUri = new StringBuffer(uri.length()); 53 byte[] encodedchars = new byte[uri.length() / 3]; 55 int length = uri.length(); local 57 while (i < length) { 61 while (i < length && uri.charAt(i) == '%') { 62 if (i + 2 < length) {
|
/frameworks/base/core/java/android/database/ |
MergeCursor.java | 47 for (int i = 0; i < mCursors.length; i++) { 58 int length = mCursors.length; local 59 for (int i = 0 ; i < length ; i++) { 73 int length = mCursors.length; local 74 for (int i = 0 ; i < length; i++) { 161 int length = mCursors.length; local 162 for (int i = 0 ; i < length ; i++) 172 int length = mCursors.length; local 182 int length = mCursors.length; local 191 int length = mCursors.length; local 201 int length = mCursors.length; local 211 int length = mCursors.length; local 222 int length = mCursors.length; local [all...] |
/libcore/benchmarks/src/benchmarks/ |
StringIterationBenchmark.java | 27 for (int i = 0; i < s.length(); ++i) { 36 for (int i = 0, length = s.length(); i < length; ++i) { 46 for (int i = 0, length = chars.length; i < length; ++i) {
|
/system/bt/hci/src/ |
btsnoop_mem.cc | 34 size_t length = 0; local 38 if (packet->len > 2) length = data[2] + 3; 42 if (packet->len > 1) length = data[1] + 2; 47 if (packet->len > 3) length = (data[2] | (data[3] << 8)) + 4; 52 if (packet->len > 2) length = data[2] + 3; 56 if (length) (*data_callback)(type, data, length, timestamp_us);
|
/external/tagsoup/src/org/ccil/cowan/tagsoup/ |
AttributesImpl.java | 69 length = 0; 103 return length; 117 if (index >= 0 && index < length) { 135 if (index >= 0 && index < length) { 153 if (index >= 0 && index < length) { 171 if (index >= 0 && index < length) { 188 if (index >= 0 && index < length) { 211 int max = length * 5; 230 int max = length * 5; 252 int max = length * 5 620 int length; field in class:AttributesImpl [all...] |
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
AttributesImpl.java | 61 length = 0; 95 return length; 109 if (index >= 0 && index < length) { 127 if (index >= 0 && index < length) { 145 if (index >= 0 && index < length) { 163 if (index >= 0 && index < length) { 180 if (index >= 0 && index < length) { 203 int max = length * 5; 222 int max = length * 5; 244 int max = length * 5 612 int length; field in class:AttributesImpl [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
BigIntegers.java | 27 byte[] tmp = new byte[bytes.length - 1]; 29 System.arraycopy(bytes, 1, tmp, 0, tmp.length); 43 public static byte[] asUnsignedByteArray(int length, BigInteger value) 46 if (bytes.length == length) 52 int count = bytes.length - start; 54 if (count > length) 56 throw new IllegalArgumentException("standard length exceeded for value"); 59 byte[] tmp = new byte[length]; 60 System.arraycopy(bytes, start, tmp, tmp.length - count, count) [all...] |