Searched defs:length (Results 1 - 25 of 280) sorted by relevance

1234567891011>>

/dalvik/vm/mterp/c/
H A DOP_NEW_ARRAY.c5 s4 length; local
10 vsrc1 = INST_B(inst); /* length reg */
14 length = (s4) GET_REGISTER(vsrc1);
15 if (length < 0) {
29 newArray = dvmAllocArrayByClass(arrayClass, length, ALLOC_DONT_TRACK);
/dalvik/libcore/luni/src/main/java/java/io/
H A DOptionalDataException.java42 public int length; field in class:OptionalDataException
H A DBufferedOutputStream.java128 * @param length
132 * if {@code offset < 0} or {@code length < 0}, or if
133 * {@code offset + length} is greater than the size of
143 public synchronized void write(byte[] buffer, int offset, int length) argument
155 if (length >= internalBuffer.length) {
157 out.write(buffer, offset, length);
161 if (offset < 0 || offset > buffer.length - length) {
166 if (length <
[all...]
H A DFilterOutputStream.java106 write(buffer, 0, buffer.length);
117 * @param length
121 * {@code offset + count} is bigger than the length of
127 public void write(byte[] buffer, int offset, int length) throws IOException { argument
132 if (offset > buffer.length || offset < 0) {
136 if (length < 0 || length > buffer.length - offset) {
138 throw new ArrayIndexOutOfBoundsException(Msg.getString("K0031", length)); //$NON-NLS-1$
140 for (int i = 0; i < length;
[all...]
H A DInputStream.java76 * reading from a file, {@link File#length} returns the current length of the file (though
77 * assuming the file's length can't change may be incorrect, reading a file is inherently
159 return read(b, 0, b.length);
163 * Reads at most {@code length} bytes from this stream and stores them in
171 * @param length
176 * if {@code offset < 0} or {@code length < 0}, or if
177 * {@code offset + length} is greater than the length of
182 public int read(byte[] b, int offset, int length) throw argument
[all...]
H A DStringBufferInputStream.java47 * source. The size of the stream is set to the {@code length()} of the
60 count = str.length();
82 * Reads at most {@code length} bytes from the source string and stores them
90 * @param length
95 * if {@code offset < 0} or {@code length < 0}, or if
96 * {@code offset + length} is greater than the length of
102 public synchronized int read(byte[] b, int offset, int length) { argument
116 if (offset < 0 || offset > b.length) {
120 if (length <
[all...]
/dalvik/libdex/
H A DSysUtil.h41 size_t length; /* length of data */ member in struct:MemMapping
44 size_t baseLength; /* length of mapping */
83 int sysMapFileSegmentInShmem(int fd, off_t start, long length,
91 int sysCreatePrivateMap(size_t length, MemMapping* pMap);
99 int sysChangeMapAccess(void* addr, size_t length, int wantReadWrite,
/dalvik/vm/jdwp/
H A DJdwpHandler.h29 u4 length; member in struct:JdwpReqHeader
/dalvik/libcore/luni/src/main/java/java/lang/
H A DCharSequence.java32 public int length(); method in interface:CharSequence
43 * length of this sequence.
63 * length of this sequence.
/dalvik/libcore/nio/src/main/java/java/nio/channels/
H A DGatheringByteChannel.java32 * This method is equivalent to: {@code write(buffers, 0, buffers.length);}
47 * if {@code offset < 0} or {@code length < 0}, or if
48 * {@code offset + length} is greater than the size of
59 * Attempts to write all <code>remaining()</code> bytes from {@code length}
72 * @param length
85 * if {@code offset < 0} or {@code length < 0}, or if
86 * {@code offset + length} is greater than the size of
93 public long write(ByteBuffer[] buffers, int offset, int length) argument
H A DScatteringByteChannel.java32 * This method is equivalent to {@code read(buffers, 0, buffers.length);}
55 * Attempts to read all {@code remaining()} bytes from {@code length} byte
66 * @param length
79 * if {@code offset < 0} or {@code length < 0}, or if
80 * {@code offset + length} is greater than the size of
88 public long read(ByteBuffer[] buffers, int offset, int length) argument
H A DFileLock.java79 // The lock length in bytes
87 * enforces the starting position, length and sharing mode of the lock.
94 * the length of the lock in number of bytes.
130 * Returns the length of the file lock in bytes.
155 * @param length
156 * the length of the comparative lock.
159 public final boolean overlaps(long start, long length) { argument
161 final long newEnd = start + length - 1;
198 StringBuilder buffer = new StringBuilder(64); // Guess length of string
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/
H A DUtil.java44 * length). Exception throws order is IndexOutOfBoundsException for negative
46 * offset+length > array.length
48 public static void assertArrayIndex(Object[] array, int offset, int length) { argument
49 if (offset < 0 || length < 0) {
53 if ((long) offset + (long) length > array.length) {
59 public static void assertArrayIndex(boolean[] array, int offset, int length) { argument
60 if (offset < 0 || length < 0) {
64 if ((long) offset + (long) length > arra
70 assertArrayIndex(byte[] array, int offset, int length) argument
81 assertArrayIndex(short[] array, int offset, int length) argument
92 assertArrayIndex(int[] array, int offset, int length) argument
103 assertArrayIndex(long[] array, int offset, int length) argument
114 assertArrayIndex(float[] array, int offset, int length) argument
125 assertArrayIndex(double[] array, int offset, int length) argument
136 assertArrayIndex(char[] array, int offset, int length) argument
152 assertArrayIndex(int arrayLength, int offset, int length) argument
[all...]
/dalvik/libcore/nio_char/src/main/java/java/nio/charset/
H A DMalformedInputException.java34 // the length of the malformed input
40 * @param length
41 * the length of the malformed input.
43 public MalformedInputException(int length) { argument
44 this.inputLength = length;
48 * Gets the length of the malformed input.
50 * @return the length of the malformed input.
63 // niochar.05=Malformed input length is {0}.
H A DUnmappableCharacterException.java34 // The length of the unmappable character
40 * @param length
41 * the length of the unmappable character.
43 public UnmappableCharacterException(int length) { argument
44 this.inputLength = length;
48 * Gets the length of the unmappable character.
50 * @return the length of the unmappable character.
63 // niochar.0A=The unmappable character length is {0}.
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/
H A DDESedeParameters.java7 * DES-EDE Key length in bytes.
27 * @param length number of bytes making up the key
32 int length)
34 for (int i = offset; i < length; i += DES_KEY_LENGTH)
55 return isWeakKey(key, offset, key.length - offset);
29 isWeakKey( byte[] key, int offset, int length) argument
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DDataStream.java34 * Retrieves the data of specified length from the stream.
35 * If the data size in the stream is less than specified length,
39 public byte[] getData(int length); argument
/dalvik/libcore/xml/src/main/java/org/apache/xml/utils/
H A DXMLStringFactory.java45 * @param length The number of characters to read from the array.
50 int length);
58 * @param length The number of characters to read from the array.
63 int length);
49 newstr(FastStringBuffer string, int start, int length) argument
62 newstr(char[] string, int start, int length) argument
/dalvik/vm/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmServer.c26 * int offset, int length)
36 int length = args[3]; local
38 assert(offset+length <= (int)data->length);
40 dvmDbgDdmSendChunk(type, length, (const u1*)data->contents + offset);
/dalvik/dx/src/com/android/dx/cf/attrib/
H A DRawAttribute.java59 * @param length length of the attribute data, in bytes
63 int length, ConstantPool pool) {
64 this(name, data.slice(offset, offset + length), pool);
62 RawAttribute(String name, ByteArray data, int offset, int length, ConstantPool pool) argument
/dalvik/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunk.java25 * 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) { argument
49 this.length = length;
61 this.length = buf.position();
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
H A DIMemorySpy.java33 public void rangeCheck(PlatformAddress address, int offset, int length) argument
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DInputStreamHelper.java80 public ExposedByteArrayInputStream(byte buf[], int offset, int length) { argument
81 super(buf, offset, length);
88 if (pos == 0 && count == buf.length) {
120 if (pos == 0 && available == buf.length) {
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/
H A DDEROutputStream.java17 int length)
20 if (length > 127)
23 int val = length;
34 write((byte)(length >> i));
39 write((byte)length);
49 writeLength(bytes.length);
16 writeLength( int length) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/util/encoders/
H A DBase64.java23 encoder.encode(data, 0, data.length, bOut);
43 return encoder.encode(data, 0, data.length, out);
54 int length,
58 return encoder.encode(data, off, length, out);
73 encoder.decode(data, 0, data.length, bOut);
51 encode( byte[] data, int off, int length, OutputStream out) argument

Completed in 916 milliseconds

1234567891011>>