Searched refs:is (Results 1 - 25 of 159) sorted by relevance

1234567

/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
H A DFtpURLInputStream.java12 * distributed under the License is distributed on an "AS IS" BASIS,
26 * the control socket Object stays live while the stream is in use
30 private InputStream is; // Actual input stream field in class:FtpURLInputStream
34 public FtpURLInputStream(InputStream is, Socket controlSocket) { argument
35 this.is = is;
41 return is.read();
46 return is.read(buf, off, nbytes);
51 is.reset();
56 is
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DFileInputStreamTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
49 private FileInputStream is; field in class:FileInputStreamTest
67 is = new FileInputStream(f);
68 is.close();
74 is = new FileInputStream(f2);
75 is.close();
125 is = new FileInputStream(fileName);
126 is.close();
131 is = new FileInputStream("ImprobableFile.42");
132 is
[all...]
H A DFilterInputStreamTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
36 public MyFilterInputStream(java.io.InputStream is) { argument
37 super(is);
43 private FilterInputStream is; field in class:FilterInputStreamTest
67 is.close();
85 testLength, is.available());
87 is.close();
89 is.available();
105 is.close();
108 is
[all...]
H A DObjectInputOutputStreamTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
36 private ObjectInputStream is; field in class:ObjectInputOutputStreamTest
50 "not be checked since is never thrown (primitive data " +
51 "is written into a self-expanding buffer).",
69 is.readBoolean());
72 is.readBoolean();
78 is.close();
80 is.readBoolean();
95 "not be checked since is never thrown (primitive data " +
96 "is writte
[all...]
H A DBufferedInputStreamTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
42 private BufferedInputStream is; field in class:BufferedInputStreamTest
61 is = new BufferedInputStream(isFile);
64 is.read();
85 is = new BufferedInputStream(isFile, -1);
93 is = new BufferedInputStream(isFile, this.fileString
96 is.read();
102 is.skip(this.fileString.length() - 2);
103 is.read();
105 // is
127 testBufferedInputStream(InputStream is) argument
132 testBufferedInputStream(InputStream is, int size) argument
[all...]
H A DByteArrayInputStreamTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
31 private ByteArrayInputStream is; field in class:ByteArrayInputStreamTest
114 assertTrue("Returned incorrect number of available bytes", is
130 is.read();
132 is.close();
137 is.read();
157 is.skip(3000);
158 is.mark(1000);
159 is.read(buf1, 0, buf1.length);
160 is
[all...]
H A DInputStreamTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
36 private InputStream is; field in class:InputStreamTest
64 notes = "Verifies constructor InputStream(). Since this constructor does nothing, this test is intentionally kept basic.",
87 assertEquals(is.available(), 0);
95 notes = "Verifies close(). Since this method does nothing, this test is intentionally kept basic.",
101 is.close();
112 notes = "Verifies mark(int). Since this method does nothing, this test is intentionally kept basic.",
118 is.mark(10);
135 is.markSupported());
169 is
[all...]
/dalvik/tests/023-many-interfaces/src/
H A DManyInterfaces.java44 ('*' is with dx optimizations enabled)
346 boolean is;
347 is = obj instanceof Interface001;
348 is = obj instanceof Interface001;
349 is = obj instanceof Interface001;
350 is = obj instanceof Interface001;
351 is = obj instanceof Interface001;
352 is = obj instanceof Interface001;
353 is = obj instanceof Interface001;
354 is
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DGenericSignatureFormatErrorTest.java46 InputStream is = this.getClass().getResourceAsStream("dex1.bytes");
47 assertNotNull(is);
60 "dalvikvm: 'waitpid failed' log msg - only occurs when @SideEffect is removed " +
61 "and this test is run via running tests.luni.AllTestsLang TestSuite")
64 * dex1.bytes is a jar file with a classes.dex in it.
83 InputStream is = this.getClass().getResourceAsStream("dex1.bytes");
84 assertNotNull(is);
86 copy(is, fos);
112 private void copy(InputStream is, OutputStream os) { argument
115 while ((b = is
[all...]
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DInflaterInputStream.java12 * distributed under the License is distributed on an "AS IS" BASIS,
73 * This is the most basic constructor. You only need to pass the {@code
74 * InputStream} from which the compressed data is to be read from. Default
78 * @param is
82 public InflaterInputStream(InputStream is) { argument
83 this(is, new Inflater(), BUF_SIZE);
90 * @param is
96 public InflaterInputStream(InputStream is, Inflater inf) { argument
97 this(is, inf, BUF_SIZE);
104 * @param is
112 InflaterInputStream(InputStream is, Inflater inf, int bsize) argument
[all...]
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
H A DIdentityScopeTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
58 IdentityScope is; field in class:IdentityScopeTest
96 is = new IdentityScopeStub("Aleksei Semenov");
97 assertNotNull(is);
98 assertEquals("Aleksei Semenov", is.getName());
112 is = new IdentityScopeStub("Aleksei Semenov", scope);
113 assertNotNull(is);
114 assertEquals("Aleksei Semenov", is.getName());
115 assertEquals(scope.getName(), is.getScope().getName());
137 * if permission is denie
[all...]
H A DDigestInputStreamTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
95 InputStream is = new ByteArrayInputStream(myMessage);
96 InputStream dis = new DigestInputStream(is, md);
140 InputStream is = new ByteArrayInputStream(myMessage);
141 DigestInputStream dis = new DigestInputStream(is, md);
179 InputStream is = new ByteArrayInputStream(myMessage);
180 DigestInputStream dis = new DigestInputStream(is, md);
204 * Assertion: <code>read()</code> must not update digest if it is off<br>
220 InputStream is = new ByteArrayInputStream(myMessage);
221 DigestInputStream dis = new DigestInputStream(is, m
[all...]
H A DDigestInputStream2Test.java12 * distributed under the License is distributed on an "AS IS" BASIS,
178 DigestInputStream is = new DigestInputStream(inStream, digest);
181 is.read(buf, -1, 0);
189 is.read(buf, -1, 0);
196 is.read(buf, 0, -1);
203 is.read(buf, -1, -1);
210 is.read(buf, 0, 1001);
217 is.read(buf, 1001, 0);
224 is.read(buf, 500, 501);
230 is
[all...]
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
H A DJarInputStreamTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
72 InputStream is = null;
75 is = new URL(jarName).openConnection().getInputStream();
77 jis = new JarInputStream(is);
95 is.close();
96 jis = new JarInputStream(is);
118 InputStream is = new URL(jarName2).openConnection()
120 JarInputStream jis = new JarInputStream(is);
124 is = new URL(jarName).openConnection().getInputStream();
125 jis = new JarInputStream(is);
[all...]
/dalvik/vm/mterp/x86/
H A DOP_ARRAY_LENGTH.S9 testl %ecx,%ecx # is null?
/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DCipherInputStream.java12 * distributed under the License is distributed on an "AS IS" BASIS,
33 * decryption is used with a {@code CipherInputStream}, the {@code
52 * @param is
58 public CipherInputStream(InputStream is, Cipher c) { argument
59 super(is);
67 * A {@code NullCipher} is created and used to process the data.
70 * @param is
74 protected CipherInputStream(InputStream is) { argument
75 this(is, new NullCipher());
81 * @return the next byte, or {@code -1} if the end of the stream is reache
[all...]
/dalvik/libcore/xml/src/test/java/tests/api/javax/xml/parsers/
H A DSAXParserTest.java11 * distributed under the License is distributed on an "AS IS" BASIS,
70 // it is a fake
80 // it is a fake
89 // it is a fake
98 // it is a fake
107 // it is a fake
118 // it is a fake
220 // InputStream is = new FileInputStream(list_wf[i]);
221 // parser.parse(is, dh, ParsingSupport.XML_SYSTEM_ID);
237 // InputStream is
[all...]
/dalvik/vm/mterp/armv5te/
H A DOP_FLOAT_TO_INT.S12 * expected common case is a "reasonable" value that converts directly
19 bl __aeabi_fcmpge @ is arg >= maxint?
26 bl __aeabi_fcmple @ is arg <= minint?
33 bl __aeabi_fcmpeq @ is arg == self?
H A DOP_FLOAT_TO_LONG.S10 * expected common case is a "reasonable" value that converts directly
17 bl __aeabi_fcmpge @ is arg >= maxlong?
25 bl __aeabi_fcmple @ is arg <= minlong?
33 bl __aeabi_fcmpeq @ is arg == self?
H A DOP_DOUBLE_TO_LONG.S10 * expected common case is a "reasonable" value that converts directly
20 bl __aeabi_dcmpge @ is arg >= maxlong?
30 bl __aeabi_dcmple @ is arg <= minlong?
40 bl __aeabi_dcmpeq @ is arg == self?
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/file/
H A DFileURLConnection.java12 * distributed under the License is distributed on an "AS IS" BASIS,
38 * This class is responsible for connecting, getting content and input stream of
45 private InputStream is; field in class:FileURLConnection
57 * @param url The URL this connection is connected to
77 * by this <code>URL</code>. If the file is a directory, it will return
88 is = getDirectoryListing(f);
92 is = new BufferedInputStream(new FileInputStream(f), 8192);
94 length = is.available();
113 // default is -1
183 return is;
[all...]
/dalvik/libcore/archive/src/main/java/java/util/jar/
H A DJarFile.java12 * distributed under the License is distributed on an "AS IS" BASIS,
40 * {@code JarFile} is used to read jar entries and their associated data from
79 JarFileInputStream(InputStream is, ZipEntry ze, JarVerifier ver) { argument
80 super(is);
166 * if this JAR file is signed whether it must be verified.
185 * if this JAR filed is signed whether it must be verified.
223 * if this JAR filed is signed whether it must be verified.
242 * if this {@code JarFile} is closed.
285 private byte[] getAllBytesFromStreamAndClose(InputStream is) throws IOException { argument
290 while (is
[all...]
/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DInflaterInputStreamTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
149 InputStream is = new ByteArrayInputStream(new byte[10]);
150 InflaterInputStream iis = new InflaterInputStream(is);
167 InputStream is = new ByteArrayInputStream(new byte[10]);
168 InflaterInputStream iis = new InflaterInputStream(is);
170 assertTrue(is.markSupported());
217 notes = "IOException & ZipException checking missed. Additional tests for fill method is not needed.",
223 notes = "IOException & ZipException checking missed. Additional tests for fill method is not needed.",
240 InputStream is = new ByteArrayInputStream(baos.toByteArray());
241 InflaterInputStream iis = new InflaterInputStream(is);
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/
H A DProcessTest.java12 * distributed under the License is distributed on an "AS IS" BASIS,
60 InputStream is = proc.getInputStream();
63 int c = is.read();
68 is.close();
94 // send data, and check if it is echoed back correctly
97 String str3 = "Here is some more data.\n";
105 InputStream is = proc.getInputStream();
108 int c = is.read();
113 is.close();
H A DProcess2Test.java12 * distributed under the License is distributed on an "AS IS" BASIS,
93 InputStream is = process.getErrorStream();
96 int c = is.read();
112 InputStream is = erProcess.getErrorStream();
115 int c = is.read();

Completed in 1349 milliseconds

1234567