/packages/apps/UnifiedEmail/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 * 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...] |
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/services/Telephony/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 | 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/Test/connectivity/sl4n/rapidjson/example/condense/ |
H A D | condense.cpp | 18 FileReadStream is(stdin, readBuffer, sizeof(readBuffer));
26 if (!reader.Parse(is, writer)) {
|
/packages/apps/Test/connectivity/sl4n/rapidjson/example/pretty/ |
H A D | pretty.cpp | 16 FileReadStream is(stdin, readBuffer, sizeof(readBuffer));
24 if (!reader.Parse<kParseValidateEncodingFlag>(is, writer)) {
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
H A D | reader.h | 1 // Tencent is pleased to support the open source community by making RapidJSON available.
11 // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
38 RAPIDJSON_DIAG_OFF(4127) // conditional expression is constant
68 A common usage model is to throw an exception instead of requiring the
141 kParseStopWhenDoneFlag = 8, //!< After parsing a complete JSON root from stream, stop further processing the rest of stream. When this flag is used, parser will not generate kParseErrorDocumentRootNotSingular error.
243 /*! \param is A input stream for skipping white spaces.
247 void SkipWhitespace(InputStream& is) {
argument 248 internal::StreamLocalCopy<InputStream> copy(is);
279 if (r != 0) { // some of characters is non-whitespace
344 template<> inline void SkipWhitespace(InsituStringStream& is) {
argument 349 SkipWhitespace(StringStream& is) argument 393 Parse(InputStream& is, Handler& handler) argument 432 Parse(InputStream& is, Handler& handler) argument 467 ParseObject(InputStream& is, Handler& handler) argument 517 ParseArray(InputStream& is, Handler& handler) argument 552 ParseNull(InputStream& is, Handler& handler) argument 565 ParseTrue(InputStream& is, Handler& handler) argument 578 ParseFalse(InputStream& is, Handler& handler) argument 592 ParseHex4(InputStream& is) argument 637 ParseString(InputStream& is, Handler& handler, bool isKey = false) argument 666 ParseStringToStream(InputStream& is, OutputStream& os) argument 745 InputStream& is; member in class:GenericReader::NumberStream 752 NumberStream(GenericReader& reader, InputStream& is) argument 772 ParseNumber(InputStream& is, Handler& handler) argument 987 ParseValue(InputStream& is, Handler& handler) argument 1241 Transit(IterativeParsingState src, Token token, IterativeParsingState dst, InputStream& is, Handler& handler) argument 1383 HandleError(IterativeParsingState src, InputStream& is) argument 1402 IterativeParse(InputStream& is, Handler& handler) argument [all...] |
H A D | encodings.h | 1 // Tencent is pleased to support the open source community by making RapidJSON available.
11 // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
40 typename Ch; //! Type of character. A "character" is actually a code unit in unicode's definition.
51 //! \param is Input stream.
55 static bool Decode(InputStream& is, unsigned* codepoint);
58 //! \param is Input stream to obtain codepoint.
60 //! \return true if it is valid.
63 static bool Validate(InputStream& is, OutputStream& os);
69 static CharType TakeBOM(InputByteStream& is);
73 static Ch Take(InputByteStream& is);
124 Decode(InputStream& is, unsigned* codepoint) argument 153 Validate(InputStream& is, OutputStream& os) argument 197 TakeBOM(InputByteStream& is) argument 210 Take(InputByteStream& is) argument 263 Decode(InputStream& is, unsigned* codepoint) argument 281 Validate(InputStream& is, OutputStream& os) argument 300 TakeBOM(InputByteStream& is) argument 307 Take(InputByteStream& is) argument 332 TakeBOM(InputByteStream& is) argument 339 Take(InputByteStream& is) argument 386 Decode(InputStream& is, unsigned* codepoint) argument 394 Validate(InputStream& is, OutputStream& os) argument 406 TakeBOM(InputByteStream& is) argument 413 Take(InputByteStream& is) argument 442 TakeBOM(InputByteStream& is) argument 449 Take(InputByteStream& is) argument 495 Decode(InputStream& is, unsigned* codepoint) argument 502 Validate(InputStream& is, OutputStream& os) argument 509 TakeBOM(InputByteStream& is) argument 516 Take(InputByteStream& is) argument 565 Decode(InputStream& is, unsigned* codepoint) argument 572 Validate(InputStream& is, OutputStream& os) argument 589 Transcode(InputStream& is, OutputStream& os) argument 599 Validate(InputStream& is, OutputStream& os) argument 608 Transcode(InputStream& is, OutputStream& os) argument 614 Validate(InputStream& is, OutputStream& os) argument [all...] |
/packages/apps/UnifiedEmail/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...] |
/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...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppSendFileInfo.java | 147 FileInputStream is = null; 157 Log.e(TAG, "Content provider length is wrong (" + Long.toString(length) + 165 // is closed. 166 is = fd.createInputStream(); 171 length = getStreamSize(is); 176 is = fd.createInputStream(); 190 if (is == null) { 192 is = (FileInputStream) contentResolver.openInputStream(uri); 197 length = getStreamSize(is); 199 is 216 getStreamSize(FileInputStream is) argument [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 54 InputStream is = null; 58 is = context.getContentResolver().openInputStream(uri); 59 bis = new BufferedInputStream(is); 62 is = res.openRawResource(resId); 63 bis = new BufferedInputStream(is); 77 Utils.closeSilently(is);
|
H A D | BitmapCropTask.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 151 InputStream is = regenerateInputStream(); 152 if (is != null) { 155 BitmapFactory.decodeStream(is, null, options); 156 Utils.closeSilently(is); 176 InputStream is = regenerateInputStream(); 177 setWallpaper(is, null, whichWallpaper); 178 Utils.closeSilently(is); 189 InputStream is = null; 191 is [all...] |
/packages/apps/TV/src/com/android/tv/license/ |
H A D | LicenseUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 35 * Checks if the license.html asset is include in the apk. 38 try (InputStream is = am.open("licenses.html")) { 46 * Checks if the rating_attribution.html asset is include in the apk. 49 try (InputStream is = am.open("rating_sources.html")) {
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 70 InputStream is, boolean isShareable) { 72 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(is, isShareable); 107 public static DumbBitmapRegionDecoder newInstance(InputStream is) { argument 108 Bitmap b = BitmapFactory.decodeStream(is); 290 InputStream is = mContext.getContentResolver().openInputStream(mUri); 291 return new BufferedInputStream(is); 296 InputStream is = regenerateInputStream(); 298 SimpleBitmapRegionDecoderWrapper.newInstance(is, false); 299 Utils.closeSilently(is); 69 newInstance( InputStream is, boolean isShareable) argument [all...] |
/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/provider_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)) {
|
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/ |
H A D | ImapResponse.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 61 return is(0, ImapConstants.OK); 68 return is(0, ImapConstants.BAD); 75 return is(0, ImapConstants.NO); 84 return !isTagged() && getStringOrEmpty(index).is(responseType); 105 if (!getResponseCodeOrEmpty().is(ImapConstants.ALERT)) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
H A D | XmpPresets.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 62 InputStream is = null; 65 is = context.getContentResolver().openInputStream(srcUri); 66 xmpMeta = XmpUtilHelper.extractXMPMeta(is); 70 Utils.closeSilently(is); 95 InputStream is = null; 98 is = context.getContentResolver().openInputStream(uriToEdit); 99 xmpMeta = XmpUtilHelper.extractXMPMeta(is); 102 Utils.closeSilently(is);
|