HomeSort by relevance Sort by last modified time
    Searched refs:InputStream (Results 801 - 825 of 2666) sorted by null

<<31323334353637383940>>

  /external/testng/src/main/java/org/testng/xml/
Parser.java 13 import java.io.InputStream;
49 private InputStream m_inputStream;
55 * Constructs a <code>Parser</code> to use the inputStream as the source of
57 * @param fileName the filename corresponding to the inputStream or null if
73 public Parser(InputStream is) {
77 private void init(String fileName, InputStream is, IFileParser fp) {
100 // private static InputStream getInputStream(String fileName) throws FileNotFoundException {
103 // InputStream in;
167 InputStream inputStream = m_inputStream != nul
    [all...]
  /frameworks/base/services/core/java/com/android/server/pm/
PackageUsage.java 35 import java.io.InputStream;
117 private void readVersion0LP(Map<String, PackageParser.Package> packages, InputStream in,
122 // Note that the first line has already been read from the InputStream.
145 private void readVersion1LP(Map<String, PackageParser.Package> packages, InputStream in,
178 private String readLine(InputStream in, StringBuffer sb) throws IOException {
182 private String readToken(InputStream in, StringBuffer sb, char endOfToken)
  /frameworks/opt/photoviewer/src/com/android/ex/photo/util/
ImageUtils.java 37 import java.io.InputStream;
126 * Wrapper around {@link BitmapFactory#decodeStream(InputStream, Rect,
144 InputStream is = null;
158 Log.w(TAG, "ImageUtils#decodeStream(InputStream, Rect, Options): "
173 Log.e(TAG, "ImageUtils#decodeStream(InputStream, Rect, Options) threw an OOME", oome);
176 Log.e(TAG, "ImageUtils#decodeStream(InputStream, Rect, Options) threw an IOE", ioe);
192 * @param factory Used to create the InputStream.
215 * Utility class for when an InputStream needs to be read multiple times. For example, one pass
221 * Create a new InputStream. The caller of this method must be able to read the input
225 InputStream createInputStream() throws FileNotFoundException
    [all...]
  /frameworks/opt/vcard/tests/src/com/android/vcard/tests/
VCardParserTests.java 28 import java.io.InputStream;
94 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_simple_1);
104 parser.parse(inputStream);
107 inputStream.close();
112 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_nest);
132 parser.parse(inputStream);
135 inputStream.close();
146 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v30_ios_613_multiline)
    [all...]
  /frameworks/support/emoji/core/src/android/support/text/emoji/
MetadataListReader.java 28 import java.io.InputStream;
33 * Reads the emoji metadata from a given InputStream or ByteBuffer.
63 * Construct MetadataList from an input stream. Does not close the given InputStream, therefore
66 * @param inputStream InputStream to read emoji metadata from
68 static MetadataList read(InputStream inputStream) throws IOException {
69 final OpenTypeReader openTypeReader = new InputStreamOpenTypeReader(inputStream);
75 final int numRead = inputStream.read(buffer.array());
106 try (InputStream inputStream = assetManager.open(assetPath))
    [all...]
  /libcore/luni/src/main/java/javax/xml/parsers/
SAXParser.java 24 import java.io.InputStream;
109 * <p>Parse the content of the given {@link java.io.InputStream}
114 * @param is InputStream containing the content to be parsed.
117 * @throws IllegalArgumentException If the given InputStream is null.
120 * <code>InputStream</code>.
124 public void parse(InputStream is, HandlerBase hb)
127 throw new IllegalArgumentException("InputStream cannot be null");
135 * <p>Parse the content of the given {@link java.io.InputStream}
140 * @param is InputStream containing the content to be parsed.
144 * @throws IllegalArgumentException If the given <code>InputStream</code> i
    [all...]
  /libcore/luni/src/test/java/libcore/java/nio/file/
DefaultFileSystemProviderTest.java 24 import java.io.InputStream;
92 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ)) {
100 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), WRITE)) {
105 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), APPEND)) {
110 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(),
117 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), DELETE_ON_CLOSE,
125 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ);
127 InputStream is2 = provider.newInputStream(filesSetup.getDataFilePath(), READ)) {
136 try (InputStream is = provider.newInputStream(null)){
140 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath()
    [all...]
  /libcore/ojluni/src/main/java/java/util/jar/
Manifest.java 30 import java.io.InputStream;
68 public Manifest(InputStream is) throws IOException {
186 * Reads the Manifest from the specified InputStream. The entry
193 public void read(InputStream is) throws IOException {
326 FastInputStream(InputStream in) {
330 FastInputStream(InputStream in, int size) {
  /packages/apps/Camera2/src/com/android/camera/ui/
ZoomView.java 37 import java.io.InputStream;
67 InputStream isForDimensions = getInputStream();
76 Log.e(TAG, "exception closing dimensions inputstream", e);
139 InputStream is = getInputStream();
270 // TODO: Cache the inputstream
271 private InputStream getInputStream() {
272 InputStream is = null;
  /packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
HttpFetcher.java 32 import java.io.InputStream;
68 InputStream is = null;
116 * @return The response body as a InputStream. Or {@literal null} if status code is not 2xx.
119 public static InputStream sendRequestAsInputStream(
140 InputStream is = httpUrlConnection.getInputStream();
268 /** Disconnect {@link HttpURLConnection} when InputStream is closed */
274 public HttpInputStreamWrapper(HttpURLConnection conn, InputStream in) {
  /tools/apksig/src/apksigner/java/com/android/apksigner/
PasswordRetriever.java 24 import java.io.InputStream;
54 private final Map<File, InputStream> mFileInputStreams = new HashMap<>();
142 InputStream in = mFileInputStreams.get(file);
315 private static byte[] readEncodedPassword(InputStream in) throws IOException {
345 for (InputStream in : mFileInputStreams.values()) {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
SAXParserTest.java 43 import java.io.InputStream;
138 private InputStream getResource(String name) {
214 // InputStream is = new FileInputStream(list_wf[i]);
231 // InputStream is = new FileInputStream(list_wf[i]);
430 InputStream in = null;
480 InputStream in = null;
498 InputStream is = new FileInputStream(list_wf[i]);
506 InputStream is = new FileInputStream(list_nwf[i]);
516 parser.parse((InputStream) null, dh);
523 InputStream is = new FileInputStream(list_wf[0])
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DocumentsClientTestCase.java 23 import java.io.InputStream;
96 final InputStream in = getInstrumentation().getContext().getContentResolver()
110 protected byte[] readFully(InputStream in) throws IOException {
  /cts/tests/accessibility/src/android/view/accessibility/cts/
ServiceControlUtils.java 30 import java.io.InputStream;
65 InputStream in = new FileInputStream(fd.getFileDescriptor());
130 InputStream in = new FileInputStream(fd.getFileDescriptor());
  /cts/tests/tests/content/src/android/content/res/cts/
AssetManagerTest.java 34 import java.io.InputStream;
55 InputStream inputStream = mAssets.open(fileName);
56 assertNotNull(inputStream);
58 assertContextEquals(expect, inputStream);
59 inputStream = mAssets.open(fileName, AssetManager.ACCESS_BUFFER);
60 assertNotNull(inputStream);
61 assertContextEquals(expect, inputStream);
187 private void assertContextEquals(final String expect, final InputStream inputStream)
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
InputTestCase.java 32 import java.io.InputStream;
174 InputStream is =
190 private static String readFully(InputStream is) throws IOException {
  /cts/tests/tests/security/src/android/security/cts/
HwRngTest.java 32 import java.io.InputStream;
123 InputStream in = null;
132 private static byte[] readyFully(InputStream in) throws IOException {
  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
DiskLruCache.java 30 import java.io.InputStream;
215 public static String readAsciiLine(InputStream in) throws IOException {
340 InputStream in = new BufferedInputStream(new FileInputStream(journalFile), IO_BUFFER_SIZE);
490 InputStream[] ins = new InputStream[valueCount];
723 private static String inputStreamToString(InputStream in) throws IOException {
733 private final InputStream[] ins;
735 private Snapshot(String key, long sequenceNumber, InputStream[] ins) {
753 public InputStream getInputStream(int index) {
765 for (InputStream in : ins)
    [all...]
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
DiskLruCache.java 30 import java.io.InputStream;
215 public static String readAsciiLine(InputStream in) throws IOException {
340 InputStream in = new BufferedInputStream(new FileInputStream(journalFile), IO_BUFFER_SIZE);
490 InputStream[] ins = new InputStream[valueCount];
723 private static String inputStreamToString(InputStream in) throws IOException {
733 private final InputStream[] ins;
735 private Snapshot(String key, long sequenceNumber, InputStream[] ins) {
753 public InputStream getInputStream(int index) {
765 for (InputStream in : ins)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/content/
FileProvider.java 22 import java.io.InputStream;
41 implements PipeDataWriter<InputStream> {
135 Bundle opts, InputStream args) {
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
BitmapDecode.java 27 import java.io.InputStream;
51 private static byte[] streamToBytes(InputStream is) {
68 java.io.InputStream is;
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DiskLruCache.java 30 import java.io.InputStream;
215 public static String readAsciiLine(InputStream in) throws IOException {
340 InputStream in = new BufferedInputStream(new FileInputStream(journalFile), IO_BUFFER_SIZE);
490 InputStream[] ins = new InputStream[valueCount];
723 private static String inputStreamToString(InputStream in) throws IOException {
733 private final InputStream[] ins;
735 private Snapshot(String key, long sequenceNumber, InputStream[] ins) {
753 public InputStream getInputStream(int index) {
765 for (InputStream in : ins)
    [all...]
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
ClassUnloadDebuggee.java 29 import java.io.InputStream;
184 InputStream is = url.openStream();
199 private int loadClassData(InputStream in, byte[] raw, int size) throws IOException {
  /external/guava/guava/src/com/google/common/io/
GwtWorkarounds.java 24 import java.io.InputStream;
30 * Provides simple GWT-compatible substitutes for {@code InputStream}, {@code OutputStream},
92 * A GWT-compatible substitute for an {@code InputStream}.
100 * Views a {@code ByteInput} as an {@code InputStream}.
102 @GwtIncompatible("InputStream")
103 static InputStream asInputStream(final ByteInput input) {
105 return new InputStream() {
  /external/jarjar/src/main/com/tonicsystems/jarjar/util/
ClassHeaderReader.java 30 private InputStream in;
53 public void read(InputStream in) throws IOException {
152 private static int read(InputStream in, byte[] b, int off, int len) throws IOException {

Completed in 2112 milliseconds

<<31323334353637383940>>