HomeSort by relevance Sort by last modified time
    Searched defs:in (Results 226 - 250 of 3057) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/test/java/libcore/java/util/zip/
GZIPOutputStreamTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
50 InputStream in = DeflaterOutputStreamTest.createInflaterStream(GZIPOutputStream.class, true); local
51 assertEquals(1, in.read());
52 assertEquals(2, in.read());
53 assertEquals(3, in.read());
54 in.close();
58 InputStream in = DeflaterOutputStreamTest.createInflaterStream(GZIPOutputStream.class, false); local
60 in.read();
64 in.close()
    [all...]
ZipInputStreamTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
58 ZipInputStream in = new ZipInputStream(new ByteArrayInputStream(bytes)); local
61 ZipEntry entry = in.getNextEntry();
66 while ((count = in.read(buffer)) != -1) {
70 assertNull(in.getNextEntry()); // There's only one entry in the Zip files we create.
72 in.close();
81 ZipInputStream in = new ZipInputStream(emptyZipIn); local
83 ZipEntry entry = in.getNextEntry()
    [all...]
  /cts/hostsidetests/abioverride/src/android/abioverride/cts/
AbiOverrideTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
29 * Test to check the APK runs in 32bit ABI.
44 * The class name of the main activity in the APK.
49 * The class name of the main activity in the APK.
95 Scanner in = new Scanner(logs); local
96 while (in.hasNextLine()) {
97 String line = in.nextLine();
102 in.close();
103 // Verify that TEST_STRING is actually found in logs
    [all...]
  /cts/hostsidetests/trustedvoice/src/android/trustedvoice/cts/
TrustedVoiceHostTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
56 * The class name of the main activity in the APK.
94 Scanner in = null; local
106 in = new Scanner(logs);
109 while (in.hasNextLine()) {
110 String line = in.nextLine();
121 if (in != null) {
122 in.close();
  /cts/libs/vogar-expect/src/vogar/util/
Strings.java 5 * 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 BufferedReader in = new BufferedReader(reader); local
47 while ((line = in.readLine()) != null) {
51 in.close();
60 BufferedReader in = local
64 while ((line = in.readLine()) != null) {
67 in.close();
  /cts/tests/tests/security/src/android/security/cts/
AslrTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
108 BufferedReader in = null; local
110 in = new BufferedReader(new FileReader("/proc/sys/kernel/randomize_va_space"));
111 int level = Integer.parseInt(in.readLine().trim());
118 if (in != null) {
119 in.close();
  /dalvik/dx/src/com/android/multidex/
Path.java 5 * 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 static byte[] readStream(InputStream in, ByteArrayOutputStream baos, byte[] readBuffer)
69 int amt = in.read(readBuffer);
77 in.close();
100 InputStream in = element.open(path); local
102 byte[] bytes = readStream(in, baos, readBuffer);
108 in.close();
  /development/samples/Vault/src/com/example/android/vault/
Utils.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
59 final InputStream in = new FileInputStream(file); local
64 while ((count = in.read(buffer)) != -1) {
69 in.close();
  /external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/
ParserLoader.java 6 Redistribution and use in source and binary forms, with or without
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
20 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
51 // load all the class files in the "classDir" related to the grammarName
60 final InputStream in = new BufferedInputStream(new FileInputStream(f)); local
61 final byte[] classData = new byte[in.available()];
62 in.read(classData)
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
SequenceOfTest.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
83 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local
85 .decode(in));
108 public Object getDecodedObject(BerInputStream in)
116 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local
117 in.setVerify();
118 seqVerify.decode(in);
  /external/apache-harmony/support/src/test/java/tests/support/
Support_GetLocal.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); local
48 while ((result = in.read(buf)) != -1) {
51 in.close();
62 InputStream in = new URL(url).openStream(); local
68 while ((result = in.read(buf)) != -1) {
71 in.close();
80 InputStream in = new URL(url).openStream(); local
84 while ((result = in.read(buf)) != -1)
    [all...]
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
CertificateRequestTest.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
80 HandshakeIODataStream in = new HandshakeIODataStream(); local
81 in.append(encoded);
82 CertificateRequest message_2 = new CertificateRequest(in, message.length());
88 in.append(encoded);
90 message_2 = new CertificateRequest(in, message.length() - 1);
95 in.append(encoded);
96 in.append(new byte[] { 1, 2, 3 });
98 message_2 = new CertificateRequest(in, message.length() + 3)
    [all...]
ServerKeyExchangeTest.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
55 HandshakeIODataStream in = new HandshakeIODataStream(); local
56 in.append(encoded);
57 ServerKeyExchange message_2 = new ServerKeyExchange(in, message
68 in.append(encoded);
70 new ServerKeyExchange(in, message.length() - 1,
76 in.append(encoded);
77 in.append(new byte[] { 1, 2, 3 });
79 new ServerKeyExchange(in, message.length() + 3
109 HandshakeIODataStream in = new HandshakeIODataStream(); local
158 HandshakeIODataStream in = new HandshakeIODataStream(); local
    [all...]
  /external/doclava/src/com/google/doclava/
JarUtils.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
69 InputStream in = fromJar.getInputStream(entry); local
75 while ((s = in.read(buffer)) > 0) {
82 in.close();
  /external/emma/core/java12/com/vladium/emma/rt/
RTExitHook.java 43 InputStream in = null; local
50 in = RTExitHook.class.getResourceAsStream (CLOSURE_RESOURCE);
51 if (in != null)
54 closureMap.load (in);
69 if (in != null) try { in.close (); } catch (IOException ignore) { ignore.printStackTrace (); }
71 in = null;
120 private Class m_RT; // keep our RT class pinned in memory
  /external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
StrictLineReader.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
36 * cache entries or cache journal. Unlike the {@link java.io.BufferedReader} which in conjunction
42 * We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1.
49 private final InputStream in; field in class:StrictLineReader
53 * Buffered data is stored in {@code buf}. As long as no exception occurs, 0 <= pos <= end
54 * and the data in the range [pos, end) is buffered for reading. At end of input, if there is
65 * @param in the {@code InputStream} to read data from.
68 * @throws NullPointerException if {@code in} or {@code charset} is null.
71 public StrictLineReader(InputStream in, Charset charset)
    [all...]
  /external/guava/guava-tests/test/com/google/common/io/
CloseablesTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
71 TestInputStream in = new TestInputStream( local
73 Closeables.closeQuietly(in);
74 assertTrue(in.closed());
78 TestReader in = new TestReader(TestOption.CLOSE_THROWS); local
79 Closeables.closeQuietly(in);
80 assertTrue(in.closed());
101 expectLastCall().andThrow(new IOException("This should only appear in the "
120 // Close the closeable using the Closeables, passing in the swallowExceptio
    [all...]
MultiInputStreamTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
84 InputStream in = joined.openStream(); local
85 assertFalse(in.markSupported());
86 assertEquals(10, in.available());
88 while (in.read() != -1) {
91 assertEquals(0, in.available());
  /external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/
ClassFileDumperTest.java 67 InputStream in = new FileInputStream(new File(location, filename)); local
70 while ((b = in.read()) != -1) {
73 in.close();
  /external/jacoco/org.jacoco.agent.test/src/org/jacoco/agent/
AgentJarTest.java 44 final InputStream in = AgentJar.getResource().openStream(); local
45 assertAgentContents(in);
50 final InputStream in = AgentJar.getResourceAsStream(); local
51 assertAgentContents(in);
76 private void assertAgentContents(InputStream in) throws IOException {
77 final ZipInputStream zip = new ZipInputStream(in);
85 in.close();
  /external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/
ContentTypeDetector.java 42 private final InputStream in; field in class:ContentTypeDetector
51 * @param in
56 public ContentTypeDetector(final InputStream in) throws IOException {
57 if (in.markSupported()) {
58 this.in = in;
60 this.in = new BufferedInputStream(in, BUFFER_SIZE);
62 this.in.mark(BUFFER_SIZE);
63 this.type = determineType(this.in);
    [all...]
  /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/
TargetLoader.java 61 InputStream in = getClassData(clazz); local
65 while ((len = in.read(buffer)) != -1) {
68 in.close();
  /external/jacoco/org.jacoco.examples/src/org/jacoco/examples/
ExecDump.java 49 * in case of error reading a input file
61 final FileInputStream in = new FileInputStream(file); local
62 final ExecutionDataReader reader = new ExecutionDataReader(in);
80 in.close();
100 * in case of errors executing the example
  /external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/resources/
Resources.java 63 * name of the static resource, see constants in this class
125 final InputStream in = Resources.class.getResourceAsStream(name); local
129 while ((len = in.read(buffer)) != -1) {
132 in.close();
  /external/jarjar/src/main/com/tonicsystems/jarjar/
DepFind.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
42 InputStream in = entry.openStream(); local
44 header.read(in);
49 in.close();
61 InputStream in = entry.openStream(); local
63 new ClassReader(in).accept(
69 in.close();

Completed in 1602 milliseconds

1 2 3 4 5 6 7 8 91011>>