Searched refs:is (Results 1 - 25 of 237) sorted by relevance

12345678910

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
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 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 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...]
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);
/packages/apps/Test/connectivity/sl4n/rapidjson/example/condense/
H A Dcondense.cpp18 FileReadStream is(stdin, readBuffer, sizeof(readBuffer));
26 if (!reader.Parse(is, writer)) {
/packages/apps/Test/connectivity/sl4n/rapidjson/example/pretty/
H A Dpretty.cpp16 FileReadStream is(stdin, readBuffer, sizeof(readBuffer));
24 if (!reader.Parse<kParseValidateEncodingFlag>(is, writer)) {
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
H A Dreader.h1 // 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 Dencodings.h1 // 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 DMessage.java13 * 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 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 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);
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
H A DImapListTest.java11 * 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/TV/src/com/android/tv/license/
H A DLicenseUtils.java11 * 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/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/Dialer/java/com/android/voicemail/impl/mail/store/imap/
H A DImapResponse.java11 * distributed under the License is distributed on an "AS IS" BASIS,
53 return is(0, ImapConstants.OK);
58 return is(0, ImapConstants.BAD);
63 return is(0, ImapConstants.NO);
72 return !isTagged() && getStringOrEmpty(index).is(responseType);
91 if (!getResponseCodeOrEmpty().is(ImapConstants.ALERT)) {
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
H A DImapResponse.java11 * 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/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
H A DInputStreamProvider.java53 InputStream is = newStream();
54 if (is != null) {
57 BitmapFactory.decodeStream(is, null, options);
58 Utils.closeSilently(is);
105 InputStream is = null;
108 is = newStreamNotNull();
109 decoder = BitmapRegionDecoder.newInstance(is, false);
113 Utils.closeSilently(is);
114 is = null;
130 is
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DXmpPresets.java11 * 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);
/packages/apps/Test/connectivity/sl4n/rapidjson/example/prettyauto/
H A Dprettyauto.cpp29 FileReadStream is(stdin, readBuffer, sizeof(readBuffer));
30 AutoUTFInputStream<unsigned, FileReadStream> eis(is); // NEW
49 //if (!reader.Parse<kParseValidateEncodingFlag>(is, writer)) {
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppSendFileInfo.java150 "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/Gallery2/src/com/android/gallery3d/data/
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/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...]
/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();

Completed in 1014 milliseconds

12345678910