/packages/apps/Email/src/org/apache/james/mime4j/ |
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 | 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 | 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...] |
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);
|
/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/Email/src/org/apache/james/mime4j/message/ |
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...] |
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 | 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);
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
H A D | ImapResponse.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 62 return is(0, ImapConstants.OK); 69 return is(0, ImapConstants.BAD); 76 return is(0, ImapConstants.NO); 85 return !isTagged() && getStringOrEmpty(index).is(responseType); 106 if (!getResponseCodeOrEmpty().is(ImapConstants.ALERT)) {
|
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...] |
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
H A D | ImapListTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 67 assertFalse(list.is(0, "abc")); 68 assertFalse(list.is(1, "ab")); 69 assertTrue (list.is(1, "abc")); 70 assertFalse(list.is(2, "abc")); 71 assertFalse(list.is(3, "abc")); 72 assertFalse(list.is(4, "abc")); 74 assertFalse(list.is(0, "ab", false)); 75 assertFalse(list.is(1, "ab", false)); 76 assertTrue (list.is( [all...] |
H A D | ImapStringTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 53 assertTrue(ImapString.EMPTY.is("")); 55 assertFalse(ImapString.EMPTY.is("a")); 70 assertFalse(s.is(null)); 71 assertFalse(s.is("")); 72 assertTrue(s.is("abcd")); 73 assertFalse(s.is("abc"));
|
/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/Exchange/exchange2/src/com/android/exchange/ |
H A D | EasResponse.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 48 * If this is set, it is essentially a 403 whereby the failure was due 107 InputStream is = null; 110 is = mEntity.getContent(); 116 is = new GZIPInputStream(is); 122 mInputStream = is; 123 return is;
|
/packages/apps/VoiceDialer/ |
H A D | Android.mk | 14 # Install the srec data files if VoiceDialer.apk is installed to system image. 17 # SREC_CONFIG_TARGET_FILES is from external/srec/config/en.us/config.mk and now can be cleaned up.
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
H A D | ImageLoader.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 162 InputStream is = null; 269 InputStream is = null; 271 is = mContext.getContentResolver().openInputStream(uri); 272 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is, false); 284 Utils.closeSilently(is); 294 InputStream is = null; 296 is = mContext.getContentResolver().openInputStream(uri); 298 + is); 301 BitmapFactory.decodeStream(is, nul [all...] |
/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/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/VideoEditor/src/com/android/videoeditor/util/ |
H A D | FileUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 43 * It is not possible to instantiate this class 54 * storage is not currnetly mounted 105 InputStream is = null; 107 is = context.getResources().openRawResource(maskRawResourceId); 108 bitmap = BitmapFactory.decodeStream(is); 118 if (is != null) { 119 is.close(); 196 InputStream is = null; 198 is [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppSendFileInfo.java | 145 FileInputStream is = null; 155 Log.e(TAG, "Content provider length is wrong (" + Long.toString(length) + 162 // is closed. 163 is = fd.createInputStream(); 175 if (is == null) { 177 is = (FileInputStream) contentResolver.openInputStream(uri); 186 length = is.available(); 187 if (V) Log.v(TAG, "file length is " + length); 194 return new BluetoothOppSendFileInfo(fileName, contentType, length, is, 0);
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
H A D | AccountSyncAdapter.java | 28 public boolean parse(InputStream is) throws IOException { argument
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | StockSource.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 84 InputStream is = null; 88 is = mResources.openRawResource(PHOTOS[idx]); 91 is = null; 94 return is;
|