/external/vogar/src/vogar/tasks/ |
ExtractJarResourceTask.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 40 InputStream in = new BufferedInputStream( local 45 while ((count = in.read(buf)) != -1) { 49 in.close();
|
/libcore/ojluni/src/main/java/java/io/ |
SequenceInputStream.java | 9 * by Oracle in the LICENSE file that accompanied this code. 11 * This code is distributed in the hope that it will be useful, but WITHOUT 14 * version 2 for more details (a copy is included in the LICENSE file that 48 InputStream in; field in class:SequenceInputStream 56 * the enumeration will be read, in order, 80 * will be read in order, first <code>s1</code> 102 * Continues reading in the next stream if an EOF is reached. 105 if (in != null) { 106 in.close(); 110 in = (InputStream) e.nextElement() [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
ProxyInputStream.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 44 // the proxy is stored in a protected superclass variable named 'in' 53 return in.read(); 63 return in.read(bts); 75 return in.read(bts, st, end); 85 return in.skip(ln); 94 return in.available(); 102 in.close() [all...] |
ProxyReader.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 44 // the proxy is stored in a protected superclass variable named 'in' 53 return in.read(); 63 return in.read(chr); 75 return in.read(chr, st, end); 85 return in.skip(ln); 94 return in.ready(); 102 in.close() [all...] |
/packages/experimental/BugReportSender/src/com/android/bugreportsender/ |
BugReportPreviewActivity.java | 45 InputStream in = null; local 47 // TODO: do this in a background thread, using handlers and all that nonsense. 48 in = getContentResolver().openInputStream(uri); 49 String text = BugReportParser.extractSystemLogs(in, section); 61 if (in != null) { 62 in.close();
|
/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...] |
/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...] |
/frameworks/base/core/java/android/os/ |
VibrationEffect.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 86 * each pair, the value in the amplitude array determines the strength of the vibration and the 87 * value in the timing array determines how long it vibrates for. An amplitude of 0 implies no 119 * each pair, the value in the amplitude array determines the strength of the vibration and the 120 * value in the timing array determines how long it vibrates for. An amplitude of 0 implies no 147 * of the app they come from, in order to provide a cohesive experience for users across 148 * the entire device. They also may be custom tailored to the device hardware in order to 169 * of the app they come from, in order to provide a cohesive experience for users across 170 * the entire device. They also may be custom tailored to the device hardware in order t [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/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
BatteryStatsWifiTransferTests.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 43 InputStream in = new BufferedInputStream(conn.getInputStream()); local 48 while ((count = in.read(data)) != -1) { 72 InputStream in = conn.getInputStream(); local 73 in.close();
|
/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();
|
/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/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
|