Home
last modified time | relevance | path

Searched refs:is (Results 1 – 25 of 445) sorted by relevance

12345678910>>...18

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dreader.h247 void SkipWhitespace(InputStream& is) { in SkipWhitespace() argument
248 internal::StreamLocalCopy<InputStream> copy(is); in SkipWhitespace()
344 template<> inline void SkipWhitespace(InsituStringStream& is) { in SkipWhitespace() argument
345 is.src_ = const_cast<char*>(SkipWhitespace_SIMD(is.src_)); in SkipWhitespace()
349 template<> inline void SkipWhitespace(StringStream& is) { in SkipWhitespace() argument
350 is.src_ = SkipWhitespace_SIMD(is.src_); in SkipWhitespace()
393 ParseResult Parse(InputStream& is, Handler& handler) { in Parse() argument
395 return IterativeParse<parseFlags>(is, handler); in Parse()
401 SkipWhitespace(is); in Parse()
403 if (is.Peek() == '\0') { in Parse()
[all …]
Dencodings.h124 static bool Decode(InputStream& is, unsigned* codepoint) { in Decode()
125 #define COPY() c = is.Take(); *codepoint = (*codepoint << 6) | ((unsigned char)c & 0x3Fu) in Decode()
128 Ch c = is.Take(); in Decode()
153 static bool Validate(InputStream& is, OutputStream& os) { in Validate()
154 #define COPY() os.Put(c = is.Take()) in Validate()
197 static CharType TakeBOM(InputByteStream& is) { in TakeBOM()
199 Ch c = Take(is); in TakeBOM()
201 c = is.Take(); in TakeBOM()
203 c = is.Take(); in TakeBOM()
205 c = is.Take(); in TakeBOM()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
DDoxyfile.in6 # All text after a double hash (##) is considered a comment and is placed in
7 # front of the TAG it is preceding.
9 # All text after a single hash (#) is considered a comment and will be ignored.
10 # The format is:
21 # that follow. The default is UTF-8 which is also the encoding used for all text
25 # The default value is: UTF-8.
29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
31 # project for which the documentation is generated. This name is used in the
33 # The default value is: My Project.
39 # control system is used.
[all …]
Ddom.md3 Document Object Model(DOM) is an in-memory representation of JSON for query and manipulation. The b…
34 …TF16`, `UTF32`. Note that, these 3 types are also template class. `UTF8<>` is `UTF8<char>`, which …
61 The `Allocator` defines which allocator class is used when allocating/deallocating memory for `Docu…
63 …enericDocument` is `MemoryPoolAllocator`. This allocator actually allocate memory sequentially, an…
65is `CrtAllocator`, of which CRT is short for C RunTime library. This allocator simply calls the st…
69 `Document` provides several functions for parsing. In below, (1) is the fundamental function, while…
76 GenericDocument& GenericDocument::ParseStream(InputStream& is);
80 GenericDocument& GenericDocument::ParseStream(InputStream& is);
84 GenericDocument& GenericDocument::ParseStream(InputStream& is);
111 `kParseNoFlags` | No flag is set.
[all …]
Dfaq.md7 1. What is RapidJSON?
9 …RapidJSON is a C++ library for parsing and generating JSON. You may check all [features](doc/featu…
11 2. Why is RapidJSON named so?
13 It is inspired by [RapidXML](http://rapidxml.sourceforge.net/), which is a fast XML DOM parser.
21 …Yes, it is free under MIT license. It can be used in commercial applications. Please check the det…
25 …Yes. A simple executable which parses a JSON and prints its statistics is less than 30KB on Window…
43 …Yes. It is deployed in both client and server real applications. A community member reported that …
45 10. How RapidJSON is tested?
59 1. What is JSON?
61 …JSON (JavaScript Object Notation) is a lightweight data-interchange format. It uses human readable…
[all …]
Dtutorial.md11 Each JSON value is stored in a type called `Value`. A `Document`, representing the DOM, contains th…
41 The JSON is now parsed into `document` as a *DOM tree*:
45 … RFC 4627, only objects or arrays were allowed as root values. In this case, the root is an object.
102 // Using a reference for consecutive access is handy and faster.
116 …f a value is a string, it is invalid to call `GetInt()`, for example. In debug mode it will fail a…
122 By default, `SizeType` is typedef of `unsigned`. In most systems, array is limited to store up to 2…
126 Array is similar to `std::vector`, instead of using indices, you may also use iterator to access al…
147 printf("Type of member %s is %s\n",
153 Type of member hello is String
154 Type of member t is True
[all …]
Dinternals.md11 The basic relationships of SAX and DOM is shown in the following UML diagram.
15 The core of the relationship is the `Handler` concept. From the SAX side, `Reader` parses a JSON fr…
17 With this design, SAX is not dependent on DOM. Even `Reader` and `Writer` have no dependencies betw…
21 …onal concepts: `Allocator`, `Encoding` and `Stream`. Their inheritance hierarchy is shown as below.
27 `Value` (actually a typedef of `GenericValue<UTF8<>>`) is the core of DOM API. This section describ…
31is a [variant type](http://en.wikipedia.org/wiki/Variant_type). In RapidJSON's context, an instanc…
103 * To reduce memory consumption for 64-bit architecture, `SizeType` is typedef as `unsigned` instead…
105 * An `Int` is always an `Int64`, but the converse is not always true.
109 …, each JSON type contains redundant `kXXXType` and `kXXXFlag`. This design is for optimizing the o…
113 Number is a bit more complicated. For normal integer values, it can contains `kIntFlag`, `kUintFlag…
[all …]
Dstream.md3 In RapidJSON, `rapidjson::Stream` is a concept for reading/writing JSON. Here we first show how to …
13 `StringStream` is the most basic input stream. It represents a complete, read-only JSON stored in m…
28 Since this is very common usage, `Document::Parse(const char*)` is provided to do exactly the same …
37 Note that, `StringStream` is a typedef of `GenericStringStream<UTF8<> >`, user may use another enco…
41 `StringBuffer` is a simple output stream. It allocates a memory buffer for writing the whole JSON. …
53 When the buffer is full, it will increases the capacity automatically. The default capacity is 256 …
62 Similarly, `StringBuffer` is a typedef of `GenericStringBuffer<UTF8<> >`.
68 However, if the JSON is big, or memory is limited, you can use `FileReadStream`. It only read a par…
83 FileReadStream is(fp, readBuffer, sizeof(readBuffer));
86 d.ParseStream(is);
[all …]
Dsax.md5 … (typedef of `GenericReader<...>`) is the SAX-style parser for JSON, and `Writer` (typedef of `Gen…
13 For example, here is a JSON.
118 `Null()` is called when the `Reader` encounters a JSON null value.
120 `Bool(bool)` is called when the `Reader` encounters a JSON true or false value.
124is called when the `Reader` encounters a string. The first parameter is pointer to the string. The…
126is a set of name-value pairs. If the object contains members it first calls `Key()` for the name o…
128is similar to object but simpler. At the beginning of an array, the `Reader` calls `BeginArary()`.…
136 As mentioned before, `Reader` is a typedef of a template class `GenericReader`:
157 Note that, the default character type of `UTF16` is `wchar_t`. So this `reader`needs to call `Strin…
159 The third template parameter `Allocator` is the allocator type for internal data structure (actuall…
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile6 # All text after a hash (#) is considered a comment and will be ignored
7 # The format is:
18 # that follow. The default is UTF-8 which is also the encoding used for all
25 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
32 # if some version control system is used.
36 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
38 # If a relative path is entered, it will be relative to the location
43 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
52 # The OUTPUT_LANGUAGE tag is used to specify the language in which all
53 # documentation generated by doxygen is written. Doxygen will use this
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/doc/
Ddbreg_API_doxyfile6 # All text after a hash (#) is considered a comment and will be ignored
7 # The format is:
18 # that follow. The default is UTF-8 which is also the encoding used for all
25 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
32 # if some version control system is used.
36 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
38 # If a relative path is entered, it will be relative to the location
43 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
52 # The OUTPUT_LANGUAGE tag is used to specify the language in which all
53 # documentation generated by doxygen is written. Doxygen will use this
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DCloseShieldInputStream.java37 private InputStream is; field in CloseShieldInputStream
39 public CloseShieldInputStream(InputStream is) { in CloseShieldInputStream() argument
40 this.is = is; in CloseShieldInputStream()
44 return is; in getUnderlyingStream()
52 return is.read(); in read()
60 return is.available(); in available()
68 is = null; in close()
76 is.reset(); in reset()
83 if (is == null) in markSupported()
85 return is.markSupported(); in markSupported()
[all …]
DMimeStreamParser.java83 public void parse(InputStream is) throws IOException { in parse() argument
84 rootStream = new RootInputStream(is); in parse()
136 private void parseEntity(InputStream is) throws IOException { in parseEntity() argument
137 BodyDescriptor bd = parseHeader(is); in parseEntity()
145 new MimeBoundaryInputStream(is, bd.getBoundary()); in parseEntity()
150 tempIs = new MimeBoundaryInputStream(is, bd.getBoundary()); in parseEntity()
165 handler.epilogue(new CloseShieldInputStream(is)); in parseEntity()
174 is = new EOLConvertingInputStream( in parseEntity()
175 new Base64InputStream(is)); in parseEntity()
178 is = new EOLConvertingInputStream( in parseEntity()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapMessage.java378 public static SapMessage readMessage(int requestType, InputStream is) { in readMessage() argument
384 paramCount = is.read(); in readMessage()
385 skip(is, 2); // Skip the 2 padding bytes in readMessage()
390 if (!newMessage.parseParameters(paramCount, is)) { in readMessage()
446 private static void read(InputStream is, byte[] buffer) throws IOException { in read() argument
451 tmpBytesRead = is.read(buffer, bytesRead, bytesToRead - bytesRead); in read()
466 private static void skip(InputStream is, int count) throws IOException { in skip() argument
468 is.read(); // Do not use the InputStream.skip as it fails for some stream types in skip()
481 private boolean parseParameters(int count, InputStream is) throws IOException { in parseParameters() argument
488 paramId = is.read(); in parseParameters()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapListTest.java67 assertFalse(list.is(0, "abc")); in testIs()
68 assertFalse(list.is(1, "ab")); in testIs()
69 assertTrue (list.is(1, "abc")); in testIs()
70 assertFalse(list.is(2, "abc")); in testIs()
71 assertFalse(list.is(3, "abc")); in testIs()
72 assertFalse(list.is(4, "abc")); in testIs()
74 assertFalse(list.is(0, "ab", false)); in testIs()
75 assertFalse(list.is(1, "ab", false)); in testIs()
76 assertTrue (list.is(1, "abc", false)); in testIs()
77 assertFalse(list.is(2, "ab", false)); in testIs()
[all …]
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto11 * distributed under the License is distributed on an "AS IS" BASIS,
27 // Sizing: The aspect ratio of the image is given in aspect_ratio.
30 // There is no guarantee that the specific size requested will actually
35 // Color: Images can be either "tintable" or not. A "tintable" image is such that
36 // all its content is defined in its alpha channel, while its color
41 // it is assumed that the exact same image will always be returned.
54 // For example, if the `content_uri` is
59 // Note that the resulting image is not guaranteed to match the requested
66 // Indicates whether this image is "tintable" or not.
67 // An image is "tintable" when all its content is defined in its
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DMessage.java64 public Message(InputStream is) throws IOException { in Message() argument
67 parser.parse(is); in Message()
175 public void body(BodyDescriptor bd, InputStream is) throws IOException { in body() argument
180 is = new Base64InputStream(is); in body()
182 is = new QuotedPrintableInputStream(is); in body()
187 body = new MemoryTextBody(is, bd.getCharset()); in body()
189 body = new MemoryBinaryBody(is); in body()
224 public void epilogue(InputStream is) throws IOException { in epilogue() argument
228 while ((b = is.read()) != -1) { in epilogue()
237 public void preamble(InputStream is) throws IOException { in preamble() argument
[all …]
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
DInputStreamProvider.java53 InputStream is = newStream(); in getImageBounds() local
54 if (is != null) { in getImageBounds()
57 BitmapFactory.decodeStream(is, null, options); in getImageBounds()
58 Utils.closeSilently(is); in getImageBounds()
105 InputStream is = null; in readCroppedBitmap() local
108 is = newStreamNotNull(); in readCroppedBitmap()
109 decoder = BitmapRegionDecoder.newInstance(is, false); in readCroppedBitmap()
113 Utils.closeSilently(is); in readCroppedBitmap()
114 is = null; in readCroppedBitmap()
130 is = newStream(); in readCroppedBitmap()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dencodingstest.cpp316 StringStream is(encodedStr); in TEST() local
318 bool result = UTF8<>::Decode(is, &decodedCodepoint); in TEST()
327 StringStream is(encodedStr); in TEST() local
329 bool result = UTF8<>::Validate(is, os2); in TEST()
376 GenericStringStream<UTF16<> > is(encodedStr); in TEST() local
378 bool result = UTF16<>::Decode(is, &decodedCodepoint); in TEST()
387 GenericStringStream<UTF16<> > is(encodedStr); in TEST() local
389 bool result = UTF16<>::Validate(is, os2); in TEST()
407 GenericStringStream<UTF32<> > is(encodedStr); in TEST() local
409 bool result = UTF32<>::Decode(is, &decodedCodepoint); in TEST()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DXmpUtil.java105 public static XMPMeta extractXMPMeta(InputStream is) { in extractXMPMeta() argument
106 List<Section> sections = parse(is, true); in extractXMPMeta()
338 private static List<Section> parse(InputStream is, boolean readMetaOnly) { in parse() argument
340 if (is.read() != 0xff || is.read() != M_SOI) { in parse()
345 while ((c = is.read()) != -1) { in parse()
350 while ((c = is.read()) == 0xff) { in parse()
363 section.data = new byte[is.available()]; in parse()
364 is.read(section.data, 0, section.data.length); in parse()
369 int lh = is.read(); in parse()
370 int ll = is.read(); in parse()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java170 FileInputStream is = null; in generateFileInfo() local
189 is = fd.createInputStream(); in generateFileInfo()
194 length = getStreamSize(is); in generateFileInfo()
198 is = fd.createInputStream(); in generateFileInfo()
212 if (is == null) { in generateFileInfo()
214 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
219 length = getStreamSize(is); in generateFileInfo()
221 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
239 return new BluetoothOppSendFileInfo(fileName, contentType, length, is, 0); in generateFileInfo()
242 private static long getStreamSize(FileInputStream is) throws IOException { in getStreamSize() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java133 InputStream is = null; in getMetadataOrientation() local
144 is = context.getContentResolver().openInputStream(uri); in getMetadataOrientation()
145 exif.readExif(is); in getMetadataOrientation()
152 if (is != null) { in getMetadataOrientation()
153 is.close(); in getMetadataOrientation()
257 InputStream is = null; in loadRegionBitmap() local
264 is = context.getContentResolver().openInputStream(uri); in loadRegionBitmap()
265 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is, false); in loadRegionBitmap()
293 Utils.closeSilently(is); in loadRegionBitmap()
327 InputStream is = null; in loadBitmap() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/phonelookup/
Dphone_lookup_info.proto12 // This message is organized into sub-message fields where each one corresponds
16 // alone is responsible for populating it.
74 // This is because we lookup contacts in other directories via
76 // presence info is not directly accessible.
82 // Empty if there is no CP2 contact information for the number.
85 // The information for this number is incomplete. This can happen when the
86 // call log is requested to be updated but there are many invalid numbers
93 // Cp2DefaultDirectoryPhoneLookup is responsible for populating this field.
97 // Cp2ExtendedDirectoryPhoneLookup is responsible for populating this field.
101 // SpamPhoneLookup is responsible for populating this message.
[all …]
/packages/apps/Contacts/src/com/android/contacts/vcard/
DImportProcessor.java159 InputStream is = null; in runInternal() local
164 is = mResolver.openInputStream(uri); in runInternal()
167 is = new ByteArrayInputStream(request.data); in runInternal()
170 if (is != null) { in runInternal()
171 successful = readOneVCard(is, estimatedVCardType, estimatedCharset, constructor, in runInternal()
177 if (is != null) { in runInternal()
179 is.close(); in runInternal()
216 private boolean readOneVCard(InputStream is, int vcardType, String charset, in readOneVCard() argument
243 mVCardParser.parse(is, interpreter); in readOneVCard()
266 if (is != null) { in readOneVCard()
[all …]
/packages/apps/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java57 InputStream is, boolean isShareable) { in newInstance() argument
59 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(is, isShareable); in newInstance()
87 public static DumbBitmapRegionDecoder newInstance(InputStream is) { in newInstance() argument
88 Bitmap b = BitmapFactory.decodeStream(is); in newInstance()
243 InputStream is = mStreamProvider.newStreamNotNull(); in loadBitmapRegionDecoder() local
245 SimpleBitmapRegionDecoderWrapper.newInstance(is, false); in loadBitmapRegionDecoder()
246 Utils.closeSilently(is); in loadBitmapRegionDecoder()
248 is = mStreamProvider.newStreamNotNull(); in loadBitmapRegionDecoder()
249 regionDecoder = DumbBitmapRegionDecoder.newInstance(is); in loadBitmapRegionDecoder()
250 Utils.closeSilently(is); in loadBitmapRegionDecoder()
[all …]

12345678910>>...18