Home
last modified time | relevance | path

Searched refs:jsonReader (Results 1 – 16 of 16) sorted by relevance

/external/gson/gson/src/test/java/com/google/gson/
DMixedStreamTest.java68 JsonReader jsonReader = new JsonReader(stringReader); in testReadMixedStreamed() local
70 jsonReader.beginArray(); in testReadMixedStreamed()
71 assertEquals(BLUE_MUSTANG, gson.fromJson(jsonReader, Car.class)); in testReadMixedStreamed()
72 assertEquals(BLACK_BMW, gson.fromJson(jsonReader, Car.class)); in testReadMixedStreamed()
73 assertEquals(RED_MIATA, gson.fromJson(jsonReader, Car.class)); in testReadMixedStreamed()
74 jsonReader.endArray(); in testReadMixedStreamed()
79 JsonReader jsonReader = new JsonReader(new StringReader(CARS_JSON)); in testReaderDoesNotMutateState() local
80 jsonReader.beginArray(); in testReaderDoesNotMutateState()
82 jsonReader.setLenient(false); in testReaderDoesNotMutateState()
83 gson.fromJson(jsonReader, Car.class); in testReaderDoesNotMutateState()
[all …]
DGsonTest.java206 JsonReader jsonReader = new Gson().newJsonReader(new StringReader(json)); in testNewJsonReader_Default() local
208 jsonReader.nextString(); in testNewJsonReader_Default()
212 jsonReader.close(); in testNewJsonReader_Default()
217 JsonReader jsonReader = new GsonBuilder() in testNewJsonReader_Custom() local
221 assertEquals("test", jsonReader.nextString()); in testNewJsonReader_Custom()
222 jsonReader.close(); in testNewJsonReader_Custom()
DToNumberPolicyTest.java135 JsonReader jsonReader = fromString(json); in fromStringLenient() local
136 jsonReader.setLenient(true); in fromStringLenient()
137 return jsonReader; in fromStringLenient()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowJsonReaderTest.java14 JsonReader jsonReader = new JsonReader(new StringReader("{\"abc\": \"def\"}")); in shouldWork() local
15 jsonReader.beginObject(); in shouldWork()
16 assertThat(jsonReader.nextName()).isEqualTo("abc"); in shouldWork()
17 assertThat(jsonReader.nextString()).isEqualTo("def"); in shouldWork()
18 jsonReader.endObject(); in shouldWork()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowJsonReaderTest.java14 JsonReader jsonReader = new JsonReader(new StringReader("{\"abc\": \"def\"}")); in shouldWork() local
15 jsonReader.beginObject(); in shouldWork()
16 assertThat(jsonReader.nextName()).isEqualTo("abc"); in shouldWork()
17 assertThat(jsonReader.nextString()).isEqualTo("def"); in shouldWork()
18 jsonReader.endObject(); in shouldWork()
/external/deqp/external/vulkancts/vkscserver/
DvksCacheBuilder.cpp72 Context jsonReader; in exportFilesForExternalCompiler() local
78 readJSON_VkSamplerYcbcrConversionCreateInfo(jsonReader, samplerYcbcr.second, sycCI); in exportFilesForExternalCompiler()
86 readJSON_VkSamplerCreateInfo(jsonReader, sampler.second, sCI); in exportFilesForExternalCompiler()
96 readJSON_VkShaderModuleCreateInfo(jsonReader, shader.second, smCI, spirvShader); in exportFilesForExternalCompiler()
108 readJSON_VkRenderPassCreateInfo2(jsonReader, renderPass.second, rpCI); in exportFilesForExternalCompiler()
114 readJSON_VkRenderPassCreateInfo(jsonReader, renderPass.second, rpCI); in exportFilesForExternalCompiler()
125 readJSON_VkDescriptorSetLayoutCreateInfo(jsonReader, descriptorSetLayout.second, dsCI); in exportFilesForExternalCompiler()
133 readJSON_VkPipelineLayoutCreateInfo(jsonReader, pipelineLayout.second, plCI); in exportFilesForExternalCompiler()
154 readJSON_VkGraphicsPipelineCreateInfo(jsonReader, pipeline.pipelineContents, gpCI); in exportFilesForExternalCompiler()
231 readJSON_VkPhysicalDeviceFeatures2(jsonReader, pipeline.deviceFeatures, deviceFeatures2); in exportFilesForExternalCompiler()
[all …]
DvksJson.cpp97 std::unique_ptr<Json::CharReader> jsonReader(builder.newCharReader()); in StringToVkObject() local
101 if (!jsonReader->parse(in.data(), in.data() + in.size(), &jsonRoot, &errors)) in StringToVkObject()
/external/gson/gson/src/main/java/com/google/gson/
DJsonParser.java69 JsonReader jsonReader = new JsonReader(reader); in parseReader() local
70 JsonElement element = parseReader(jsonReader); in parseReader()
71 if (!element.isJsonNull() && jsonReader.peek() != JsonToken.END_DOCUMENT) { in parseReader()
DTypeAdapter.java295 JsonReader jsonReader = new JsonTreeReader(jsonTree);
296 return read(jsonReader);
DGson.java904 JsonReader jsonReader = new JsonReader(reader);
905 jsonReader.setLenient(lenient);
906 return jsonReader;
1123 JsonReader jsonReader = newJsonReader(json);
1124 T object = fromJson(jsonReader, typeOfT);
1125 assertFullConsumption(object, jsonReader);
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs133 internal void Merge(IMessage message, TextReader jsonReader) in Merge() argument
135 var tokenizer = JsonTokenizer.FromTextReader(jsonReader); in Merge()
407 public T Parse<T>(TextReader jsonReader) where T : IMessage, new()
409 ProtoPreconditions.CheckNotNull(jsonReader, nameof(jsonReader));
411 Merge(message, jsonReader);
436 public IMessage Parse(TextReader jsonReader, MessageDescriptor descriptor) in Parse() argument
438 ProtoPreconditions.CheckNotNull(jsonReader, nameof(jsonReader)); in Parse()
441 Merge(message, jsonReader); in Parse()
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs133 internal void Merge(IMessage message, TextReader jsonReader) in Merge() argument
135 var tokenizer = JsonTokenizer.FromTextReader(jsonReader); in Merge()
407 public T Parse<T>(TextReader jsonReader) where T : IMessage, new()
409 ProtoPreconditions.CheckNotNull(jsonReader, nameof(jsonReader));
411 Merge(message, jsonReader);
436 public IMessage Parse(TextReader jsonReader, MessageDescriptor descriptor) in Parse() argument
438 ProtoPreconditions.CheckNotNull(jsonReader, nameof(jsonReader)); in Parse()
441 Merge(message, jsonReader); in Parse()
/external/gson/metrics/src/main/java/com/google/gson/metrics/
DParseBenchmark.java166 com.google.gson.stream.JsonReader jsonReader in parse() local
168 readToken(jsonReader); in parse()
169 jsonReader.close(); in parse()
214 com.google.gson.stream.JsonReader jsonReader in parse() local
216 jsonReader.skipValue(); in parse()
217 jsonReader.close(); in parse()
/external/jackson-databind/src/test/java/perf/
DObjectReaderTestBase.java72 final ObjectReader jsonReader = mapper1.reader() in doTest() local
92 msesc = testDeser1(REPS, byteInput1, jsonReader); in doTest()
113 final ObjectReader jsonReader = mapper1.reader() in doTest() local
134 msecs = testDeser1(REPS, input1, jsonReader); in doTest()
/external/flatbuffers/kotlin/benchmark/src/jvmMain/kotlin/com/google/flatbuffers/kotlin/benchmark/
DJsonBenchmark.kt73 val jsonReader = InputStreamReader(ByteArrayInputStream(data)) in readGson() constant
74 return parser.parse(jsonReader).asJsonObject in readGson()
/external/deqp/external/vulkancts/framework/vulkan/
DvkResourceInterface.cpp134 Context jsonReader; in removeRedundantObjects() local
142 readJSON_VkGraphicsPipelineCreateInfo(jsonReader, it->pipelineContents, gpCI); in removeRedundantObjects()
153 readJSON_VkComputePipelineCreateInfo(jsonReader, it->pipelineContents, cpCI); in removeRedundantObjects()
185 readJSON_VkPipelineLayoutCreateInfo(jsonReader, it->second, plCI); in removeRedundantObjects()
199 readJSON_VkDescriptorSetLayoutCreateInfo(jsonReader, it->second, dsCI); in removeRedundantObjects()
224 readJSON_VkSamplerCreateInfo(jsonReader, it->second, sCI); in removeRedundantObjects()