/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/Gallery2/src/com/android/gallery3d/data/ |
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);
|
H A D | Exif.java | 11 * 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/src/com/android/tv/tuner/ |
H A D | ChannelScanFileParser.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 71 * @param is {@link InputStream} of a scan file. Each line matches one channel. 72 * The line format of the scan file is as follows:<br> 76 public static List<ScanChannel> parseScanFile(InputStream is) { argument 77 BufferedReader in = new BufferedReader(new InputStreamReader(is));
|
/packages/apps/UnifiedEmail/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 * 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 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
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
H A D | ChannelUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 140 public static void copy(InputStream is, OutputStream os) throws IOException { argument 143 while ((len = is.read(buffer)) != -1) { 168 try (InputStream is = mContext.getContentResolver().openInputStream(logoUri); 170 copy(is, os);
|
H A D | Utils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 46 * <p>This class is also used to check whether TV app is running in tests or not. 67 public static void copy(InputStream is, OutputStream os) throws IOException { argument 70 while ((len = is.read(buffer)) != -1) { 97 * Return the Random class which is needed to make random data for testing. 98 * Default seed of the random is today's date. 105 * Executes a call on the main thread, blocking until it is completed. 129 Log.d(TAG, "Today's random seed is " + today);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppSendFileInfo.java | 150 "File based URI not in Environment.getExternalStorageDirectory() is not allowed."); 161 FileInputStream is = null; 171 Log.e(TAG, "Content provider length is wrong (" + Long.toString(length) + 179 // is closed. 180 is = fd.createInputStream(); 185 length = getStreamSize(is); 190 is = fd.createInputStream(); 204 if (is == null) { 206 is = (FileInputStream) contentResolver.openInputStream(uri); 211 length = getStreamSize(is); 234 getStreamSize(FileInputStream is) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | FilmstripItemUtils.java | 11 * 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 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/Camera2/src/com/android/camera/util/ |
H A D | XmpUtil.java | 11 * 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...] |
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
H A D | ImportProcessor.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 45 * {@link VCardService} will create another object when there is another import request. 133 * Note: this code assumes that a given Uri is able to be opened more than once, 159 InputStream is = null; 164 is = mResolver.openInputStream(uri); 167 is = new ByteArrayInputStream(request.data); 170 if (is != null) { 171 successful = readOneVCard(is, estimatedVCardType, estimatedCharset, constructor, 177 if (is != null) { 179 is 216 readOneVCard(InputStream is, int vcardType, String charset, final VCardInterpreter interpreter, final int[] possibleVCardVersions) argument [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
H A D | ImapList.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 66 * Return true if the element at {@code index} exists, is string, and equals to {@code s}. (case 69 public final boolean is(int index, String s) { method in class:ImapList 70 return is(index, s, false); 73 /** Same as {@link #is(int, String)}, but does the prefix match if {@code prefixMatch}. */ 74 public final boolean is(int index, String s, boolean prefixMatch) { method in class:ImapList 76 return getStringOrEmpty(index).is(s); 83 * Return the element at {@code index}. If {@code index} is out of range, returns {@link 91 * Return the element at {@code index} if it's a list. If {@code index} is out of range or not a 100 * Return the element at {@code index} if it's a string. If {@code index} is ou [all...] |
H A D | ImapString.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 28 * Class represents an IMAP "element" that is not a list. 61 // This is used only for parsing IMAP's FETCH ENVELOPE command, in which 62 // en_US-like date format is used like "01-Jan-2009 11:20:39 -0800", so this should be 82 * @return true if and only if the length of the string is larger than 0. 83 * <p>Note: IMAP NIL is considered an empty string. See {@link ImapResponseParser 85 * and {3}\r\nNIL) is treated literally. 109 /** @return value parsed as a number, or 0 if the string is not a number. */ 114 /** @return value parsed as a number, or {@code defaultValue} if the string is not a number. */ 148 public final boolean is(Strin method in class:ImapString [all...] |
/packages/apps/Email/provider_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...] |