/system/timezone/distro/core/src/main/com/android/timezone/distro/ |
TimeZoneDistro.java | 23 import java.io.InputStream; 30 * A time zone distro. This is a thin wrapper around an {@link InputStream} containing a zip archive 33 * {@link InputStream} to be closed. 64 private final InputStream inputStream; 75 * Creates a TimeZoneDistro wrapping an {@link InputStream}. 77 public TimeZoneDistro(InputStream inputStream) { 78 this.inputStream = inputStream; [all...] |
/tools/tradefederation/core/src/com/android/tradefed/config/gcs/ |
GCSConfigurationServer.java | 28 import java.io.InputStream; 61 InputStream hostConfigMapping = downloadFile(mHostConfigMapping); 76 private String getHostConfig(String hostname, InputStream hostConfigMappingFile) 125 public InputStream getConfig(String name) throws ConfigurationException { 134 * @return an {@link InputStream} is the file's content. 138 InputStream downloadFile(String name) throws ConfigurationException {
|
/libcore/support/src/test/java/tests/support/resource/ |
Support_Resources.java | 25 import java.io.InputStream; 37 public static InputStream getStream(String name) { 40 InputStream result = Support_Resources.class.getResourceAsStream(path); 112 InputStream in = Support_Resources.getStream(resourceName); 127 public static void copyLocalFileto(File dest, InputStream in) throws IOException { 137 private static int copy(InputStream in, OutputStream out) throws IOException { 150 InputStream in = new URL(url).openStream(); 166 public static InputStream getResourceStream(String name) { 167 InputStream is = Support_Resources.class.getResourceAsStream(name); 185 InputStream xml = Support_Resources.class.getResourceAsStream(path) [all...] |
/tools/tradefederation/core/src/com/android/tradefed/util/ |
StreamUtil.java | 27 import java.io.InputStream; 59 final InputStream stream = source.createInputStream(); 95 final InputStream stream = source.createInputStream(); 108 * @param stream the {@link InputStream} 112 public static String getStringFromStream(InputStream stream) throws IOException { 126 * @param stream the {@link InputStream} 130 public static ByteArrayList getByteArrayListFromStream(InputStream stream) throws IOException { 131 InputStream is = new BufferedInputStream(stream); 156 * @param inStream the {@link InputStream} 160 public static void copyStreams(InputStream inStream, OutputStream outStream [all...] |
/external/apache-harmony/support/src/test/java/tests/support/resource/ |
Support_Resources.java | 24 import java.io.InputStream; 37 public static InputStream getStream(String name) { 91 InputStream in = Support_Resources.getStream(src); 104 public static void copyLocalFileTo(File dest, InputStream in) throws IOException { 120 InputStream in = new URL(url).openStream(); 136 public static InputStream getResourceStream(String name) { 137 InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(name);
|
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/bsdiff/ |
BsPatch.java | 22 import java.io.InputStream; 69 RandomAccessFile oldData, OutputStream newData, InputStream patchData) 86 final InputStream patchData) 198 final InputStream patchData, 227 static final long readBsdiffLong(InputStream in) throws PatchFormatException, IOException { 257 final InputStream in, final byte[] destination, final int startAt, final int numBytes) 270 * Use an intermediate buffer to pipe bytes from an InputStream directly to an OutputStream. The 280 final InputStream in, final OutputStream out, final byte[] buffer, int copyLength)
|
/external/glide/library/src/main/java/com/bumptech/glide/ |
DrawableTypeRequest.java | 20 import java.io.InputStream; 31 private final ModelLoader<ModelType, InputStream> streamModelLoader; 36 ModelLoader<A, InputStream> streamModelLoader, 54 DrawableTypeRequest(Class<ModelType> modelClass, ModelLoader<ModelType, InputStream> streamModelLoader, 106 private GenericTranscodeRequest<ModelType, InputStream, File> getDownloadOnlyRequest() { 107 return optionsApplier.apply(new GenericTranscodeRequest<ModelType, InputStream, File>(File.class, this, 108 streamModelLoader, InputStream.class, File.class, optionsApplier));
|
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/ |
MockSocketConnectionTest.java | 18 import java.io.InputStream; 88 final InputStream in = a.getInputStream(); 95 final InputStream in = a.getInputStream(); 128 final InputStream in = a.getInputStream(); 151 final InputStream in = a.getInputStream(); 168 final InputStream in = a.getInputStream(); 174 final InputStream in = a.getInputStream();
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
IOUtils.java | 25 import java.io.InputStream; 82 // NOTE: This class is focussed on InputStream, OutputStream, Reader and 168 * Unconditionally close an <code>InputStream</code>. 170 * Equivalent to {@link InputStream#close()}, except any exceptions will be ignored. 173 * @param input the InputStream to close, may be null or already closed 175 public static void closeQuietly(InputStream input) { 206 * Get the contents of an <code>InputStream</code> as a <code>byte[]</code>. 211 * @param input the <code>InputStream</code> to read from 216 public static byte[] toByteArray(InputStream input) throws IOException { 284 * Get the contents of an <code>InputStream</code> as a character arra [all...] |
/external/jacoco/org.jacoco.core/src/org/jacoco/core/instr/ |
Instrumenter.java | 16 import java.io.InputStream; 116 * provided {@link InputStream} is not closed by this method. 127 public byte[] instrument(final InputStream input, final String name) 140 * {@link InputStream} and {@link OutputStream} instances are not closed by 153 public void instrument(final InputStream input, final OutputStream output, 170 * {@link InputStream} and {@link OutputStream} instances are not closed by 184 public int instrumentAll(final InputStream input, final OutputStream output, 208 private int instrumentZip(final InputStream input, 239 private int instrumentGzip(final InputStream input, 253 private int instrumentPack200(final InputStream input [all...] |
/external/lzma/Java/Tukaani/src/org/tukaani/xz/ |
LZMAInputStream.java | 13 import java.io.InputStream; 37 public class LZMAInputStream extends InputStream { 49 private InputStream in; 181 public LZMAInputStream(InputStream in) throws IOException { 215 public LZMAInputStream(InputStream in, int memoryLimit) 289 public LZMAInputStream(InputStream in, long uncompSize, byte propsByte, 326 public LZMAInputStream(InputStream in, long uncompSize, byte propsByte, 364 public LZMAInputStream(InputStream in, long uncompSize, 371 private void initialize(InputStream in, long uncompSize, byte propsByte, 400 private void initialize(InputStream in, long uncompSize [all...] |
/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
MockWebServerTest.java | 22 import java.io.InputStream; 78 InputStream in = response.getBodyStream(); 113 InputStream in = connection.getInputStream(); 132 InputStream in = connection.getInputStream(); 160 InputStream in = connection.getInputStream(); 173 InputStream in = connection.getInputStream(); 192 InputStream in = urlConnection.getInputStream(); 203 InputStream in2 = urlConnection2.getInputStream(); 227 InputStream responseBody = new ByteArrayInputStream("ABC".getBytes("UTF-8")); 231 InputStream in = server.getUrl("/").openConnection().getInputStream() [all...] |
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
AbstractParser.java | 36 import java.io.InputStream; 194 public MessageType parsePartialFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 207 public MessageType parsePartialFrom(InputStream input) throws InvalidProtocolBufferException { 212 public MessageType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 219 public MessageType parseFrom(InputStream input) throws InvalidProtocolBufferException { 225 InputStream input, ExtensionRegistryLite extensionRegistry) 237 InputStream limitedInput = new LimitedInputStream(input, size); 242 public MessageType parsePartialDelimitedFrom(InputStream input) 248 public MessageType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 255 public MessageType parseDelimitedFrom(InputStream input) throws InvalidProtocolBufferException [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
CertificateFactory.java | 6 import java.io.InputStream; 52 private InputStream currentStream = null; 56 private InputStream currentCrlStream = null; 66 InputStream in) 124 InputStream in) 179 InputStream in) 211 InputStream pis; 273 InputStream inStream) 300 InputStream in) 332 InputStream pis [all...] |
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
reader.h | 246 template<typename InputStream>
247 void SkipWhitespace(InputStream& is) {
248 internal::StreamLocalCopy<InputStream> copy(is);
249 InputStream& s(copy.s);
386 \tparam InputStream Type of input stream, implementing Stream concept.
392 template <unsigned parseFlags, typename InputStream, typename Handler>
393 ParseResult Parse(InputStream& is, Handler& handler) {
425 /*! \tparam InputStream Type of input stream, implementing Stream concept
431 template <typename InputStream, typename Handler>
432 ParseResult Parse(InputStream& is, Handler& handler) { [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
JarInputStreamTest.java | 22 import java.io.InputStream; 56 // Test for method java.util.jar.JarInputStream(java.io.InputStream) 57 InputStream is = new URL(jarName).openConnection().getInputStream(); 75 InputStream is = Support_Resources.getStream("Broken_entry.jar"); 97 InputStream is = new URL(jarName).openConnection().getInputStream(); 131 InputStream is = new URL(jarName2).openConnection().getInputStream(); 146 InputStream is = new URL(jarName).openConnection().getInputStream(); 159 InputStream is = new URL(intJarName).openConnection() 175 InputStream is = new URL(modJarName).openConnection() 202 InputStream is = new URL(modJarName).openConnection( [all...] |
/external/conscrypt/benchmark-graphs/src/main/java/org/conscrypt/graphgen/ |
Main.java | 28 import java.io.InputStream; 60 try (InputStream spec = Main.class.getResourceAsStream(JSON_TEMPLATES + args[0]); 61 InputStream jmhIn = new BufferedInputStream(new FileInputStream(args[1])); 70 InputStream header = Main.class.getResourceAsStream(HTML_TEMPLATES + name); 81 private static void convertJmhJsonData(InputStream specIn, InputStream jmhIn, OutputStream out) throws IOException {
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/ |
NFS4StringPrep.java | 13 import java.io.InputStream; 44 InputStream nfscsiFile = loader.getResourceAsStream("android/icu/dev/data/testdata/nfscsi.spp"); 48 InputStream nfscssFile = loader.getResourceAsStream("android/icu/dev/data/testdata/nfscss.spp"); 52 InputStream nfscisFile = loader.getResourceAsStream("android/icu/dev/data/testdata/nfscis.spp"); 56 InputStream nfsmxpFile = loader.getResourceAsStream("android/icu/dev/data/testdata/nfsmxp.spp"); 60 InputStream nfsmxsFile = loader.getResourceAsStream("android/icu/dev/data/testdata/nfsmxs.spp");
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
NFS4StringPrep.java | 12 import java.io.InputStream; 41 InputStream nfscsiFile = loader.getResourceAsStream("com/ibm/icu/dev/data/testdata/nfscsi.spp"); 45 InputStream nfscssFile = loader.getResourceAsStream("com/ibm/icu/dev/data/testdata/nfscss.spp"); 49 InputStream nfscisFile = loader.getResourceAsStream("com/ibm/icu/dev/data/testdata/nfscis.spp"); 53 InputStream nfsmxpFile = loader.getResourceAsStream("com/ibm/icu/dev/data/testdata/nfsmxp.spp"); 57 InputStream nfsmxsFile = loader.getResourceAsStream("com/ibm/icu/dev/data/testdata/nfsmxs.spp");
|
/external/oauth/core/src/main/java/net/oauth/http/ |
HttpMessage.java | 20 import java.io.InputStream; 49 public HttpMessage(String method, URL url, InputStream body) 59 protected InputStream body = null; 100 public final InputStream getBody() throws IOException 103 InputStream raw = openBody(); 111 protected InputStream openBody() throws IOException
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue99/ |
YamlBase64Test.java | 20 import java.io.InputStream; 61 InputStream inputStream = YamlBase64Test.class 63 Map<String, Object> bean = (Map<String, Object>) yaml.load(inputStream); 66 inputStream.close(); 70 InputStream input; 93 InputStream inputStream = YamlBase64Test.class 96 yaml.load(inputStream); 102 inputStream.close() [all...] |
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
ParserFactory.java | 32 import java.io.InputStream; 59 InputStream stream = new FileInputStream(f); 63 public static XmlPullParser create(@NonNull InputStream stream, @Nullable String name) 69 private static XmlPullParser create(@NonNull InputStream stream, @Nullable String name, 98 private static InputStream readAndClose(@NonNull InputStream stream, @Nullable String name,
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
PropertyResourceBundleTest.java | 23 import java.io.InputStream; 41 * java.util.PropertyResourceBundle#PropertyResourceBundle(java.io.InputStream) 45 InputStream propertiesStream = new ByteArrayInputStream( 59 new PropertyResourceBundle((InputStream) null); 150 InputStream propertiesStream = new ByteArrayInputStream( 172 MockResourceBundle(java.io.InputStream stream) throws IOException { 182 java.io.InputStream localStream = new java.io.ByteArrayInputStream(
|
/libcore/ojluni/src/main/java/java/io/ |
BufferedInputStream.java | 158 private InputStream getInIfOpen() throws IOException { 159 InputStream input = in; 184 public BufferedInputStream(InputStream in) { 200 public BufferedInputStream(InputStream in, int size) { 256 * method of <code>InputStream</code>. 303 * <code>{@link InputStream#read(byte[], int, int) read}</code> method of 304 * the <code>{@link InputStream}</code> class. As an additional 354 InputStream input = in; 362 * method of <code>InputStream</code>. 420 * method of <code>InputStream</code> [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/ |
Message.java | 23 import java.io.InputStream; 64 public Message(InputStream is) throws IOException { 173 * @see org.apache.james.mime4j.ContentHandler#body(org.apache.james.mime4j.BodyDescriptor, java.io.InputStream) 175 public void body(BodyDescriptor bd, InputStream is) throws IOException { 222 * @see org.apache.james.mime4j.ContentHandler#epilogue(java.io.InputStream) 224 public void epilogue(InputStream is) throws IOException { 235 * @see org.apache.james.mime4j.ContentHandler#preamble(java.io.InputStream) 237 public void preamble(InputStream is) throws IOException { 250 * @see org.apache.james.mime4j.ContentHandler#raw(java.io.InputStream) 252 public void raw(InputStream is) throws IOException [all...] |