/packages/apps/Email/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/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...] |
/external/webkit/Source/JavaScriptCore/API/ |
OpaqueJSString.h | 43 static PassRefPtr<OpaqueJSString> create(const UChar* characters, unsigned length) 45 return adoptRef(new OpaqueJSString(characters, length)); 51 unsigned length() { return this ? m_length : 0; } function in struct:OpaqueJSString 65 OpaqueJSString(const UChar* characters, unsigned length) 66 : m_length(length) 68 m_characters = new UChar[length]; 69 memcpy(m_characters, characters, length * sizeof(UChar));
|
/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...] |
/external/webkit/Source/WebCore/css/ |
make-css-file-arrays.pl | 59 my $length = length $text; 60 print HEADER "extern const char ${name}UserAgentStyleSheet[${length}];\n"; 61 print OUT "extern const char ${name}UserAgentStyleSheet[${length}] = {\n"; 63 while ($i < $length) { 66 while ($j < 16 && $i < $length) { 72 print OUT "," unless $i == $length;
|
/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...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
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/webkit/Source/WebCore/platform/graphics/ |
StringTruncator.cpp | 43 typedef unsigned TruncationFunction(const String&, unsigned length, unsigned keepCount, UChar* buffer); 54 static inline int boundedTextBreakFollowing(TextBreakIterator* it, int offset, int length) 57 return result == TextBreakDone ? length : result; 60 static unsigned centerTruncateToBuffer(const String& string, unsigned length, unsigned keepCount, UChar* buffer) 62 ASSERT(keepCount < length); 66 TextBreakIterator* it = characterBreakIterator(string.characters(), length); 67 unsigned omitEnd = boundedTextBreakFollowing(it, omitStart + (length - keepCount) - 1, length); 70 unsigned truncatedLength = omitStart + 1 + (length - omitEnd); 71 ASSERT(truncatedLength <= length); [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/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/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...] |
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
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_ALPHA_DEBUG_IF(pos + length > length_, MARISA_ALPHA_PARAM_ERROR); 22 return String(ptr_ + pos, length); 39 std::size_t length() const { function in class:marisa_alpha::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_alpha::RString [all...] |
/external/icu4c/tools/toolutil/ |
denseranges.cpp | 28 LargestGaps(int32_t max) : maxLength(max<=kCapacity ? max : kCapacity), length(0) {} 31 int32_t i=length; 38 // length largest. 39 int32_t j= length<maxLength ? length++ : maxLength-1; 51 if(newLength<length) { 52 length=newLength; 56 int32_t count() const { return length; } 61 if(length==0) { 66 for(int32_t i=0; i<length; ++i) 79 int32_t length; member in class:__anon8969::LargestGaps [all...] |
/external/webkit/Source/WebCore/platform/network/ |
BlobData.h | 51 size_t length() const { return m_data.size(); } function in class:WebCore::RawData 68 , length(toEndOfFile) 78 , length(toEndOfFile) 88 , length(toEndOfFile) 94 BlobDataItem(const String& path, long long offset, long long length, double expectedModificationTime) 98 , length(length) 104 BlobDataItem(const KURL& url, long long offset, long long length) 108 , length(length) 128 long long length; member in struct:WebCore::BlobDataItem [all...] |
/dalvik/dx/src/com/android/dx/io/ |
ClassData.java | 50 Field[] result = new Field[staticFields.length + instanceFields.length]; 51 System.arraycopy(staticFields, 0, result, 0, staticFields.length); 52 System.arraycopy(instanceFields, 0, result, staticFields.length, instanceFields.length); 57 Method[] result = new Method[directMethods.length + virtualMethods.length]; 58 System.arraycopy(directMethods, 0, result, 0, directMethods.length); 59 System.arraycopy(virtualMethods, 0, result, directMethods.length, virtualMethods.length); [all...] |