/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | Exif.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 30 public static int getOrientation(InputStream is) { argument 31 if (is == null) { 36 exif.readExif(is);
|
H A D | DownloadUtils.java | 11 * 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);
|
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/ |
H A D | XmpUtilHelper.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 25 public static XMPMeta extractXMPMeta(InputStream is) { argument
|
/packages/apps/Email/src/org/apache/james/mime4j/ |
H A D | RootInputStream.java | 13 * 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 D | SimpleContentHandler.java | 13 * 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 D | CloseShieldInputStream.java | 13 * 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 D | AbstractContentHandler.java | 13 * 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 D | ContentHandler.java | 13 * 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 D | MimeStreamParser.java | 13 * software distributed under the License is distributed on an *
83 * @param is the stream to parse.
86 public void parse(InputStream is) throws IOException {
argument 88 is = new LoggingInputStream(is, "MIME", true);
90 rootStream = new RootInputStream(is);
95 * Determines if this parser is currently in raw mode.
110 * including header fields and whatever is in the body.
139 * @param is the stream to parse.
142 private void parseEntity(InputStream is) throw argument 200 parseMessage(InputStream is) argument 210 parseBodyPart(InputStream is) argument 227 parseHeader(InputStream is) argument [all...] |
/packages/apps/Email/src/org/apache/james/mime4j/message/ |
H A D | MemoryBinaryBody.java | 13 * 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 D | MemoryTextBody.java | 13 * 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 D | TempFileBinaryBody.java | 13 * 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 D | TempFileTextBody.java | 13 * 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 D | Header.java | 13 * 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
|
H A D | Message.java | 13 * software distributed under the License is distributed on an *
61 * @param is the stream to parse.
64 public Message(InputStream is) throws IOException {
argument 67 parser.parse(is);
175 public void body(BodyDescriptor bd, InputStream is) throws IOException {
argument 180 is = new Base64InputStream(is);
182 is = new QuotedPrintableInputStream(is);
187 body = new MemoryTextBody(is, b 224 epilogue(InputStream is) argument 237 preamble(InputStream is) argument 252 raw(InputStream is) argument [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
H A D | AccountSyncAdapter.java | 28 public boolean parse(InputStream is) throws IOException { argument
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/ |
H A D | Util.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 40 public static byte[] readToByteArray(InputStream is) throws IOException { argument 44 while ((len = is.read(buf)) > -1) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
H A D | Uploader.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 162 private static void uploadContents(final InputStream is, final OutputStream os) argument 167 while ((numBytesRead = is.read(buf)) != -1) {
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | PhotoLoadingTestCase.java | 11 * 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/ |
H A D | Utils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 151 public static void copyStream(InputStream is, OutputStream os, int bufferSize) throws IOException { argument 152 if (is != null && os!=null) { 155 while ( (bytesRead = is.read(buffer))>=0) { 161 public static void safeCloseStream(InputStream is) { argument 162 if (is != null) { 164 is.close(); 189 // With calling identity cleared the current user is the foreground user.
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/ |
H A D | StreamItemPopulatorActivity.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 56 "This is a public service announcement. If you were even close to considering visiting" 197 InputStream is = getResources().openRawResource(resourceId); 198 return readInputStreamFully(is); 201 protected byte[] readInputStreamFully(InputStream is) { argument 203 byte[] buffer = new byte[is.available()]; 204 is.read(buffer); 205 is.close(); 248 // We don't care. This is just for test purposes.
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
H A D | ImportProcessor.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 44 * {@link VCardService} will create another object when there is another import request. 132 * Note: this code assumes that a given Uri is able to be opened more than once, 158 InputStream is = null; 163 is = mResolver.openInputStream(uri); 166 is = new ByteArrayInputStream(request.data); 169 if (is != null) { 170 successful = readOneVCard(is, estimatedVCardType, estimatedCharset, constructor, 176 if (is != null) { 178 is 215 readOneVCard(InputStream is, int vcardType, String charset, final VCardInterpreter interpreter, final int[] possibleVCardVersions) argument [all...] |
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
H A D | ImapList.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 67 * Return true if the element at {@code index} exists, is string, and equals to {@code s}. 70 public final boolean is(int index, String s) { method in class:ImapList 71 return is(index, s, false); 75 * Same as {@link #is(int, String)}, but does the prefix match if {@code prefixMatch}. 77 public final boolean is(int index, String s, boolean prefixMatch) { method in class:ImapList 79 return getStringOrEmpty(index).is(s); 87 * If {@code index} is out of range, returns {@link ImapElement#NONE}. 95 * If {@code index} is out of range or not a list, returns {@link ImapList#EMPTY}. 104 * If {@code index} is ou [all...] |
H A D | ImapString.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 31 * Class represents an IMAP "element" that is not a list. 59 // This is used only for parsing IMAP's FETCH ENVELOPE command, in which 60 // en_US-like date format is used like "01-Jan-2009 11:20:39 -0800", so this should be 80 * @return true if and only if the length of the string is larger than 0. 82 * Note: IMAP NIL is considered an empty string. See {@link ImapResponseParser 84 * On the other hand, a quoted/literal string with value NIL (i.e. "NIL" and {3}\r\nNIL) is 153 public final boolean is(String s) { method in class:ImapString
|
/packages/apps/Email/src/org/apache/commons/io/ |
H A D | IOUtils.java | 12 * distributed under the License is distributed on an "AS IS" BASIS,
60 * This means that there is no cause to use a <code>BufferedInputStream</code>
65 * the stream. This is to avoid making non-portable assumptions about the
66 * streams' origin and further use. Thus the caller is still responsible for
82 // NOTE: This class is focussed on InputStream, OutputStream, Reader and
135 * This is typically used in finally blocks.
153 * This is typically used in finally blocks.
171 * This is typically used in finally blocks.
189 * This is typically used in finally blocks.
208 * This method buffers the input internally, so there is n 295 toCharArray(InputStream is) argument 318 toCharArray(InputStream is, String encoding) argument [all...] |