Home
last modified time | relevance | path

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

12345678910>>...26

/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/services/Car/car-lib/api/
Dtest-baseline.txt3 …Permission Car.PERMISSION_CAR_DYNAMICS_STATE required by field VehiclePropertyIds.ABS_ACTIVE is hi…
5 …RMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_BOOTUP_REASON is hidden or removed
7 …ERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_STATE_REPORT is hidden or removed
9 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_STATE_REQ is hid…
11 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.DISPLAY_BRIGHTNESS is hid…
13 …Permission Car.PERMISSION_CONTROL_CAR_DOORS required by field VehiclePropertyIds.DOOR_LOCK is hidd…
15 …Permission Car.PERMISSION_CONTROL_CAR_DOORS required by field VehiclePropertyIds.DOOR_MOVE is hidd…
17 …Permission Car.PERMISSION_CONTROL_CAR_DOORS required by field VehiclePropertyIds.DOOR_POS is hidde…
19 …N_CAR_ENGINE_DETAILED required by field VehiclePropertyIds.ENGINE_COOLANT_TEMP is hidden or removed
21 …SION_CAR_ENGINE_DETAILED required by field VehiclePropertyIds.ENGINE_OIL_LEVEL is hidden or removed
[all …]
Dbaseline.txt3 …Permission Car.PERMISSION_CAR_DYNAMICS_STATE required by field VehiclePropertyIds.ABS_ACTIVE is hi…
5 …RMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_BOOTUP_REASON is hidden or removed
7 …ERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_STATE_REPORT is hidden or removed
9 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.AP_POWER_STATE_REQ is hid…
11 …Permission Car.PERMISSION_CAR_POWER required by field VehiclePropertyIds.DISPLAY_BRIGHTNESS is hid…
13 …Permission Car.PERMISSION_CONTROL_CAR_DOORS required by field VehiclePropertyIds.DOOR_LOCK is hidd…
15 …Permission Car.PERMISSION_CONTROL_CAR_DOORS required by field VehiclePropertyIds.DOOR_MOVE is hidd…
17 …Permission Car.PERMISSION_CONTROL_CAR_DOORS required by field VehiclePropertyIds.DOOR_POS is hidde…
19 …N_CAR_ENGINE_DETAILED required by field VehiclePropertyIds.ENGINE_COOLANT_TEMP is hidden or removed
21 …SION_CAR_ENGINE_DETAILED required by field VehiclePropertyIds.ENGINE_OIL_LEVEL is hidden or removed
[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/apps/Car/libs/car-ui-lib/tests/unit/src/com/android/car/ui/recyclerview/
DCarUiRecyclerViewTest.java44 import static org.hamcrest.Matchers.is;
503 is(greaterThan(carUiRecyclerView.getTop()))); in testPageDownScrollsOverLongItem()
508 assertThat(orientationHelper.getDecoratedStart(longItem), is(equalTo(0))); in testPageDownScrollsOverLongItem()
510 is(greaterThan(carUiRecyclerView.getBottom()))); in testPageDownScrollsOverLongItem()
519 is(equalTo(carUiRecyclerView.getHeight()))); in testPageDownScrollsOverLongItem()
525 is(lessThan(carUiRecyclerView.getTop()))); in testPageDownScrollsOverLongItem()
560 is(greaterThan(carUiRecyclerView.getTop()))); in testPageUpScrollsOverLongItem()
566 is(equalTo(carUiRecyclerView.getHeight()))); in testPageUpScrollsOverLongItem()
567 assertThat(orientationHelper.getDecoratedStart(longItem), is(lessThan(0))); in testPageUpScrollsOverLongItem()
578 assertThat(orientationHelper.getDecoratedStart(longItem), is(equalTo(0))); in testPageUpScrollsOverLongItem()
[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/Launcher3/protos/
Dlauncher_atom.proto11 * distributed under the License is distributed on an "AS IS" BASIS,
109 // Folder's label is one of the non-empty suggested values.
112 // Folder's label is non-empty, manually entered by the user
116 // Folder's label is not yet assigned( i.e., title == null).
120 // Folder's label is empty(i.e., title == "").
164 // Populated when folder label is not a PII.
172 …optional int32 page_index = 1 [default = -2]; // range [-1, l], 0 is the index of the main homescr…
202 // Used when a FromState is not applicable, for example, during folder creation.
206 // Eg: When a folder label is updated from empty string.
210 // Eg: When a folder label is updated from a user-entered value.
[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
37 // all its content is defined in its alpha channel, while its color
42 // it is assumed that the exact same image will always be returned.
55 // For example, if the `content_uri` is
60 // Note that the resulting image is not guaranteed to match the requested
67 // Indicates whether this image is "tintable" or not.
68 // An image is "tintable" when all its content is defined in its
[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/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/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/services/Car/evs/apps/default/
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.
23 "displayPort" : 1 // Display port number, the target display is connected to.

12345678910>>...26