/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | DalvikLogging.java | 38 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 D | ClientKeyExchange.java | 55 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 D | Finished.java | 40 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 D | CertificateVerify.java | 40 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 D | DataStream.java | 34 * 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 D | CertificateMessage.java | 49 * @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 D | HelloRequest.java | 41 * @param length 44 public HelloRequest(HandshakeIODataStream in, int length) argument 46 if (length != 0) { 60 public int length() { method in class:HelloRequest
|
H A D | ServerHelloDone.java | 41 * @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 D | 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 { argument 104 this.length = 3 + certificate_types.length [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | DatagramPacket.java | 35 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 D | Charsets.java | 29 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 D | MalformedInputException.java | 32 // 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 D | UnmappableCharacterException.java | 32 // 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 D | CoderResult.java | 34 * 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 D | StringLengthBenchmark.java | 24 int length = 0; 26 length = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".length(); 28 if (length != 51) throw new RuntimeException();
|
/libcore/luni/src/main/java/java/security/spec/ |
H A D | EncodedKeySpec.java | 37 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 D | StringPool.java | 28 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 D | PBEKeySpec.java | 47 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 D | PBEParameterSpec.java | 50 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 D | CollationKeyICU.java | 43 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 D | Chunk.java | 25 * 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 D | BufferedOutputStream.java | 106 * @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 D | 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 * 612 int length; field in class:AttributesImpl [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | StringTokenizer.java | 112 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 D | 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)) { [all...] |