Searched defs:is (Results 1 - 25 of 56) sorted by relevance

123

/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/
H A DXmpUtilHelper.java11 * distributed under the License is distributed on an "AS IS" BASIS,
25 public static XMPMeta extractXMPMeta(InputStream is) { argument
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadUtils.java11 * distributed under the License is distributed on an "AS IS" BASIS,
46 public static void dump(JobContext jc, InputStream is, OutputStream os) argument
49 int rc = is.read(buffer, 0, buffer.length);
60 rc = is.read(buffer, 0, buffer.length);
H A DExif.java11 * distributed under the License is distributed on an "AS IS" BASIS,
32 public static int getOrientation(InputStream is) { argument
33 if (is == null) {
38 exif.readExif(is);
/packages/apps/TV/usbtuner/src/com/android/usbtuner/
H A DChannelScanFileParser.java11 * distributed under the License is distributed on an "AS IS" BASIS,
61 * @param is {@link InputStream} of a scan file. Each line matches one channel.
62 * The line format of the scan file is as follows:<br>
66 public static List<ScanChannel> parseScanFile(InputStream is) { argument
67 BufferedReader in = new BufferedReader(new InputStreamReader(is));
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
H A DRootInputStream.java13 * software distributed under the License is distributed on an *
29 * reached end of file. This is used by the parser's
36 private InputStream is = null; field in class:RootInputStream
46 public RootInputStream(InputStream is) { argument
47 this.is = is;
78 int b = is.read();
95 int n = is.read(b, off, len);
H A DSimpleContentHandler.java13 * software distributed under the License is distributed on an *
45 * Called when the body of a discrete (non-multipart) entity is encountered.
52 * @param is the contents of the body. Base64 or quoted-printable
56 public abstract void bodyDecoded(BodyDescriptor bd, InputStream is) throws IOException; argument
89 public final void body(BodyDescriptor bd, InputStream is) throws IOException { argument
91 bodyDecoded(bd, new Base64InputStream(is));
94 bodyDecoded(bd, new QuotedPrintableInputStream(is));
97 bodyDecoded(bd, is);
H A DCloseShieldInputStream.java13 * software distributed under the License is distributed on an *
37 private InputStream is; field in class:CloseShieldInputStream
39 public CloseShieldInputStream(InputStream is) { argument
40 this.is = is;
44 return is;
52 return is.read();
60 return is.available();
68 is = null;
76 is
[all...]
H A DAbstractContentHandler.java13 * software distributed under the License is distributed on an *
29 * The default is to todo nothing.
51 public void body(BodyDescriptor bd, InputStream is) throws IOException { argument
75 public void epilogue(InputStream is) throws IOException { argument
87 public void preamble(InputStream is) throws IOException { argument
111 public void raw(InputStream is) throws IOException { argument
H A DContentHandler.java13 * software distributed under the License is distributed on an *
103 * Called when a header (of a message or body part) is about to be parsed.
125 * @param is used to get the contents of the preamble.
128 void preamble(InputStream is) throws IOException; argument
134 * @param is used to get the contents of the epilogue.
137 void epilogue(InputStream is) throws IOException; argument
140 * Called when the body of a multipart entity is about to be parsed.
156 * Called when the body of a discrete (non-multipart) entity is about to
160 * @param is the contents of the body. NOTE: this is th
166 body(BodyDescriptor bd, InputStream is) argument
176 raw(InputStream is) argument
[all...]
H A DMimeStreamParser.java13 * software distributed under the License is distributed on an *
80 * @param is the stream to parse.
83 public void parse(InputStream is) throws IOException { argument
84 rootStream = new RootInputStream(is);
89 * Determines if this parser is currently in raw mode.
104 * including header fields and whatever is in the body.
133 * @param is the stream to parse.
136 private void parseEntity(InputStream is) throws IOException { argument
137 BodyDescriptor bd = parseHeader(is);
145 new MimeBoundaryInputStream(is, b
195 parseMessage(InputStream is) argument
209 parseBodyPart(InputStream is) argument
226 parseHeader(InputStream is) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
H A DMemoryBinaryBody.java13 * software distributed under the License is distributed on an *
52 * @param is the InputStream to use as source
55 public MemoryBinaryBody(InputStream is) throws IOException { argument
60 IOUtils.copy(is, out);
H A DMemoryTextBody.java13 * software distributed under the License is distributed on an *
53 public MemoryTextBody(InputStream is) throws IOException { argument
54 this(is, null);
57 public MemoryTextBody(InputStream is, String mimeCharset) argument
65 IOUtils.copy(is, out);
H A DTempFileBinaryBody.java13 * software distributed under the License is distributed on an *
51 * @param is the InputStream to use as source
54 public TempFileBinaryBody(InputStream is) throws IOException { argument
60 IOUtils.copy(is, out);
H A DTempFileTextBody.java13 * software distributed under the License is distributed on an *
52 public TempFileTextBody(InputStream is) throws IOException { argument
53 this(is, null);
56 public TempFileTextBody(InputStream is, String mimeCharset) argument
65 IOUtils.copy(is, out);
H A DHeader.java13 * software distributed under the License is distributed on an *
59 * @param is the stream to read the header from.
61 public Header(InputStream is) throws IOException { argument
73 parser.parse(is);
128 * Return Header Object as String representation. Each headerline is
/packages/services/Telephony/src/org/apache/james/mime4j/
H A DRootInputStream.java13 * software distributed under the License is distributed on an *
29 * reached end of file. This is used by the parser's
36 private InputStream is = null; field in class:RootInputStream
46 public RootInputStream(InputStream is) { argument
47 this.is = is;
78 int b = is.read();
95 int n = is.read(b, off, len);
H A DCloseShieldInputStream.java13 * software distributed under the License is distributed on an *
37 private InputStream is; field in class:CloseShieldInputStream
39 public CloseShieldInputStream(InputStream is) { argument
40 this.is = is;
44 return is;
52 return is.read();
60 return is.available();
68 is = null;
76 is
[all...]
H A DContentHandler.java13 * software distributed under the License is distributed on an *
103 * Called when a header (of a message or body part) is about to be parsed.
125 * @param is used to get the contents of the preamble.
128 void preamble(InputStream is) throws IOException; argument
134 * @param is used to get the contents of the epilogue.
137 void epilogue(InputStream is) throws IOException; argument
140 * Called when the body of a multipart entity is about to be parsed.
156 * Called when the body of a discrete (non-multipart) entity is about to
160 * @param is the contents of the body. NOTE: this is th
166 body(BodyDescriptor bd, InputStream is) argument
176 raw(InputStream is) argument
[all...]
H A DMimeStreamParser.java13 * software distributed under the License is distributed on an *
80 * @param is the stream to parse.
83 public void parse(InputStream is) throws IOException { argument
84 rootStream = new RootInputStream(is);
89 * Determines if this parser is currently in raw mode.
104 * including header fields and whatever is in the body.
133 * @param is the stream to parse.
136 private void parseEntity(InputStream is) throws IOException { argument
137 BodyDescriptor bd = parseHeader(is);
145 new MimeBoundaryInputStream(is, b
195 parseMessage(InputStream is) argument
209 parseBodyPart(InputStream is) argument
226 parseHeader(InputStream is) argument
[all...]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DChannelUtils.java11 * distributed under the License is distributed on an "AS IS" BASIS,
143 public static void copy(InputStream is, OutputStream os) throws IOException { argument
146 while ((len = is.read(buffer)) != -1) {
171 try (InputStream is = mContext.getContentResolver().openInputStream(logoUri);
173 copy(is, os);
H A DUtils.java11 * distributed under the License is distributed on an "AS IS" BASIS,
48 * <p>This class is also used to check whether TV app is running in tests or not.
69 public static void copy(InputStream is, OutputStream os) throws IOException { argument
72 while ((len = is.read(buffer)) != -1) {
99 * Return the Random class which is needed to make random data for testing.
100 * Default seed of the random is today's date.
107 * Executes a call on the main thread, blocking until it is completed.
133 Log.d(TAG, "Today's random seed is " + today);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppSendFileInfo.java151 "File based URI not in Environment.getExternalStorageDirectory() is not allowed.");
162 FileInputStream is = null;
172 Log.e(TAG, "Content provider length is wrong (" + Long.toString(length) +
180 // is closed.
181 is = fd.createInputStream();
186 length = getStreamSize(is);
191 is = fd.createInputStream();
205 if (is == null) {
207 is = (FileInputStream) contentResolver.openInputStream(uri);
212 length = getStreamSize(is);
231 getStreamSize(FileInputStream is) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/data/
H A DFilmstripItemUtils.java11 * distributed under the License is distributed on an "AS IS" BASIS,
40 * @return Whether the MIME is a video type.
50 * @return Whether the MIME is a image type.
60 * @param is An input stream with the data of the bitmap.
61 * @return The decoded width/height is stored in Point.x/Point.y
64 public static Point decodeBitmapDimension(InputStream is) { argument
68 BitmapFactory.decodeStream(is, null, justBoundsOpts);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DPhotoLoadingTestCase.java11 * distributed under the License is distributed on an "AS IS" BASIS,
52 // Test is probably going to fail as a result anyway.
67 * The instance generated here is always configured for 256x256 regardless of the
93 InputStream is = resources.openRawResource(resourceId);
94 byte[] content = readInputStreamFully(is);
101 protected byte[] readInputStreamFully(InputStream is) { argument
106 while ((count = is.read(buffer)) != -1) {
109 is.close();
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
H A DSapRilReceiver.java101 * Notify SapServer that this class is ready for shutdown.
120 * stream from the socket, and when the socket is closed, the pending
144 * @param is
149 private static int readMessage(InputStream is, byte[] buffer) throws IOException { argument
159 countRead = is.read(buffer, offset, remaining);
179 countRead = is.read(buffer, offset, remaining);
255 * Notify SapServer that the RIL socket is connected

Completed in 2470 milliseconds

123