/external/guava/guava-tests/test/com/google/common/io/ |
ByteStreamsTest.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 123 private static void skipHelper(long n, int expect, InputStream in) 125 ByteStreams.skipFully(in, n); 126 assertEquals(expect, in.read()); 127 in.close(); 135 ByteArrayDataInput in = ByteStreams.newDataInput(b); local 137 in.readInt(); 144 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local 145 assertEquals(0x12345678, in.readInt()) 155 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local 162 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local 173 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local 183 ByteArrayDataInput in = ByteStreams.newDataInput( local 193 ByteArrayDataInput in = ByteStreams.newDataInput(data); local 200 ByteArrayDataInput in = ByteStreams.newDataInput(data); local 208 ByteArrayDataInput in = ByteStreams.newDataInput(data); local 214 ByteArrayDataInput in = ByteStreams.newDataInput(data); local 222 ByteArrayDataInput in = ByteStreams.newDataInput(data); local 231 ByteArrayDataInput in = ByteStreams.newDataInput(data); local 236 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local 241 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local 254 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local 267 ByteArrayDataInput in = ByteStreams.newDataInput(bytes, 2); local 277 ByteArrayDataInput in = ByteStreams.newDataInput(new byte[2]); local 284 ByteArrayDataInput in = ByteStreams.newDataInput(bais); local 394 InputStream in = newTestStream(100); local 400 InputStream in = newTestStream(100); local 406 InputStream in = newTestStream(100); local 412 InputStream in = newTestStream(100); local [all...] |
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/vogar/src/vogar/ |
OutcomeStore.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 95 JsonReader in = new JsonReader(new FileReader(file)); local 96 in.beginObject(); 97 while (in.hasNext()) { 98 String outcomeName = in.nextName(); 101 in.skipValue(); 106 in.beginObject(); 107 while (in.hasNext()) { 108 String fieldName = in.nextName() [all...] |
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/data/ |
CompactDataInputOutputTest.java | 31 private CompactDataInput in; field in class:CompactDataInputOutputTest 37 in = new CompactDataInput(new PipedInputStream(pipe)); 83 assertEquals(Long.valueOf(value), Long.valueOf(in.readVarInt())); 84 assertEquals(Integer.valueOf(-1), Integer.valueOf(in.read())); 111 final boolean[] actual = in.readBooleanArray();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserManagerServiceUserInfoTest.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 97 Parcel in = Parcel.obtain(); local 98 in.unmarshall(data, 0, data.length); 99 in.setDataPosition(0); 100 UserInfo read = UserInfo.CREATOR.createFromParcel(in); 101 in.recycle();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
DataFormatFieldTest.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 172 // implemented in 176 ObjectInputStream in = null; local 193 in = new ObjectInputStream(new ByteArrayInputStream(bytes 197 dfield2 = (Field) in.readObject(); 204 in.readObject(); 217 if (in != null) 218 in.close();
|
/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 56 InputStream in = DeflaterOutputStreamTest.createInflaterStream(GZIPOutputStream.class, true); local 57 assertEquals(1, in.read()); 58 assertEquals(2, in.read()); 59 assertEquals(3, in.read()); 60 in.close(); 64 InputStream in = DeflaterOutputStreamTest.createInflaterStream(GZIPOutputStream.class, false); local 66 in.read(); 70 in.close() [all...] |
/device/google/marlin/common/ |
utils.mk | 22 # $(call find-word-in-list,w,wlist) 23 # finds an exact match of word w in word list wlist 28 # search word w in list wl, if found match m, return stripped word w 31 define find-word-in-list 40 # $(call match-word-in-list,w,wlist) 41 # does an exact match of word w in word list wlist 44 # return output of an exact match of word w in wordlist wlist 48 define match-word-in-list 51 $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \ 57 # matches prefix p in wlist using delimiter deli [all...] |
/device/google/wahoo/ |
utils.mk | 22 # $(call find-word-in-list,w,wlist) 23 # finds an exact match of word w in word list wlist 28 # search word w in list wl, if found match m, return stripped word w 31 define find-word-in-list 40 # $(call match-word-in-list,w,wlist) 41 # does an exact match of word w in word list wlist 44 # return output of an exact match of word w in wordlist wlist 48 define match-word-in-list 51 $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \ 57 # matches prefix p in wlist using delimiter deli [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. 96 Scanner in = new Scanner(logs); local 97 while (in.hasNextLine()) { 98 String line = in.nextLine(); 103 in.close(); 104 // 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 109 in = new Scanner(logs); 112 while (in.hasNextLine()) { 113 String line = in.nextLine(); 124 if (in != null) { 125 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 112 BufferedReader in = null; local 114 in = new BufferedReader(new FileReader("/proc/sys/kernel/randomize_va_space")); 115 int level = Integer.parseInt(in.readLine().trim()); 122 if (in != null) { 123 in.close();
|
/cts/tests/tests/selinux/common/src/android/security/ |
SELinuxTargetSdkTestBase.java | 20 BufferedReader in = null; local 22 in = new BufferedReader(new FileReader(filename)); 23 return in.readLine().trim(); 25 if (in != null) { 26 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 64 private static byte[] readStream(InputStream in, ByteArrayOutputStream baos, byte[] readBuffer) 68 int amt = in.read(readBuffer); 76 in.close(); 99 InputStream in = element.open(path); local 101 byte[] bytes = readStream(in, baos, readBuffer); 107 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/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/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/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.cli/src/org/jacoco/cli/internal/commands/ |
ExecInfo.java | 40 return "Print exec file content in human readable format."; 61 final FileInputStream in = new FileInputStream(file); local 62 final ExecutionDataReader reader = new ExecutionDataReader(in); 80 in.close();
|