/external/lzma/Java/Tukaani/src/org/tukaani/xz/ |
SingleXZInputStream.java | 22 * Decompresses exactly one XZ Stream in streamed mode (no seeking). 24 * and the read position in the input stream is left at the first byte 43 private InputStream in; field in class:SingleXZInputStream 59 private static byte[] readStreamHeader(InputStream in) throws IOException { 61 new DataInputStream(in).readFully(streamHeader); 67 * XZ Stream from <code>in</code> without a memory usage limit. 70 * from <code>in</code>. The header of the first Block is not read 73 * @param in input stream from which XZ-compressed 77 * input is not in the XZ format 88 * from <code>in</code [all...] |
/external/okhttp/okio/okio/src/test/java/okio/ |
RealBufferedSourceTest.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 39 InputStream in = new RealBufferedSource(source).inputStream(); local 40 assertEquals(0, in.available()); 44 assertEquals('a', in.read()); 45 assertEquals(Segment.SIZE - 1, in.available()); 50 assertEquals(Segment.SIZE - 1, in.read(data, 0, data.length)); 55 assertEquals('b', in.read()); 56 assertEquals(1, in.available()); 60 assertEquals('c', in.read()) 71 InputStream in = source.inputStream(); local [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/dependency/ |
CachedDependencyResolverFileCacheTest.java | 91 ObjectInputStream in = new ObjectInputStream(new FileInputStream(dest)); local 94 return in.readObject(); 96 in.close();
|
/external/vogar/src/vogar/ |
Md5Cache.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 60 FileInputStream in = new FileInputStream(file); local 63 while ((byteCount = in.read(bytes)) > 0) { 68 in.close(); 105 // Do we have it in cache?
|
/external/vogar/src/vogar/monitor/ |
HostMonitor.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 57 InputStream in = new BufferedInputStream(socket.getInputStream()); local 58 if (checkStream(in)) { 60 return followStream(in); 69 + port + " failed; retrying in 1s"); 84 private boolean checkStream(InputStream in) throws IOException { 85 in.mark(1); 86 if (in.read() == -1) { 89 in.reset() [all...] |
/frameworks/base/core/java/android/os/ |
IncidentReportArgs.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 53 public IncidentReportArgs(Parcel in) { 54 readFromParcel(in); 81 public void readFromParcel(Parcel in) { 82 mAll = in.readInt() != 0; 85 int N = in.readInt(); 87 mSections.add(in.readInt()); 91 N = in.readInt(); 93 mHeaders.add(in.createByteArray()) [all...] |
/frameworks/base/core/java/android/view/textclassifier/ |
EntityConfidence.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 55 * @param source a map from entity to a confidence value in the range 0 (low confidence) to 71 * Returns an immutable list of entities found in the classified text ordered from 114 public EntityConfidence createFromParcel(Parcel in) { 115 return new EntityConfidence(in); 124 private EntityConfidence(Parcel in) { 125 final int numEntities = in.readInt(); 128 mEntityConfidence.put(in.readString(), in.readFloat()) [all...] |
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
ManageDialog.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 // mConfig can be null if we are a restricted user, in that case don't show this dialog 152 // [1] and [2] are received data in bytes and packets. 156 // [9] and [10] are transmitted data in bytes and packets. 166 DataInputStream in = null; local 168 // See dev_seq_printf_stats() in net/core/dev.c. 169 in = new DataInputStream(new FileInputStream("/proc/net/dev")); 173 String line = in.readLine().trim(); 188 in.close() [all...] |
/frameworks/ml/nn/runtime/test/benchmark/src/com/example/android/nn/benchmark/ |
NNTestBase.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 90 InputStream in = assetManager.open(modelAssetName); local 98 while((read = in.read(buffer)) != -1){ 103 in.close();
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
DeletedEphemeralSsidsStoreDataTest.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 final XmlPullParser in = Xml.newPullParser(); local 88 in.setInput(inputStream, StandardCharsets.UTF_8.name()); 89 mDeletedEphemeralSsidsStoreData.deserializeData(in, in.getDepth(), shared);
|
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/ |
RenderTest.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 92 InputStream in = new FileInputStream(sourceLocation); local 97 while ((len = in.read(buf)) > 0) { 100 in.close();
|
/frameworks/support/textclassifier/src/main/java/androidx/textclassifier/ |
EntityConfidence.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 * @param source a map from entity to a confidence value in the range 0 (low confidence) to 75 * Returns an immutable list of entities found in the classified text ordered from 118 public EntityConfidence createFromParcel(Parcel in) { 119 return new EntityConfidence(in); 128 private EntityConfidence(Parcel in) { 129 final int numEntities = in.readInt(); 132 mEntityConfidence.put(in.readString(), in.readFloat()) [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
SSLSocketBenchmark.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 InputStream in = s.getInputStream(); local 88 int n = in.read(buffer); 93 in.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
AttributedCharacterIteratorAttributeTest.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 73 ObjectInputStream in = null; local 93 in = new ObjectInputStream(new ByteArrayInputStream(bytes 97 dattribute2 = (AttributedCharacterIterator.Attribute) in.readObject(); 111 if (in != null) 112 in.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
GZIPOutputStreamTest.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 178 // Must create in this order so that GZIPOutputStream writes the header before 183 GZIPInputStream in = new GZIPInputStream(pin); local 192 assertEquals(1, in.read()); 193 assertEquals(2, in.read()); 194 assertEquals(3, in.read()); 196 in.close();
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
ClassLoaderTestSupport.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 73 * Copy a resource in the package directory to the indicated 80 InputStream in = loader.getResourceAsStream(PACKAGE_PATH + resourceName); local 81 if (in == null) { 86 Streams.copy(in, out); 88 in.close();
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldAttributedCharacterIteratorAttributeTest.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 158 ObjectInputStream in = null; local 169 in = new ObjectInputStream(new ByteArrayInputStream(bytes 173 attr2 = (AttributedCharacterIterator.Attribute) in.readObject(); 187 if (in != null) 188 in.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldAndroidZipStreamTest.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 139 ZipInputStream in = new ZipInputStream(bytesIn); local 144 ZipEntry entry = in.getNextEntry(); 149 while ((len = in.read(buf)) > 0) { 162 assertNull("should only be three entries", in.getNextEntry()); 164 in.close();
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
BinaryTempFileBody.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 68 InputStream in = getInputStream(); local 70 IOUtils.copy(in, base64Out); 73 in.close(); 77 public BinaryTempFileBodyInputStream(InputStream in) { 78 super(in);
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
EmailMessageCursor.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 41 * To get around this, we load null values in those columns, and then in this wrapper we directly 44 * This will still potentially blow up if this cursor gets wrapped in a CrossProcessCursorWrapper 72 final InputStream in = cr.openInputStream(htmlUri); local 75 underlyingHtmlString = IOUtils.toString(in); 77 in.close(); 88 final InputStream in = cr.openInputStream(textUri); local 91 underlyingTextString = IOUtils.toString(in); [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
Fingerprint.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 35 * Name of the digest algorithm we use in {@link java.security.MessageDigest} 83 DigestInputStream in = null; local 86 in = new DigestInputStream(stream, DIGESTER); 90 int n = in.read(bytes); 95 if (in != null) in.close(); 98 return new Fingerprint(in.getMessageDigest().digest()); 175 throw new IllegalArgumentException("illegal hex digit in " + streamId) [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
BlockingHttpClientTests.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 152 BufferedInputStream in = new BufferedInputStream(response); local 155 while ((read = in.read()) != -1) { 159 in.close(); 163 fail("IOException in onSuccess");
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
WindowsLoader.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 35 BufferedReader in = null; local 47 in = new BufferedReader(new InputStreamReader(socket.getInputStream())); 54 while ((line = in.readLine()) != null) { 83 if (in != null) { 84 in.close();
|
/build/kati/ |
strutil.h | 4 // you may not use this file except in compliance with the License. 9 // Unless required by applicable law or agreed to in writing, software 31 return in != r.in || s != r.s || i != r.i; 34 const StringPiece* in; member in struct:WordScanner::Iterator 39 explicit WordScanner(StringPiece in);
|
/development/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/ |
HelloCompute.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 ImageView in = (ImageView) findViewById(R.id.displayin); local 46 in.setImageBitmap(mBitmapIn);
|