Home
last modified time | relevance | path

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

12345678910>>...22

/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/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/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/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()
214 if (is == null) { in generateFileInfo()
216 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
221 length = getStreamSize(is); in generateFileInfo()
223 is = (FileInputStream) contentResolver.openInputStream(uri); in generateFileInfo()
241 return new BluetoothOppSendFileInfo(fileName, contentType, length, is, 0); in generateFileInfo()
244 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.proto11 // This message is organized into sub-message fields where each one corresponds
15 // alone is responsible for populating it.
73 // This is because we lookup contacts in other directories via
75 // presence info is not directly accessible.
81 // Empty if there is no CP2 contact information for the number.
84 // The information for this number is incomplete. This can happen when the
85 // call log is requested to be updated but there are many invalid numbers
92 // Cp2DefaultDirectoryPhoneLookup is responsible for populating this field.
96 // Cp2ExtendedDirectoryPhoneLookup is responsible for populating this field.
100 // 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 …]
/packages/apps/Dialer/java/com/android/dialer/phonenumberproto/
Ddialer_phone_number.proto10 // distributed under the License is distributed on an "AS IS" BASIS,
25 // The country is retrieved from CallLog.Calls#COUNTRY: "The ISO 3166-1 two
34 // -If a number is valid according to libphonenumber and can be parsed, this
35 // is the E164 version of it, with post dial digits appended.
37 // -Otherwise, it is the network portion of the number as dialed with
39 // number is a 7-digit US number (missing an area code) like "456-7890" which
43 // when the number is not valid and no country prefix was prepended. This may
55 // True if the number is valid according to libphonenumber.
59 // PhoneNumberUtils#extractPostDialPortion. Note that this is also part of
60 // normalized_number, but this information is duplicated here for convenience.
/packages/apps/Test/connectivity/sl4n/rapidjson/
Dreadme.md7 Tencent is pleased to support the open source community by making RapidJSON available.
32 RapidJSON is a JSON parser and generator for C++. It was inspired by [RapidXml](http://rapidxml.sou…
34 * RapidJSON is small but complete. It supports both SAX and DOM style API. The SAX parser is only a…
36 * RapidJSON is fast. Its performance can be comparable to `strlen()`. It also optionally supports S…
38 * RapidJSON is self-contained. It does not depend on external libraries such as BOOST. It even does…
40 * RapidJSON is memory friendly. Each JSON value occupies exactly 16/20 bytes for most 32/64-bit mac…
42 * RapidJSON is Unicode friendly. It supports UTF-8, UTF-16, UTF-32 (LE & BE), and their detection, …
46 JSON(JavaScript Object Notation) is a light-weight data exchange format. RapidJSON should be in ful…
53 RapidJSON is cross-platform. Some platform/compiler combinations which have been tested are shown a…
63 RapidJSON is a header-only C++ library. Just copy the `include/rapidjson` folder to system or proje…
[all …]
/packages/services/Car/evs/app/
Dconfig.json.readme1 // With comments included, this file is no longer legal JSON, but serves to illustrate
4 // In addition to the configuration file, an image to be used to represent the car is expected
7 // X is right, Y is forward, Z is up (right handed coordinate system).
8 // The origin is at the center of the read axel at ground level.
10 // Yaw is measured from the front of the car, positive to the left (postive Z rotation).
11 // Pitch is measured from the horizon, positive upward (postive X rotation).
12 // Roll is always assumed to be zero.
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DXmpPresets.java62 InputStream is = null; in writeFilterXMP() local
65 is = context.getContentResolver().openInputStream(srcUri); in writeFilterXMP()
66 xmpMeta = XmpUtilHelper.extractXMPMeta(is); in writeFilterXMP()
70 Utils.closeSilently(is); in writeFilterXMP()
95 InputStream is = null; in extractXMPData() local
98 is = context.getContentResolver().openInputStream(uriToEdit); in extractXMPData()
99 xmpMeta = XmpUtilHelper.extractXMPMeta(is); in extractXMPData()
102 Utils.closeSilently(is); in extractXMPData()

12345678910>>...22