/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
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...] |
H A D | 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 { argument 97 if ((l & 0x01) == 0x01) { // cipher suites length must be an even number 111 this.length = 38 + session_id.length + (cipher_suites.length << [all...] |
H A D | ServerKeyExchange.java | 70 length = 4 + bytes1.length + bytes2.length; 72 length += 2 + hash.length; 79 length += 2 + bytes3.length; 93 byte[] noZero = new byte[bb.length - 1]; 94 System.arraycopy(bb, 1, noZero, 0, noZero.length); 104 * @param length 108 ServerKeyExchange(HandshakeIODataStream in, int length, int keyExchange) argument [all...] |
H A D | Message.java | 30 * Message length 32 protected int length; field in class:Message 41 * Returns message length 44 public int length() { method in class:Message 45 return length;
|
H A D | SSLEngineDataStream.java | 42 protected void setSourceBuffers(ByteBuffer[] srcs, int offset, int length) { argument 45 this.limit = offset+length; 65 public byte[] getData(int length) { argument 69 int len = (length < available) ? length : available;
|
/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...] |
H A D | BerOutputStream.java | 39 /** Current encoded length */ 40 public int length; field in class:BerOutputStream 48 if (length > 127) { //long form 49 int eLen = length >> 8; 58 eLen = length; 65 encoded[offset++] = (byte) length; 70 System.arraycopy(content, 0, encoded, offset, length); 71 offset += length; 78 System.arraycopy(bStr.bytes, 0, encoded, offset + 1, length - 1); 79 offset += length; [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | StringToReal.java | 73 private static StringExponentPair initialParse(String s, int length, boolean isDouble) { argument 75 if (length == 0) { 82 char c = s.charAt(length - 1); 84 length--; 85 if (length == 0) { 93 if (end + 1 == length) { 107 String exponentString = s.substring(exponentOffset, length); 111 for (int i = 0; i < exponentString.length(); ++i) { 134 end = length; 136 if (length [all...] |
H A D | CharSequence.java | 32 public int length(); method in interface:CharSequence 43 * length of this sequence. 63 * length of this sequence.
|
H A D | UnsafeByteSequence.java | 51 public void write(byte[] buffer, int offset, int length) { argument 52 if (count + length >= bytes.length) { 53 byte[] newBytes = new byte[(count + length) * 2]; 57 System.arraycopy(buffer, offset, bytes, count, length); 58 count += length; 62 if (count == bytes.length) { 72 if (count == bytes.length) {
|
/libcore/luni/src/main/java/java/io/ |
H A D | InputStream.java | 90 * reading from a file, {@link File#length} returns the current length of the file (though 91 * assuming the file's length can't change may be incorrect, reading a file is inherently 160 * Equivalent to {@code read(buffer, 0, buffer.length)}. 163 return read(buffer, 0, buffer.length); 167 * Reads at most {@code length} bytes from this stream and stores them in 175 * @param length 180 * if {@code offset < 0} or {@code length < 0}, or if 181 * {@code offset + length} is greater than the length o 186 read(byte[] buffer, int offset, int length) argument [all...] |
H A D | OptionalDataException.java | 42 public int length; field in class:OptionalDataException
|
H A D | Reader.java | 145 return read(buf, 0, buf.length); 256 int length = target.length(); 257 char[] buf = new char[length]; 258 length = Math.min(length, read(buf)); 259 if (length > 0) { 260 target.put(buf, 0, length); 262 return length;
|
H A D | PipedReader.java | 239 Arrays.checkOffsetAndCount(buffer.length, offset, count); 271 copyLength = count > this.buffer.length - out ? this.buffer.length - out : count; 274 if (out == this.buffer.length) { 375 if (in == buffer.length) { 392 Arrays.checkOffsetAndCount(chars.length, offset, count); 424 int length = buffer.length - in; 425 if (count < length) { 426 length [all...] |
H A D | SerializationHandleMap.java | 52 for (int i = 0; i < oldKeys.length; ++i) { 75 int length = array.length; 76 int index = getModuloHash(key, length); 77 int last = (index + length - 1) % length; 86 index = (index + 1) % length; 91 private int getModuloHash(Object key, int length) { argument 92 return (System.identityHashCode(key) & 0x7FFFFFFF) % length; 119 int newSize = keys.length * [all...] |
/libcore/luni/src/main/java/javax/crypto/spec/ |
H A D | IvParameterSpec.java | 47 this.iv = new byte[iv.length]; 48 System.arraycopy(iv, 0, this.iv, 0, iv.length); 64 if ((iv == null) || (iv.length - offset < byteCount)) { 67 Arrays.checkOffsetAndCount(iv.length, offset, byteCount); 78 byte[] res = new byte[iv.length]; 79 System.arraycopy(iv, 0, res, 0, iv.length);
|
H A D | PSource.java | 92 this.p = new byte[p.length]; 93 System.arraycopy(p, 0, this.p, 0, p.length); 102 byte[] result = new byte[p.length]; 103 System.arraycopy(p, 0, result, 0, p.length);
|
H A D | SecretKeySpec.java | 61 if (key.length == 0) { 62 throw new IllegalArgumentException("key.length == 0"); 69 this.key = new byte[key.length]; 70 System.arraycopy(key, 0, this.key, 0, key.length); 76 * length <code>len</code> and the specified <code>algorithm</code> name. 97 if (key.length == 0) { 98 throw new IllegalArgumentException("key.length == 0"); 103 if (key.length - offset < len) { 138 byte[] result = new byte[key.length]; 139 System.arraycopy(key, 0, result, 0, key.length); [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | X509TrustManagerImpl.java | 12 if(ax509certificate == null || ax509certificate.length == 0) 13 throw new IllegalArgumentException("null or zero-length certificate chain"); 14 if(s == null || s.length() == 0) 15 throw new IllegalArgumentException("null or zero-length authentication type"); 17 for (int i = 0; i < ax509certificate.length; i++) { 27 if(ax509certificate == null || ax509certificate.length == 0) 28 throw new IllegalArgumentException("null or zero-length certificate chain"); 29 if(s == null || s.length() == 0) 30 throw new IllegalArgumentException("null or zero-length authentication type"); 32 for (int i = 0; i < ax509certificate.length; [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/ |
H A D | PrivateKeyImpl.java | 51 byte[] toReturn = new byte[encoding.length]; 52 System.arraycopy(encoding, 0, toReturn, 0, encoding.length); 62 this.encoding = new byte[encoding.length]; 63 System.arraycopy(encoding, 0, this.encoding, 0, encoding.length);
|
H A D | PublicKeyImpl.java | 56 byte[] result = new byte[encoding.length]; 57 System.arraycopy(encoding, 0, result, 0, encoding.length); 68 this.encoding = new byte[encoding.length]; 69 System.arraycopy(encoding, 0, this.encoding, 0, encoding.length);
|
/libcore/luni/src/main/java/org/apache/harmony/security/x501/ |
H A D | AttributeTypeAndValueComparator.java | 86 int min = ioid1.length < ioid2.length ? ioid1.length : ioid2.length; 94 if ((i + 1) == ioid1.length && (i + 1) < ioid2.length) { 97 if ((i + 1) < ioid1.length && (i + 1) == ioid2.length) {
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
H A D | hc_nodelistindexgetlength.java | 67 int length; 72 length = (int) employeeList.getLength(); 74 if (equals(6, length)) { 75 assertEquals("length_wo_space", 6, length); 77 assertEquals("length_w_space", 13, length);
|
/libcore/luni/src/main/java/javax/security/auth/callback/ |
H A D | PasswordCallback.java | 38 if (prompt == null || prompt.length() == 0) { 90 inputPassword = new char[password.length]; 91 System.arraycopy(password, 0, inputPassword, 0, inputPassword.length); 106 char[] tmp = new char[inputPassword.length]; 107 System.arraycopy(inputPassword, 0, tmp, 0, tmp.length);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
H A D | MyMacSpi.java | 40 private int length = 0; field in class:MyMacSpi 43 return length; 63 length = len; 69 return new byte[length]; 74 length++;
|