HomeSort by relevance Sort by last modified time
    Searched refs:length (Results 1 - 25 of 22384) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/benchmarks/src/benchmarks/regression/
StringLengthBenchmark.java 21 int length = 0; local
23 length = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".length();
25 if (length != 51) throw new RuntimeException();
  /external/curl/tests/libtest/
test75.pl 2 # Check that the length of a given URL is correct
5 print "Usage: $0 string length\n";
8 if (length(@ARGV[0]) != @ARGV[1])
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
FakeInputStream.java 28 public FakeInputStream(long length) {
29 mRemaining = length;
44 public int read(byte[] buffer, int offset, int length) {
45 Arrays.checkOffsetAndCount(buffer.length, offset, length);
47 if (length > mRemaining) {
48 length = (int) mRemaining;
50 mRemaining -= length;
52 if (length == 0) {
55 return length;
    [all...]
  /external/mockito/cglib-and-asm/src/org/mockito/asm/
ByteVector.java 48 int length; field in class:ByteVector
76 int length = this.length; local
77 if (length + 1 > data.length) {
80 data[length++] = (byte) b;
81 this.length = length;
94 int length = this.length; local
113 int length = this.length; local
133 int length = this.length; local
153 int length = this.length; local
174 int length = this.length; local
    [all...]
  /external/libcxx/test/std/re/re.results/re.results.acc/
length.pass.cpp 14 // difference_type length(size_type sub = 0) const;
25 assert(m.length() == m[0].length());
26 assert(m.length(0) == m[0].length());
27 assert(m.length(1) == m[1].length());
28 assert(m.length(2) == m[2].length());
29 assert(m.length(3) == m[3].length())
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.results/re.results.acc/
length.pass.cpp 14 // difference_type length(size_type sub = 0) const;
25 assert(m.length() == m[0].length());
26 assert(m.length(0) == m[0].length());
27 assert(m.length(1) == m[1].length());
28 assert(m.length(2) == m[2].length());
29 assert(m.length(3) == m[3].length())
    [all...]
  /libcore/ojluni/src/main/java/sun/security/util/
Length.java 29 * The Length interface defines the length of an object
31 public interface Length {
34 * Gets the length of this object
37 * the length should be measured in bits.
39 * @return the length of this object
42 public int length(); method in interface:Length
  /external/bison/lib/
basename.c 31 size_t length; local
39 length = base_len (base);
40 if (ISSLASH (base[length]))
41 length++;
48 char *p = xmalloc (length + 3);
51 memcpy (p + 2, base, length);
52 p[length + 2] = '\0';
57 return xstrndup (base, length);
dirname-lgpl.c 26 /* Return the length of the prefix of FILE that will be used by
35 size_t length; local
48 for (length = last_component (file) - file;
49 prefix_length < length; length--)
50 if (! ISSLASH (file[length - 1]))
52 return length;
73 size_t length = dir_len (file); local
74 bool append_dot = (length == 0
76 && length == FILE_SYSTEM_PREFIX_LEN (file
    [all...]
  /external/icu/icu4c/source/tools/toolutil/
collationinfo.cpp 34 int32_t length = indexes[CollationDataReader::IX_INDEXES_LENGTH]; local
35 printf(" indexes: %6ld *4 = %6ld\n", (long)length, (long)length * 4);
37 length = getDataLength(indexes, CollationDataReader::IX_REORDER_CODES_OFFSET);
38 if(length != 0) {
39 printf(" reorder codes: %6ld *4 = %6ld\n", (long)length / 4, (long)length);
42 length = getDataLength(indexes, CollationDataReader::IX_REORDER_TABLE_OFFSET);
43 if(length != 0) {
44 U_ASSERT(length >= 256)
    [all...]
  /external/emma/core/java12/com/vladium/util/
ByteArrayIStream.java 31 this (buf, buf.length);
34 public ByteArrayIStream (final byte [] buf, final int length)
36 if ($assert.ENABLED) $assert.ASSERT ((length >= 0) && (length <= buf.length),
37 "invalid length: " + length);
40 m_max = length;
53 public final int read (final byte [] buf, final int offset, int length)
56 $assert.ASSERT ((offset >= 0) && (offset <= buf.length) &
    [all...]
  /external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
ByteBuffer.java 20 * Byte buffer container including length of valid data.
29 private int length; field in class:ByteBuffer
40 this.length = 0;
50 this.length = buffer.length;
56 * @param length the length of valid bytes in the array
58 public ByteBuffer(byte[] buffer, int length)
60 if (length > buffer.length)
128 public int length() method in class:ByteBuffer
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
UVector32.java 21 public boolean isEmpty() { return length == 0; }
22 public int size() { return length; }
27 buffer[length++] = e;
32 System.arraycopy(buffer, index, buffer, index + 1, length - index);
34 ++length;
37 length = 0;
41 if(length >= buffer.length) {
42 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length
49 private int length = 0; field in class:UVector32
    [all...]
UVector64.java 21 public boolean isEmpty() { return length == 0; }
22 public int size() { return length; }
27 buffer[length++] = e;
32 System.arraycopy(buffer, index, buffer, index + 1, length - index);
34 ++length;
37 length = 0;
41 if(length >= buffer.length) {
42 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length
49 private int length = 0; field in class:UVector64
    [all...]
  /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
UVector32.java 17 public boolean isEmpty() { return length == 0; }
18 public int size() { return length; }
23 buffer[length++] = e;
28 System.arraycopy(buffer, index, buffer, index + 1, length - index);
30 ++length;
33 length = 0;
37 if(length >= buffer.length) {
38 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length
45 private int length = 0; field in class:UVector32
    [all...]
UVector64.java 17 public boolean isEmpty() { return length == 0; }
18 public int size() { return length; }
23 buffer[length++] = e;
28 System.arraycopy(buffer, index, buffer, index + 1, length - index);
30 ++length;
33 length = 0;
37 if(length >= buffer.length) {
38 int newCapacity = buffer.length <= 0xffff ? 4 * buffer.length : 2 * buffer.length
45 private int length = 0; field in class:UVector64
    [all...]
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
ArrayRegion.java 30 private int length; field in class:ArrayRegion
36 public ArrayRegion(byte tag, int length) {
38 this.length = length;
39 values = new Value[length];
59 * @return Returns the length.
62 return length;
65 * @param length The length to set.
67 public void setLength(int length) {
    [all...]
  /libcore/ojluni/src/main/java/java/net/
DatagramPacket.java 59 int length; field in class:DatagramPacket
66 * length <code>length</code>, specifying an offset into the buffer.
68 * The <code>length</code> argument must be less than or equal to
69 * <code>buf.length</code>.
73 * @param length the number of bytes to read.
77 public DatagramPacket(byte buf[], int offset, int length) {
78 setData(buf, offset, length);
85 * length <code>length</code>
    [all...]
  /external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
length.pass.cpp 14 // static size_t length(const char_type* s);
21 assert(std::char_traits<char>::length("") == 0);
22 assert(std::char_traits<char>::length("a") == 1);
23 assert(std::char_traits<char>::length("aa") == 2);
24 assert(std::char_traits<char>::length("aaa") == 3);
25 assert(std::char_traits<char>::length("aaaa") == 4);
  /libcore/dalvik/src/main/java/dalvik/system/
DalvikLogging.java 38 int length = loggerName.length(); local
39 if (length <= 23) {
44 return length - (lastPeriod + 1) <= 23
46 : loggerName.substring(loggerName.length() - 23);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
length.pass.cpp 14 // static size_t length(const char_type* s);
21 assert(std::char_traits<char>::length("") == 0);
22 assert(std::char_traits<char>::length("a") == 1);
23 assert(std::char_traits<char>::length("aa") == 2);
24 assert(std::char_traits<char>::length("aaa") == 3);
25 assert(std::char_traits<char>::length("aaaa") == 4);
  /external/libpng/contrib/tools/
png-fix-itxt.c 16 * uncompressed iTXt chunks. Assumes that the actual length is greater
17 * than or equal to the value in the length byte, and that the CRC is
18 * correct for the actual length. This program hunts for the CRC and
19 * adjusts the length byte accordingly. It is not an error to process a
60 /* Read the length */
61 unsigned long length; /* must be 32 bits! */ local
62 GETBREAK; buf[0] = c; length = c; length <<= 8;
63 GETBREAK; buf[1] = c; length += c; length <<= 8
    [all...]
  /libcore/ojluni/src/main/java/java/io/
OptionalDataException.java 35 * length field is set to the number of bytes of primitive data
41 * OptionalDataException's eof field is set to true, and the length field
53 * Create an <code>OptionalDataException</code> with a length.
57 length = len;
65 length = 0;
75 public int length; field in class:OptionalDataException
  /art/test/513-array-deopt/src/
Main.java 27 return new int[a.length - 5];
39 return new int[a.length - 1];
45 if (result.length != 0) {
46 throw new Error("Expected 0, got " + result.length);
50 if (result.length != 4) {
51 throw new Error("Expected 5, got " + result.length);
  /external/caliper/examples/src/main/java/examples/
ArraySortBenchmark.java 31 @Param({"10", "100", "1000", "10000"}) private int length; field in class:ArraySortBenchmark
39 values = distribution.create(length);
40 copy = new int[length];
45 System.arraycopy(values, 0, copy, 0, values.length);
53 int[] create(int length) {
54 int[] result = new int[length];
55 for (int i = 0; i < length; i += 5) {
67 int[] create(int length) {
68 int[] result = new int[length];
69 for (int i = 0; i < length; i++)
    [all...]

Completed in 749 milliseconds

1 2 3 4 5 6 7 8 91011>>