Searched refs:in (Results 1 - 25 of 285) sorted by relevance

1234567891011>>

/libcore/support/src/test/java/libcore/tlswire/util/
H A DIoUtils.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
24 public static int readUnsignedInt24(DataInput in) throws IOException { argument
25 return (in.readUnsignedByte() << 16) | in.readUnsignedShort();
28 public static byte[] readTlsVariableLengthByteVector(DataInput in, int maxSizeBytes) argument
30 int sizeBytes = readTlsVariableLengthVectorSizeBytes(in, maxSizeBytes);
32 in.readFully(result);
36 public static int[] readTlsVariableLengthUnsignedShortVector(DataInput in, int maxSizeBytes) argument
38 int sizeBytes = readTlsVariableLengthVectorSizeBytes(in, maxSizeByte
47 readTlsVariableLengthVectorSizeBytes(DataInput in, int maxSizeBytes) argument
[all...]
/libcore/luni/src/main/java/java/io/
H A DFilterReader.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
35 protected Reader in; field in class:FilterReader
38 * Constructs a new FilterReader on the Reader {@code in}.
40 * @param in
43 protected FilterReader(Reader in) { argument
44 super(in);
45 this.in = in;
57 in
[all...]
H A DFilterInputStream.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
35 protected volatile InputStream in; field in class:FilterInputStream
43 * overridden. Subclasses should check for null in their constructors.
45 * @param in the input stream to filter reads on.
47 protected FilterInputStream(InputStream in) { argument
48 this.in = in;
53 return in.available();
64 in
[all...]
H A DSequenceInputStream.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
38 private InputStream in; field in class:SequenceInputStream
58 in = s1;
69 * if any of the elements in {@code e} is {@code null}.
74 in = e.nextElement();
75 if (in == null) {
83 if (e != null && in != null) {
84 return in.available();
90 * Closes all streams in thi
[all...]
H A DPipedReader.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
40 * range {@code [out, in)} and written to the range {@code [in, out)}.
41 * Data in the buffer is either sequential: <pre>
45 * out in</pre>
50 * in out</pre>
51 * When the buffer is empty, {@code in == -1}. Reading when the buffer is
53 * {@code in == out}. Writing when the buffer is full will block until free
59 * The index in {
61 private int in = -1; field in class:PipedReader
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1Boolean.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
62 public Object decode(BerInputStream in) throws IOException { argument
63 in.readBoolean();
65 if (in.isVerify) {
68 return getDecodedObject(in);
74 * @param in - BER input stream
77 @Override public Object getDecodedObject(BerInputStream in) throws IOException { argument
78 if (in.buffer[in
[all...]
H A DASN1Any.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
72 public Object decode(BerInputStream in) throws IOException { argument
74 in.readContent();
76 if (in.isVerify) {
79 return getDecodedObject(in);
86 * @param in BER input stream
89 public Object getDecodedObject(BerInputStream in) throws IOException { argument
90 byte[] bytesEncoded = new byte[in.offset - in
[all...]
H A DASN1Enumerated.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
63 public Object decode(BerInputStream in) throws IOException { argument
64 in.readEnumerated();
66 if (in.isVerify) {
69 return getDecodedObject(in);
77 public Object getDecodedObject(BerInputStream in) throws IOException { argument
78 return Arrays.copyOfRange(in.buffer, in.contentOffset, in
[all...]
H A DASN1Explicit.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
62 public Object decode(BerInputStream in) throws IOException { argument
63 if (constrId != in.tag) {
65 in.tagOffset + "]. Expected tag: " + Integer.toHexString(constrId) + ", " +
66 "but encountered tag " + Integer.toHexString(in.tag));
68 in.next();
70 in.content = type.decode(in);
72 if (in
[all...]
H A DASN1OctetString.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
61 @Override public Object decode(BerInputStream in) throws IOException { argument
62 in.readOctetString();
64 if (in.isVerify) {
67 return getDecodedObject(in);
75 @Override public Object getDecodedObject(BerInputStream in) throws IOException { argument
76 return Arrays.copyOfRange(in.buffer, in.contentOffset, in
[all...]
H A DASN1Time.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
43 @Override public Object getDecodedObject(BerInputStream in) throws IOException { argument
45 c.set(Calendar.YEAR, in.times[0]);
46 c.set(Calendar.MONTH, in.times[1]-1);
47 c.set(Calendar.DAY_OF_MONTH, in.times[2]);
48 c.set(Calendar.HOUR_OF_DAY, in.times[3]);
49 c.set(Calendar.MINUTE, in.times[4]);
50 c.set(Calendar.SECOND, in.times[5]);
51 c.set(Calendar.MILLISECOND, in
[all...]
H A DASN1Sequence.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
39 public Object decode(BerInputStream in) throws IOException { argument
40 in.readSequence(this);
42 if (in.isVerify) {
45 return getDecodedObject(in);
H A DASN1SequenceOf.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
39 public Object decode(BerInputStream in) throws IOException { argument
40 in.readSequenceOf(this);
42 if (in.isVerify) {
45 return getDecodedObject(in);
H A DASN1Set.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
39 public Object decode(BerInputStream in) throws IOException { argument
40 in.readSet(this);
42 if(in.isVerify){
45 return getDecodedObject(in);
H A DASN1SetOf.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
39 public Object decode(BerInputStream in) throws IOException { argument
40 in.readSetOf(this);
42 if (in.isVerify) {
45 return getDecodedObject(in);
H A DASN1Oid.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
62 public Object decode(BerInputStream in) throws IOException { argument
63 in.readOID();
65 if (in.isVerify) {
68 return getDecodedObject(in);
76 @Override public Object getDecodedObject(BerInputStream in) throws IOException { argument
78 int oidElement = in.oidElement;
81 int octet = in.buffer[in
[all...]
H A DASN1Implicit.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
102 public Object decode(BerInputStream in) throws IOException { argument
103 if (!checkTag(in.tag)) {
106 "[" + in.tagOffset + "]. Expected tag: " + Integer.toHexString(id) + ", " +
107 "but got " + Integer.toHexString(in.tag));
111 if (id == in.tag) {
112 in.tag = type.id;
114 in.tag = type.constrId;
116 in
[all...]
H A DASN1StringType.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
41 public Object getDecodedObject(BerInputStream in) throws IOException { argument
42 return new String(in.buffer, in.contentOffset, in.length, StandardCharsets.UTF_8);
84 public Object decode(BerInputStream in) throws IOException { argument
85 in.readString(this);
87 if (in.isVerify) {
90 return getDecodedObject(in);
96 getDecodedObject(BerInputStream in) argument
[all...]
/libcore/json/src/main/java/org/json/
H A DJSONTokener.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
65 private final String in; field in class:JSONTokener
74 * @param in JSON encoded string. Null is not permitted and will yield a
78 public JSONTokener(String in) { argument
80 if (in != null && in.startsWith("\ufeff")) {
81 in = in.substring(1);
83 this.in
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DBase64.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
35 public static byte[] decode(byte[] in) { argument
36 return decode(in, in.length);
39 public static byte[] decode(byte[] in, int len) { argument
54 chr = in[len-1];
66 // index in the output array
68 // index in the input array
75 chr = in[
135 encode(byte[] in) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DASCIICharsetEncoderTest.java5 * (the "License"); you may not use this file except in compliance with
10 * Unless required by applicable law or agreed to in writing, software
95 // We consume the entire input buffer because we're in an underflow
96 // state. We can't make a decision on whether the char in this buffer
139 CharBuffer in = CharBuffer.wrap("A");
144 encoder.encode(in, out, false);
145 in = CharBuffer.wrap("B");
146 encoder.encode(in, out, true);
161 CharBuffer in = CharBuffer.wrap("A");
163 newEncoder.encode(in, ou
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DDeflaterInputStreamTest.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
32 InputStream in = new DeflaterInputStream(new ByteArrayInputStream(data));
35 assertEquals(1, in.available());
37 while ((b = in.read()) != -1) {
40 assertEquals(0, in.available());
44 in.close();
46 in.available();
53 java.io.InputStream in = new InflaterInputStream(new ByteArrayInputStream(bytes));
57 while ((count = in
[all...]
/libcore/support/src/test/java/libcore/tlswire/record/
H A DTlsRecord.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
31 public static TlsRecord read(DataInput in) throws IOException { argument
33 result.type = in.readUnsignedByte();
34 result.version = TlsProtocolVersion.read(in);
35 int fragmentLength = in.readUnsignedShort();
37 in.readFully(result.fragment);
/libcore/dex/src/main/java/com/android/dex/
H A DEncodedValueReader.java5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
45 protected final ByteInput in; field in class:EncodedValueReader
50 public EncodedValueReader(ByteInput in) { argument
51 this.in = in;
54 public EncodedValueReader(EncodedValue in) { argument
55 this(in.asByteInput());
64 public EncodedValueReader(ByteInput in, int knownType) { argument
65 this.in
69 EncodedValueReader(EncodedValue in, int knownType) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DClassNotFoundExceptionTest.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
26 * Thrown when an application tries to load in a class through its string
27 * name using the forName method in class Class.
53 IOException in = new IOException();
54 ClassNotFoundException e = new ClassNotFoundException("SomeMessage", in);
55 assertEquals("Wrong Exception", in, e.getException());
57 assertEquals("Wrong cause", in, e.getCause());

Completed in 333 milliseconds

1234567891011>>