Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 25 of 90) sorted by relevance

1234

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dreadertest.cpp44 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 …]
Dprettywritertest.cpp45 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()
Dwritertest.cpp29 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/BuiltInPrintService/src/com/android/bips/ipp/
DCertificateStore.java106 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/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java324 public static CarUxRestrictionsConfiguration readJson(JsonReader reader) throws IOException { in readJson() argument
326 reader.setLenient(true); in readJson()
329 reader.beginObject(); in readJson()
330 while (reader.hasNext()) { in readJson()
331 String name = reader.nextName(); in readJson()
334 if (reader.peek() == JsonToken.NULL) { in readJson()
335 reader.nextNull(); in readJson()
337 builder.setPhysicalPort(Builder.validatePort(reader.nextInt())); in readJson()
341 builder.setMaxContentDepth(reader.nextInt()); in readJson()
344 builder.setMaxCumulativeContentItems(reader.nextInt()); in readJson()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalDiscoverySessionInfo.java63 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/
DJsonUtils.java41 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/
DCarLocationService.java365 JsonReader reader = new JsonReader(new InputStreamReader(fis, "UTF-8")); in readLocationFromCacheFile() local
366 reader.beginObject(); in readLocationFromCacheFile()
367 while (reader.hasNext()) { in readLocationFromCacheFile()
368 String name = reader.nextName(); in readLocationFromCacheFile()
370 location.setProvider(reader.nextString()); in readLocationFromCacheFile()
372 location.setLatitude(reader.nextDouble()); in readLocationFromCacheFile()
374 location.setLongitude(reader.nextDouble()); in readLocationFromCacheFile()
376 location.setAltitude(reader.nextDouble()); in readLocationFromCacheFile()
378 location.setSpeed((float) reader.nextDouble()); in readLocationFromCacheFile()
380 location.setBearing((float) reader.nextDouble()); in readLocationFromCacheFile()
[all …]
DUptimeTracker.java150 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/
Drapidjsontest.cpp70 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/apps/SecureElement/src/com/android/se/
DSecureElementService.java75 public ISecureElementReader getReader(String reader)
77 Log.d(mTag, "getReader() " + reader);
78 Terminal terminal = getTerminal(reader);
83 public synchronized boolean[] isNFCEventAllowed(String reader, byte[] aid,
95 Terminal terminal = getTerminal(reader);
112 private Terminal getTerminal(String reader) { in getTerminal() argument
113 if (reader == null) { in getTerminal()
116 if (reader.equals("SIM")) { in getTerminal()
117 reader = "SIM1"; in getTerminal()
119 Terminal terminal = mTerminals.get(reader); in getTerminal()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataParser.java53 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/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterCropRepresentation.java163 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()
DFilterColorBorderRepresentation.java186 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()
DFilterStraightenRepresentation.java129 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()
DFilterRotateRepresentation.java173 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()
DFilterMirrorRepresentation.java193 public void deSerializeRepresentation(JsonReader reader) throws IOException { in deSerializeRepresentation() argument
195 reader.beginObject(); in deSerializeRepresentation()
196 while (reader.hasNext()) { in deSerializeRepresentation()
197 String name = reader.nextName(); in deSerializeRepresentation()
199 Mirror r = Mirror.fromValue((char) reader.nextInt()); in deSerializeRepresentation()
205 reader.skipValue(); in deSerializeRepresentation()
211 reader.endObject(); in deSerializeRepresentation()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java244 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/
DSavedDiscovery.java119 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()
DDiscoveredPrinter.java82 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/apps/UnifiedEmail/src/org/apache/commons/io/
DIOUtils.java459 InputStreamReader reader = new InputStreamReader(input); in readLines() local
460 return readLines(reader); in readLines()
484 InputStreamReader reader = new InputStreamReader(input, encoding); in readLines() local
485 return readLines(reader); in readLines()
503 BufferedReader reader = new BufferedReader(input); in readLines() local
505 String line = reader.readLine(); in readLines()
508 line = reader.readLine(); in readLines()
542 public static LineIterator lineIterator(Reader reader) { in lineIterator() argument
543 return new LineIterator(reader); in lineIterator()
578 Reader reader = null; in lineIterator() local
[all …]
DLineIterator.java68 public LineIterator(final Reader reader) throws IllegalArgumentException { in LineIterator() argument
69 if (reader == null) { in LineIterator()
72 if (reader instanceof BufferedReader) { in LineIterator()
73 bufferedReader = (BufferedReader) reader; in LineIterator()
75 bufferedReader = new BufferedReader(reader); in LineIterator()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportService.java390 InputStream reader = null; in copyBinaryStream() local
393 reader = new DataInputStream(in); in copyBinaryStream()
394 rawCopyStream(writer, reader); in copyBinaryStream()
396 IoUtils.closeQuietly(reader); in copyBinaryStream()
402 private static void rawCopyStream(OutputStream writer, InputStream reader) throws IOException { in rawCopyStream() argument
405 while ((read = reader.read(buf, 0, buf.length)) > 0) { in rawCopyStream()
440 FileInputStream reader = new FileInputStream(file); in zipDirectoryToOutputStream() local
441 addFileToOutputStream(filename, reader, zipStream); in zipDirectoryToOutputStream()
463 private void addFileToOutputStream(String filename, InputStream reader, in addFileToOutputStream() argument
467 rawCopyStream(zipStream, reader); in addFileToOutputStream()
[all …]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java56 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/
Dsax.md56 #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 …]

1234