/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...] |
/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]; 77 while (length > 0) { 78 int amt = in.read(result, at, length); 83 length -= amt;
|
/external/chromium_org/third_party/ots/src/ |
fpgm.cc | 12 bool ots_fpgm_parse(OpenTypeFile *file, const uint8_t *data, size_t length) { 13 Buffer table(data, length); 18 if (length >= 128 * 1024u) { 22 if (!table.Skip(length)) { 27 fpgm->length = length; 39 if (!out->Write(fpgm->data, fpgm->length)) {
|
prep.cc | 12 bool ots_prep_parse(OpenTypeFile *file, const uint8_t *data, size_t length) { 13 Buffer table(data, length); 18 if (length >= 128 * 1024u) { 22 if (!table.Skip(length)) { 27 prep->length = length; 39 if (!out->Write(prep->data, prep->length)) {
|
/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) {
|
/external/tcpdump/ |
print-cip.c | 55 cip_print(int length) 58 * There is no MAC-layer header, so just print the length. 60 printf("%d: ", length); 66 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 73 u_int length = h->len; local 82 cip_print(length); 88 if (llc_print(p, length, caplen, NULL, NULL, 92 cip_print(length); 104 ip_print(gndo, p, length);
|
print-ipx.c | 55 ipx_print(const u_char *p, u_int length) 71 /* take length from ipx header */ 72 TCHECK(ipx->length); 73 length = EXTRACT_16BITS(&ipx->length); 75 ipx_decode(ipx, (u_char *)ipx + ipxSize, length - ipxSize); 78 printf("[|ipx %d]", length); 93 ipx_decode(const struct ipxHdr *ipx, const u_char *datap, u_int length) 100 (void)printf("ipx-ncp %d", length); 103 ipx_sap_print((u_short *)datap, length); [all...] |
/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...] |
/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...] |
/libcore/luni/src/main/java/java/util/ |
StringTokenizer.java | 112 for (int i = position, length = string.length(); i < length; i++) { 148 int length = string.length(); local 149 if (position < length) { 155 for (int i = position; i < length; i++) 186 int length = string.length(); local 188 if (i < length) { [all...] |
/external/chromium_org/third_party/leveldatabase/src/util/ |
bloom_test.cc | 102 static int NextLength(int length) { 103 if (length < 10) { 104 length += 1; 105 } else if (length < 100) { 106 length += 10; 107 } else if (length < 1000) { 108 length += 100; 110 length += 1000; 112 return length; 122 for (int length = 1; length <= 10000; length = NextLength(length)) [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
CertificateRequest.java | 71 certificate_authorities = new X500Principal[accepted.length]; 72 encoded_principals = new byte[accepted.length][]; 73 for (int i = 0; i < accepted.length; i++) { 76 totalPrincipalsLength += encoded_principals[i].length + 2; 79 length = 3 + certificate_types.length + totalPrincipalsLength; 86 * @param length 89 public CertificateRequest(HandshakeIODataStream in, int length) throws IOException { 104 this.length = 3 + certificate_types.length + totalPrincipalsLength [all...] |
ClientHello.java | 78 length = 38 + session_id.length + (this.cipher_suites.length << 1) 79 + compression_methods.length; 85 * @param length 88 public ClientHello(HandshakeIODataStream in, int length) throws IOException { 97 if ((l & 0x01) == 0x01) { // cipher suites length must be an even number 111 this.length = 38 + session_id.length + (cipher_suites.length << 1 [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
BerInputStream.java | 50 * Primary is used for decoding indefinite length encoding 54 /** Indicates indefinite length of the current type */ 60 /** Current decoded length */ 61 protected int length; field in class:BerInputStream 76 this(encoded, 0, encoded.length); 84 * @param expectedLength expected length of full encoding, this includes 85 * identifier, length an content octets 94 // compare expected and decoded length 95 if (length != INDEFINIT_LENGTH 96 && (offset + expectedLength) != (this.offset + this.length)) { 193 int length = encoding[1] & 0xFF; local [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/ |
fixed-dtoa.cc | 126 Vector<char> buffer, int* length) { 128 buffer[(*length) + i] = '0' + number % 10; 131 *length += requested_length; 135 static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { 141 buffer[(*length) + number_length] = '0' + digit; 145 int i = *length; 146 int j = *length + number_length - 1; 154 *length += number_length; 159 Vector<char> buffer, int* length) { 168 FillDigits32FixedLength(part0, 3, buffer, length); 381 FillDigits32(static_cast<uint32_t>(integrals), buffer, length); local [all...] |
/external/chromium_org/v8/src/ |
fixed-dtoa.cc | 126 Vector<char> buffer, int* length) { 128 buffer[(*length) + i] = '0' + number % 10; 131 *length += requested_length; 135 static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { 141 buffer[(*length) + number_length] = '0' + digit; 145 int i = *length; 146 int j = *length + number_length - 1; 154 *length += number_length; 159 Vector<char> buffer, int* length) { 167 FillDigits32FixedLength(part0, 3, buffer, length); 380 FillDigits32(static_cast<uint32_t>(integrals), buffer, length); local [all...] |
/external/v8/src/ |
fixed-dtoa.cc | 126 Vector<char> buffer, int* length) { 128 buffer[(*length) + i] = '0' + number % 10; 131 *length += requested_length; 135 static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { 141 buffer[(*length) + number_length] = '0' + digit; 145 int i = *length; 146 int j = *length + number_length - 1; 154 *length += number_length; 159 Vector<char> buffer, int* length) { 167 FillDigits32FixedLength(part0, 3, buffer, length); 380 FillDigits32(static_cast<uint32_t>(integrals), buffer, length); local [all...] |
/external/chromium_org/third_party/icu/source/test/cintltst/ |
cstrcase.c | 42 int32_t length; local 48 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, 53 length!=(sizeof(lowerRoot)/U_SIZEOF_UCHAR) || 54 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || 55 buffer[length]!=0 58 length, 60 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)==0 && 61 buffer[length]==0 ? "yes" : "no", 70 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, 75 length!=(sizeof(lowerTurkish)/U_SIZEOF_UCHAR) | 140 int32_t length; local 237 int32_t length; local 341 int32_t length; local 433 int32_t length; local 731 int32_t length; local 876 int32_t length; local [all...] |
/external/icu4c/test/cintltst/ |
cstrcase.c | 42 int32_t length; local 48 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, 53 length!=(sizeof(lowerRoot)/U_SIZEOF_UCHAR) || 54 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)!=0 || 55 buffer[length]!=0 58 length, 60 uprv_memcmp(lowerRoot, buffer, length*U_SIZEOF_UCHAR)==0 && 61 buffer[length]==0 ? "yes" : "no", 70 length=u_strToLower(buffer, sizeof(buffer)/U_SIZEOF_UCHAR, 75 length!=(sizeof(lowerTurkish)/U_SIZEOF_UCHAR) | 140 int32_t length; local 237 int32_t length; local 341 int32_t length; local 433 int32_t length; local 731 int32_t length; local 876 int32_t length; local [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
ClientKeyExchangeTest.java | 41 for (int i = 0; i < isTLS.length; i++) { 53 assertEquals("incorrect out data length ", message.length(), 54 encoded.length); 59 .length(), isTLS[i], true); 63 assertEquals("Incorrect message decoding", message.length(), 64 message_2.length()); 68 message_2 = new ClientKeyExchange(in, message.length() - 1, 71 fail("Small length: No expected AlertException"); 82 message_2 = new ClientKeyExchange(in, message.length() + 3 [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
PKCS12ParametersGenerator.java | 53 * as a BigInteger of length (b.length * 8) bits. The result is 54 * modulo 2^b.length in case of overflow. 61 int x = (b[b.length - 1] & 0xff) + (a[aOff + b.length - 1] & 0xff) + 1; 63 a[aOff + b.length - 1] = (byte)x; 66 for (int i = b.length - 2; i >= 0; i--) 84 for (int i = 0; i != D.length; i++) 91 if ((salt != null) && (salt.length != 0)) 93 S = new byte[v * ((salt.length + v - 1) / v)] [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
LengthFunctions.cpp | 28 #include "core/platform/Length.h" 33 int minimumIntValueForLength(const Length& length, LayoutUnit maximumValue, RenderView* renderView, bool roundPercentages) 35 return static_cast<int>(minimumValueForLength(length, maximumValue, renderView, roundPercentages)); 38 int intValueForLength(const Length& length, LayoutUnit maximumValue, RenderView* renderView, bool roundPercentages) 40 return static_cast<int>(valueForLength(length, maximumValue, renderView, roundPercentages)); 43 LayoutUnit minimumValueForLength(const Length& length, LayoutUnit maximumValue, RenderView* renderView, bool roundPercentages) 45 switch (length.type()) [all...] |
/external/marisa-trie/lib/marisa/ |
marisa-string.h | 16 String(const char *ptr, std::size_t length) 17 : ptr_(ptr), length_(length) {} 20 String substr(std::size_t pos, std::size_t length) const { 21 MARISA_DEBUG_IF(pos + length > length_, MARISA_PARAM_ERROR); 22 return String(ptr_ + pos, length); 39 std::size_t length() const { function in class:marisa::String 49 if (lhs.length() != rhs.length()) { 52 for (std::size_t i = 0; i < lhs.length(); ++i) { 65 for (std::size_t i = 0; i < lhs.length(); ++i) 111 std::size_t length() const { function in class:marisa::RString [all...] |