Searched refs:length (Results 1 - 25 of 1050) sorted by relevance

1234567891011>>

/libcore/dalvik/src/main/java/dalvik/system/
H A DDalvikLogging.java38 int length = loggerName.length();
39 if (length <= 23) {
44 return length - (lastPeriod + 1) <= 23
46 : loggerName.substring(loggerName.length() - 23);
/libcore/crypto/src/main/java/org/conscrypt/
H A DClientKeyExchange.java55 length = this.exchange_keys.length;
57 length += 2;
70 exchange_keys = new byte[bb.length-1];
71 System.arraycopy(bb, 1, exchange_keys, 0, exchange_keys.length);
75 length = exchange_keys.length +2;
85 length = 0;
91 * @param length
96 public ClientKeyExchange(HandshakeIODataStream in, int length, boolea argument
[all...]
H A DFinished.java40 length = data.length;
46 * @param length
49 public Finished(HandshakeIODataStream in, int length) argument
51 if (length == 12 || length == 36) {
52 data = in.read(length);
53 this.length = data.length;
H A DCertificateVerify.java40 if (hash == null || hash.length == 0) {
45 length = hash.length + 2;
52 * @param length
55 public CertificateVerify(HandshakeIODataStream in, int length) argument
57 if (length == 0) {
61 if (in.readUint16() != length - 2) {
65 signedHash = in.read(length -2);
67 this.length = length;
[all...]
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
H A DCertificateMessage.java49 * @param length
52 public CertificateMessage(HandshakeIODataStream in, int length) throws IOException { argument
55 if (length != 3) { // no more bytes after total_length
61 this.length = 3;
86 this.length = 3 + 3 * certs.length + enc_size;
87 if (this.length != length) {
101 length = 3;
106 encoded_certs = new byte[certs.length][];
[all...]
H A DHelloRequest.java41 * @param length
44 public HelloRequest(HandshakeIODataStream in, int length) argument
46 if (length != 0) {
60 public int length() { method in class:HelloRequest
H A DServerHelloDone.java41 * @param length
44 public ServerHelloDone(HandshakeIODataStream in, int length) argument
46 if (length != 0) {
60 * Returns message length
64 public int length() { method in class:ServerHelloDone
H A DCertificateRequest.java71 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 { argument
104 this.length = 3 + certificate_types.length
[all...]
/libcore/luni/src/main/java/java/net/
H A DDatagramPacket.java35 private int length; field in class:DatagramPacket
38 * The last user-supplied length (as opposed to a length set by simply receiving a packet).
39 * This length (unlike 'length') is sticky, and survives until the user sets another length.
52 * {@code length} bytes.
56 * @param length
57 * the length of the data buffer.
59 public DatagramPacket(byte[] data, int length) { argument
74 DatagramPacket(byte[] data, int offset, int length) argument
95 DatagramPacket(byte[] data, int offset, int length, InetAddress host, int aPort) argument
116 DatagramPacket(byte[] data, int length, InetAddress host, int port) argument
211 setLength(int length) argument
232 setReceivedLength(int length) argument
264 DatagramPacket(byte[] data, int length, SocketAddress sockAddr) argument
286 DatagramPacket(byte[] data, int offset, int length, SocketAddress sockAddr) argument
[all...]
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsets.java29 public static native byte[] toAsciiBytes(char[] chars, int offset, int length); argument
35 public static native byte[] toIsoLatin1Bytes(char[] chars, int offset, int length); argument
41 public static native byte[] toUtf8Bytes(char[] chars, int offset, int length); argument
47 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { argument
48 byte[] result = new byte[length * 2];
49 int end = offset + length;
67 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
76 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
H A DMalformedInputException.java32 // the length of the malformed input
38 * @param length
39 * the length of the malformed input.
41 public MalformedInputException(int length) { argument
42 this.inputLength = length;
46 * Gets the length of the malformed input.
48 * @return the length of the malformed input.
H A DUnmappableCharacterException.java32 // The length of the unmappable character
38 * @param length
39 * the length of the unmappable character.
41 public UnmappableCharacterException(int length) { argument
42 this.inputLength = length;
46 * Returns the length of the unmappable character.
H A DCoderResult.java34 * calling <code>CoderResult.malformedForLength(int)</code> with the length of
71 * length
77 * certain length
84 // the length of the erroneous input
85 private final int length; field in class:CoderResult
92 * @param length
93 * the length of the erroneous input
95 private CoderResult(int type, int length) { argument
97 this.length = length;
111 malformedForLength(int length) argument
139 unmappableForLength(int length) argument
198 public int length() throws UnsupportedOperationException { method in class:CoderResult
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DStringLengthBenchmark.java24 int length = 0;
26 length = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".length();
28 if (length != 51) throw new RuntimeException();
/libcore/luni/src/main/java/java/security/spec/
H A DEncodedKeySpec.java37 this.encodedKey = new byte[encodedKey.length];
39 this.encodedKey, 0, this.encodedKey.length);
50 byte[] ret = new byte[encodedKey.length];
51 System.arraycopy(encodedKey, 0, ret, 0, ret.length);
/libcore/luni/src/main/java/libcore/internal/
H A DStringPool.java28 private static boolean contentEquals(String s, char[] chars, int start, int length) { argument
29 if (s.length() != length) {
32 for (int i = 0; i < length; i++) {
41 * Returns a string equal to {@code new String(array, start, length)}.
43 public String get(char[] array, int start, int length) { argument
46 for (int i = start; i < start + length; i++) {
53 int index = hashCode & (pool.length - 1);
56 if (pooled != null && contentEquals(pooled, array, start, length)) {
60 String result = new String(array, start, length);
[all...]
/libcore/luni/src/main/java/javax/crypto/spec/
H A DPBEKeySpec.java47 this.password = new char[password.length];
48 System.arraycopy(password, 0, this.password, 0, password.length);
57 * iteration count and the desired length of the derived key.
66 * the desired key length of the derived key,
71 * the key length is zero or negative.
78 if (salt.length == 0) {
79 throw new IllegalArgumentException("salt.length == 0");
91 this.password = new char[password.length];
92 System.arraycopy(password, 0, this.password, 0, password.length);
94 this.salt = new byte[salt.length];
[all...]
H A DPBEParameterSpec.java50 this.salt = new byte[salt.length];
51 System.arraycopy(salt, 0, this.salt, 0, salt.length);
61 byte[] result = new byte[salt.length];
62 System.arraycopy(salt, 0, result, 0, salt.length);
/libcore/luni/src/main/java/libcore/icu/
H A DCollationKeyICU.java43 if (bytes == null || bytes.length == 0) {
44 if (rhsBytes == null || rhsBytes.length == 0) {
49 if (rhsBytes == null || rhsBytes.length == 0) {
54 int count = Math.min(bytes.length, rhsBytes.length);
65 if (bytes.length < rhsBytes.length) {
68 if (bytes.length > rhsBytes.length) {
96 if (bytes != null && bytes.length !
[all...]
/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();
/libcore/luni/src/main/java/java/io/
H A DBufferedOutputStream.java106 * @param length
110 * if {@code offset < 0} or {@code length < 0}, or if
111 * {@code offset + length} is greater than the size of
121 public synchronized void write(byte[] buffer, int offset, int length) throws IOException { argument
129 if (length >= internalBuffer.length) {
131 out.write(buffer, offset, length);
135 Arrays.checkOffsetAndCount(buffer.length, offset, length);
138 if (length > (internalBuffe
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DAttributesImpl.java61 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 *
612 int length; field in class:AttributesImpl
[all...]
/libcore/luni/src/main/java/java/util/
H A DStringTokenizer.java112 for (int i = position, length = string.length(); i < length; i++) {
148 int length = string.length();
149 if (position < length) {
155 for (int i = position; i < length; i++)
186 int length = string.length();
188 if (i < length) {
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DBerInputStream.java50 * 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)) {
[all...]

Completed in 765 milliseconds

1234567891011>>