Searched defs:is (Results 1 - 25 of 55) 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/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/Exchange/src/com/android/exchange/utility/
H A DWbxmlResponseLogger.java11 * distributed under the License is distributed on an "AS IS" BASIS,
46 // Not going to bother if there is a lot of content since most of that information
59 protected static byte[] getContentAsByteArray(InputStream is, int batchSize) argument
65 while ((count = is.read(data, 0, data.length)) != -1) {
87 // We need to figure out the encoding in the case that it is gzip and we need to
92 final InputStream is;
96 is = new GZIPInputStream(unwrappedIs);
98 is = response.getEntity().getContent();
101 final byte currentXMLBytes[] = getContentAsByteArray(is, MAX_LENGTH);
104 // tell us what the response is
[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/apps/Exchange/src/com/android/exchange/eas/
H A DEasSyncCollectionTypeBase.java55 * @param is The {@link InputStream} for the server response we're processing.
60 final Mailbox mailbox, final InputStream is) throws IOException;
74 * @param filter The lookback to use, or null if no lookback is desired.
59 getParser(final Context context, final Account account, final Mailbox mailbox, final InputStream is) argument
H A DEasSyncMail.java53 // The "empty" case is typical; we send a request for changes, and also specify a sync
62 // In Exchange 2007 and up, deletes-as-moves tag is "0" (false) or "1" (true)
117 final Mailbox mailbox, final InputStream is) throws IOException {
118 return new EmailSyncParser(context, is, mailbox, account);
146 * @param account The {@link Account} for this sync; its sync window is used if the mailbox
168 // Auto window is deprecated and will also use the default.
116 getParser(final Context context, final Account account, final Mailbox mailbox, final InputStream is) argument
/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
/packages/apps/Camera2/src/com/android/camera/util/
H A DXmpUtil.java11 * distributed under the License is distributed on an "AS IS" BASIS,
61 // Jpeg file is composed of many sections and image data. This class is used
87 Log.d(TAG, "XMP parse: only jpeg file is supported");
102 * @param is the input stream containing the JPEG image file.
105 public static XMPMeta extractXMPMeta(InputStream is) { argument
106 List<Section> sections = parse(is, true);
150 Log.d(TAG, "XMP parse: only jpeg file is supported");
275 // If the first section is Exif, insert XMP data before the second section,
308 * Gets the end of the xmp meta content. If there is n
338 parse(InputStream is, boolean readMetaOnly) argument
[all...]

Completed in 316 milliseconds

123