/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | readertest.cpp | 44 Reader reader; in TEST() local 45 reader.Parse(s, h); in TEST() 52 Reader reader; in TEST() local 53 reader.Parse(s, h); in TEST() 107 Reader reader; \ in TEST() 108 reader.Parse(s, h); \ in TEST() 182 Reader reader; \ in TestParseDouble() 183 …ASSERT_EQ(kParseErrorNone, reader.Parse<fullPrecision ? kParseFullPrecisionFlag : 0>(s, h).Code())… in TestParseDouble() 308 Reader reader; // Reusing reader to prevent heap allocation in TestParseDouble() local 324 …ASSERT_EQ(kParseErrorNone, reader.Parse<fullPrecision ? kParseFullPrecisionFlag : 0>(s, h).Code()); in TestParseDouble() [all …]
|
D | prettywritertest.cpp | 45 Reader reader; in TEST() local 47 reader.Parse(s, writer); in TEST() 55 Reader reader; in TEST() local 57 reader.Parse(s, writer); in TEST() 131 Reader reader; in TEST() local 132 reader.Parse(s, writer); in TEST() 145 Reader reader; in TEST() local 147 reader.Parse(s, writer); in TEST()
|
D | writertest.cpp | 29 Reader reader; in TEST() local 30 reader.Parse<0>(s, writer); in TEST() 42 Reader reader; \ 43 reader.Parse<kParseFullPrecisionFlag>(s, writer); \ 118 GenericReader<UTF8<>, UTF16<> > reader; in TEST() local 119 reader.Parse(s, writer); in TEST() 128 Reader reader; in TEST() local 129 reader.Parse(s, writer); in TEST() 173 Reader reader; in TEST() local 174 reader.Parse<0>(s, writer); in TEST()
|
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictionsConfiguration.java | 318 public static CarUxRestrictionsConfiguration readJson(@NonNull JsonReader reader, in readJson() argument 320 Objects.requireNonNull(reader, "reader must not be null"); in readJson() 322 reader.setLenient(true); in readJson() 327 reader.beginObject(); in readJson() 328 while (reader.hasNext()) { in readJson() 329 String name = reader.nextName(); in readJson() 332 if (reader.peek() == JsonToken.NULL) { in readJson() 333 reader.nextNull(); in readJson() 335 builder.setPhysicalPort(Builder.validatePort(reader.nextInt())); in readJson() 339 builder.setMaxContentDepth(reader.nextInt()); in readJson() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | CertificateStore.java | 106 try (JsonReader reader = new JsonReader(new BufferedReader(new FileReader(mStoreFile)))) { in load() argument 107 reader.beginObject(); in load() 108 while (reader.hasNext()) { in load() 109 String itemName = reader.nextName(); in load() 111 reader.beginArray(); in load() 112 while (reader.hasNext()) { in load() 113 loadItem(reader); in load() 115 reader.endArray(); in load() 117 reader.skipValue(); in load() 120 reader.endObject(); in load() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | LocalDiscoverySessionInfo.java | 63 try (JsonReader reader = new JsonReader(new FileReader(mCacheFile))) { in load() argument 64 reader.beginObject(); in load() 65 while (reader.hasNext()) { in load() 66 switch (reader.nextName()) { in load() 68 mKnownGood.addAll(loadPrinterIds(reader)); in load() 71 mPriority.addAll(loadPrinterIds(reader)); in load() 74 reader.skipValue(); in load() 78 reader.endObject(); in load() 84 private List<PrinterId> loadPrinterIds(JsonReader reader) throws IOException { in loadPrinterIds() argument 86 reader.beginArray(); in loadPrinterIds() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | JsonUtils.java | 41 final JsonReader reader = new JsonReader(new StringReader(s)); in jsonStrToList() local 43 reader.beginArray(); in jsonStrToList() 44 while (reader.hasNext()) { in jsonStrToList() 45 reader.beginObject(); in jsonStrToList() 46 while (reader.hasNext()) { in jsonStrToList() 47 final String name = reader.nextName(); in jsonStrToList() 49 list.add(reader.nextInt()); in jsonStrToList() 51 list.add(reader.nextString()); in jsonStrToList() 54 reader.skipValue(); in jsonStrToList() 57 reader.endObject(); in jsonStrToList() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarLocationService.java | 375 JsonReader reader = new JsonReader(new InputStreamReader(fis, "UTF-8")); in readLocationFromCacheFile() local 376 reader.beginObject(); in readLocationFromCacheFile() 377 while (reader.hasNext()) { in readLocationFromCacheFile() 378 String name = reader.nextName(); in readLocationFromCacheFile() 380 location.setProvider(reader.nextString()); in readLocationFromCacheFile() 382 location.setLatitude(reader.nextDouble()); in readLocationFromCacheFile() 384 location.setLongitude(reader.nextDouble()); in readLocationFromCacheFile() 386 location.setAltitude(reader.nextDouble()); in readLocationFromCacheFile() 388 location.setSpeed((float) reader.nextDouble()); in readLocationFromCacheFile() 390 location.setBearing((float) reader.nextDouble()); in readLocationFromCacheFile() [all …]
|
D | CarUxRestrictionsManagerService.java | 531 try (JsonReader reader = new JsonReader( in readPersistedConfig() argument 536 readV1Json(reader, configs); in readPersistedConfig() 539 readV2Json(reader, configs); in readPersistedConfig() 552 private void readV1Json(JsonReader reader, in readV1Json() argument 554 readRestrictionsArray(reader, configs, JSON_SCHEMA_VERSION_V1); in readV1Json() 557 private void readV2Json(JsonReader reader, in readV2Json() argument 559 reader.beginObject(); in readV2Json() 560 while (reader.hasNext()) { in readV2Json() 561 String name = reader.nextName(); in readV2Json() 564 readRestrictionsArray(reader, configs, JSON_SCHEMA_VERSION_V2); in readV2Json() [all …]
|
D | UptimeTracker.java | 150 JsonReader reader = new JsonReader(new FileReader(mUptimeFile)); in getHistoricalUptimeLocked() local 151 reader.beginObject(); in getHistoricalUptimeLocked() 152 if (!reader.nextName().equals("uptime")) { in getHistoricalUptimeLocked() 156 mHistoricalUptime = Optional.of(reader.nextLong()); in getHistoricalUptimeLocked() 158 reader.endObject(); in getHistoricalUptimeLocked() 159 reader.close(); in getHistoricalUptimeLocked()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
D | rapidjsontest.cpp | 70 Reader reader; in TEST_F() local 71 EXPECT_TRUE(reader.Parse<kParseInsituFlag>(s, h)); in TEST_F() 80 Reader reader; in TEST_F() local 81 EXPECT_TRUE(reader.Parse<kParseInsituFlag | kParseValidateEncodingFlag>(s, h)); in TEST_F() 89 Reader reader; in TEST_F() local 90 EXPECT_TRUE(reader.Parse(s, h)); in TEST_F() 98 Reader reader; in TEST_F() local 99 EXPECT_TRUE(reader.Parse<kParseFullPrecisionFlag>(s, h)); in TEST_F() 107 Reader reader; in TEST_F() local 108 EXPECT_TRUE(reader.Parse<kParseIterativeFlag>(s, h)); in TEST_F() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | MetadataParser.java | 53 private static WordListMetadata parseOneWordList(final JsonReader reader) in parseOneWordList() argument 56 reader.beginObject(); in parseOneWordList() 57 while (reader.hasNext()) { in parseOneWordList() 58 final String name = reader.nextName(); in parseOneWordList() 60 arguments.put(name, reader.nextString()); in parseOneWordList() 63 reader.endObject(); in parseOneWordList() 103 JsonReader reader = new JsonReader(input); in parseMetadata() local 105 reader.beginArray(); in parseMetadata() 106 while (reader.hasNext()) { in parseMetadata() 107 final WordListMetadata thisMetadata = parseOneWordList(reader); in parseMetadata()
|
/packages/apps/SecureElement/src/com/android/se/ |
D | SecureElementService.java | 79 public ISecureElementReader getReader(String reader) 81 Log.d(mTag, "getReader() " + reader); 82 Terminal terminal = getTerminal(reader); 87 public synchronized boolean[] isNFCEventAllowed(String reader, byte[] aid, 99 Terminal terminal = getTerminal(reader); 123 private Terminal getTerminal(String reader) { in getTerminal() argument 124 if (reader == null) { in getTerminal() 127 if (reader.equals("SIM")) { in getTerminal() 128 reader = "SIM1"; in getTerminal() 130 Terminal terminal = mTerminals.get(reader); in getTerminal() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterCropRepresentation.java | 163 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation() argument 164 reader.beginObject(); in deSerializeRepresentation() 165 while (reader.hasNext()) { in deSerializeRepresentation() 166 String name = reader.nextName(); in deSerializeRepresentation() 168 mCrop.left = (float) reader.nextDouble(); in deSerializeRepresentation() 170 mCrop.top = (float) reader.nextDouble(); in deSerializeRepresentation() 172 mCrop.right = (float) reader.nextDouble(); in deSerializeRepresentation() 174 mCrop.bottom = (float) reader.nextDouble(); in deSerializeRepresentation() 176 reader.skipValue(); in deSerializeRepresentation() 179 reader.endObject(); in deSerializeRepresentation()
|
D | FilterColorBorderRepresentation.java | 186 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation() argument 187 reader.beginObject(); in deSerializeRepresentation() 188 while (reader.hasNext()) { in deSerializeRepresentation() 189 String name = reader.nextName(); in deSerializeRepresentation() 191 mParamSize.setValue(reader.nextInt()); in deSerializeRepresentation() 193 mParamRadius.setValue(reader.nextInt()); in deSerializeRepresentation() 195 mParamColor.setValue(reader.nextInt()); in deSerializeRepresentation() 197 reader.skipValue(); in deSerializeRepresentation() 200 reader.endObject(); in deSerializeRepresentation()
|
D | FilterStraightenRepresentation.java | 129 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation() argument 131 reader.beginObject(); in deSerializeRepresentation() 132 while (reader.hasNext()) { in deSerializeRepresentation() 133 String name = reader.nextName(); in deSerializeRepresentation() 135 float s = (float) reader.nextDouble(); in deSerializeRepresentation() 141 reader.skipValue(); in deSerializeRepresentation() 147 reader.endObject(); in deSerializeRepresentation()
|
D | FilterRotateRepresentation.java | 173 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation() argument 175 reader.beginObject(); in deSerializeRepresentation() 176 while (reader.hasNext()) { in deSerializeRepresentation() 177 String name = reader.nextName(); in deSerializeRepresentation() 179 Rotation r = Rotation.fromValue(reader.nextInt()); in deSerializeRepresentation() 185 reader.skipValue(); in deSerializeRepresentation() 191 reader.endObject(); in deSerializeRepresentation()
|
D | FilterMirrorRepresentation.java | 195 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation() argument 197 reader.beginObject(); in deSerializeRepresentation() 198 while (reader.hasNext()) { in deSerializeRepresentation() 199 String name = reader.nextName(); in deSerializeRepresentation() 201 Mirror r = Mirror.fromValue((char) reader.nextInt()); in deSerializeRepresentation() 207 reader.skipValue(); in deSerializeRepresentation() 213 reader.endObject(); in deSerializeRepresentation()
|
D | FilterRepresentation.java | 244 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation() argument 246 reader.beginObject(); in deSerializeRepresentation() 247 while (reader.hasNext()) { in deSerializeRepresentation() 248 String[] kv = {reader.nextName(), reader.nextString()}; in deSerializeRepresentation() 252 reader.endObject(); in deSerializeRepresentation()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessage.java | 244 public static VCard parseVcard(BMsgReader reader, int envLevel) { in parseVcard() argument 252 String line = reader.getLineEnforce(); in parseVcard() 315 line = reader.getLineEnforce(); in parseVcard() 488 BMsgReader reader; in parse() local 564 reader = new BMsgReader(bMsgStream); in parse() 565 reader.expect("BEGIN:BMSG"); in parse() 566 reader.expect("VERSION"); in parse() 568 line = reader.getLineEnforce(); in parse() 632 line = reader.getLineEnforce(); in parse() 652 newBMsg.addOriginator(VCard.parseVcard(reader, 0)); in parse() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | SavedDiscovery.java | 119 try (JsonReader reader = new JsonReader(new BufferedReader(new FileReader(mCacheFile)))) { in load() argument 120 reader.beginObject(); in load() 121 while (reader.hasNext()) { in load() 122 String itemName = reader.nextName(); in load() 124 reader.beginArray(); in load() 125 while (reader.hasNext()) { in load() 126 printers.add(new DiscoveredPrinter(reader)); in load() 128 reader.endArray(); in load() 131 reader.endObject(); in load()
|
D | DiscoveredPrinter.java | 82 public DiscoveredPrinter(JsonReader reader) throws IOException { in DiscoveredPrinter() argument 86 reader.beginObject(); in DiscoveredPrinter() 87 while (reader.hasNext()) { in DiscoveredPrinter() 88 String itemName = reader.nextName(); in DiscoveredPrinter() 91 uuid = Uri.parse(reader.nextString()); in DiscoveredPrinter() 94 printerName = reader.nextString(); in DiscoveredPrinter() 97 path = Uri.parse(reader.nextString()); in DiscoveredPrinter() 100 location = reader.nextString(); in DiscoveredPrinter() 104 reader.endObject(); in DiscoveredPrinter()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | CombinedInputOutput.java | 56 try (final BufferedReader reader = new BufferedReader(new FileReader(filename))) { in isCombinedDictionary() argument 57 String firstLine = reader.readLine(); in isCombinedDictionary() 59 firstLine = reader.readLine(); in isCombinedDictionary() 77 public static FusionDictionary readDictionaryCombined(final BufferedReader reader) in readDictionaryCombined() argument 79 String headerLine = reader.readLine(); in readDictionaryCombined() 81 headerLine = reader.readLine(); in readDictionaryCombined() 104 while (null != (line = reader.readLine())) { in readDictionaryCombined()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | sax.md | 56 #include "rapidjson/reader.h" 88 Reader reader; 90 reader.Parse(ss, handler); 151 … For example, to parse a UTF-8 stream and outputs UTF-16 string events, you can define a reader by: 154 GenericReader<UTF8<>, UTF16<> > reader; 157 Note that, the default character type of `UTF16` is `wchar_t`. So this `reader`needs to call `Strin… 284 … `Reader`. Actually `Document` is a handler which receives events from a reader to build a DOM dur… 291 #include "rapidjson/reader.h" 346 Reader reader; 349 if (reader.Parse(ss, handler)) [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/example/condense/ |
D | condense.cpp | 16 Reader reader; in main() local 26 if (!reader.Parse(is, writer)) { in main() 27 …fprintf(stderr, "\nError(%u): %s\n", (unsigned)reader.GetErrorOffset(), GetParseError_En(reader.Ge… in main()
|