Home
last modified time | relevance | path

Searched defs:json (Results 1 – 25 of 659) sorted by relevance

12345678910>>...27

/external/gson/gson/src/test/java/com/google/gson/functional/
DDefaultTypeAdaptersTest.java118 String json = "'http:\\/\\/google.com\\/'"; in testUrlDeserialization() local
132 String json = "{}"; in testUrlNullDeserialization() local
149 String json = '"' + uriValue + '"'; in testUriDeserialization() local
202 String json = '"' + uuidValue + '"'; in testUuidDeserialization() local
213 String json = "\"en\""; in testLocaleDeserializationWithLanguage() local
224 String json = "\"fr_CA\""; in testLocaleDeserializationWithLanguageCountry() local
231 String json = gson.toJson(target); in testLocaleSerializationWithLanguageCountryVariant() local
236 String json = "\"de_DE_EURO\""; in testLocaleDeserializationWithLanguageCountryVariant() local
245 String json = gson.toJson(target); in testBigDecimalFieldSerialization() local
252 String json = expected.getExpectedJson(); in testBigDecimalFieldDeserialization() local
[all …]
DArrayTest.java59 String json = "[1, 2 3, 4, 5]"; in testInvalidArrayDeserialization() local
86 String json = gson.toJson(array); in testNullsInArraySerialization() local
91 String json = "[\"foo\",null,\"bar\"]"; in testNullsInArrayDeserialization() local
102 String json = gson.toJson(array); in testSingleNullInArraySerialization() local
115 String json = gson.toJson(array); in testNullsInArrayWithSerializeNullPropertySetSerialization() local
125 String json = "[\"Hello\",\"World\"]"; in testArrayOfStringsDeserialization() local
138 String json = "[\"hello\"]"; in testSingleStringArrayDeserialization() local
165 String json = gson.toJson(arrayOfCollection, typeToSerialize); in testArrayOfCollectionSerialization() local
166 assertEquals(sb.toString(), json); in testArrayOfCollectionSerialization() local
170 String json = "[[1,2],[3,4]]"; in testArrayOfCollectionDeserialization() local
[all …]
DCollectionTest.java63 String json = gson.toJson(target, targetType); in testTopLevelCollectionOfIntegersSerialization() local
68 String json = "[0,1,2,3,4,5,6,7,8,9]"; in testTopLevelCollectionOfIntegersDeserialization() local
76 String json = "[[1,2,3],[4,5,6],[7,8,9]]"; in testTopLevelListOfIntegerCollectionsDeserialization() local
97 String json = gson.toJson(list, linkedListType); in testLinkedListSerialization() local
103 String json = "['a1','a2']"; in testLinkedListDeserialization() local
115 String json = gson.toJson(queue, queueType); in testQueueSerialization() local
121 String json = "['a1','a2']"; in testQueueDeserialization() local
133 String json = gson.toJson(queue); in testPriorityQueue() local
147 String json = gson.toJson(target); in testVector() local
155 String json = gson.toJson(target); in testStack() local
[all …]
DMapTest.java66 String json = gson.toJson(map, typeOfMap); in testMapSerialization() local
72 String json = "{\"a\":1,\"b\":2}"; in testMapDeserialization() local
83 String json = gson.toJson(map); in testObjectMapSerialization() local
91 String json = gson.toJson(map, typeOfMap); in testMapSerializationEmpty() local
105 String json = gson.toJson(map, typeOfMap); in testMapSerializationWithNullValue() local
123 String json = gson.toJson(map, typeOfMap); in testMapSerializationWithNullValueButSerializeNulls() local
132 String json = gson.toJson(map, typeOfMap); in testMapSerializationWithNullKey() local
154 String json = gson.toJson(map, typeOfMap); in testMapSerializationWithIntegerKeys() local
177 String json = String.format("{\"%d\":\"456\"}", longValue); in testMapDeserializationWithLongKeys() local
187 String json = String.format("{%d:\"456\"}", longKey); in testMapDeserializationWithUnquotedLongKeys() local
[all …]
DParameterizedTypesTest.java62 String json = gson.toJson(src, typeOfSrc); in testParameterizedTypesSerialization() local
63 assertEquals(src.getExpectedJson(), json); in testParameterizedTypesSerialization() local
76 String json = expected.getExpectedJson(); in testParameterizedTypeDeserialization() local
87 String json = gson.toJson(src, typeOfSrc); in testTypesWithMultipleParametersSerialization() local
97 String json = "{\"a\":10,\"b\":1.0,\"c\":2.1,\"d\":\"abc\"," in testTypesWithMultipleParametersDeserialization() local
115 String json = gson.toJson(intTarget, ptIntegerType); in testParameterizedTypeWithCustomSerializer() local
116 assertEquals(MyParameterizedTypeAdapter.<Integer>getExpectedJson(intTarget), json); in testParameterizedTypeWithCustomSerializer() local
120 assertEquals(MyParameterizedTypeAdapter.<String>getExpectedJson(stringTarget), json); in testParameterizedTypeWithCustomSerializer() local
135 String json = MyParameterizedTypeAdapter.<Integer>getExpectedJson(src); in testParameterizedTypesWithCustomDeserializer() local
164 Reader json = new StringReader(expected.getExpectedJson()); in testParameterizedTypeWithReaderDeserialization() local
[all …]
DObjectTest.java80 String json = "{'stringValue':'no message','intValue':10,'longValue':20}"; in testJsonInSingleQuotesDeserialization() local
88 String json = "{\"stringValue\":'no message','intValue':10,'longValue':20}"; in testJsonInMixedQuotesDeserialization() local
102 String json = src.getExpectedJson(); in testBagOfPrimitivesDeserialization() local
125 String json = "{\"longValue\":[1]}"; in testClassWithTransientFieldsDeserialization() local
132 String json = "{\"transientLongValue\":1,\"longValue\":[1]}"; in testClassWithTransientFieldsDeserializationTransientFieldsPassedInJsonAreIgnored() local
142 String json = "{}"; in testClassWithNoFieldsDeserialization() local
155 String json = "{\"primitive1\":{\"longValue\":10,\"intValue\":20,\"booleanValue\":false," in testNestedDeserialization() local
190 String json = "{\"primitive1\":{\"longValue\":10,\"intValue\":20,\"booleanValue\":false" in testNullFieldsDeserialization() local
202 String json = new ArrayOfObjects().getExpectedJson(); in testArrayOfObjectsDeserialization() local
213 String json = new ArrayOfArrays().getExpectedJson(); in testArrayOfArraysDeserialization() local
[all …]
DPrettyPrintingTest.java58 String json = gson.toJson(listOfB, typeOfSrc); in testPrettyPrintList() local
64 String json = gson.toJson(target); in testPrettyPrintArrayOfObjects() local
70 String json = gson.toJson(ints); in testPrettyPrintArrayOfPrimitives() local
77 String json = gson.toJson(ints); in testPrettyPrintArrayOfPrimitiveArrays() local
85 String json = gson.toJson(list); in testPrettyPrintListOfPrimitiveArrays() local
94 String json = gson.toJson(map); in testMap() local
102 String json = gson.toJson(obj); in testEmptyMapField() local
114 String json = gson.toJson(ints); in testMultipleArrays() local
DStringTest.java41 String json = gson.toJson(value); in testEscapedCtrlNInStringSerialization() local
46 String json = "'a\\nb'"; in testEscapedCtrlNInStringDeserialization() local
53 String json = gson.toJson(value); in testEscapedCtrlRInStringSerialization() local
58 String json = "'a\\rb'"; in testEscapedCtrlRInStringDeserialization() local
65 String json = gson.toJson(value); in testEscapedBackslashInStringSerialization() local
102 String json = "'\\/'"; in testStringWithEscapedSlashDeserialization() local
112 String json = gson.toJson(value); in testAssignmentCharSerialization() local
120 String json = "\"abc=\""; in testAssignmentCharDeserialization() local
131 String json = gson.toJson(value); in testJavascriptKeywordsInStringSerialization() local
136 String json = "'null true false function'"; in testJavascriptKeywordsInStringDeserialization() local
DJavaUtilConcurrentAtomicTest.java46 String json = gson.toJson(target); in testAtomicBoolean() local
53 String json = gson.toJson(target); in testAtomicInteger() local
60 String json = gson.toJson(target); in testAtomicLong() local
70 String json = gson.toJson(target); in testAtomicLongWithStringSerializationPolicy() local
80 String json = gson.toJson(target); in testAtomicIntegerArray() local
90 String json = gson.toJson(target); in testAtomicLongArray() local
103 String json = gson.toJson(target); in testAtomicLongArrayWithStringSerializationPolicy() local
DTypeAdapterRuntimeTypeWrapperTest.java33 public Base deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { in deserialize()
53 String json = gson.toJson(new Container()); in testJsonSerializer() local
68 String json = gson.toJson(new Container()); in testJsonDeserializer_ReflectiveSerializerDelegate() local
94 String json = gson.toJson(new Container()); in testJsonDeserializer_CustomSerializerDelegate() local
111 String json = gson.toJson(new Container()); in testJsonDeserializer_ReflectiveTreeSerializerDelegate() local
133 String json = gson.toJson(new Container()); in testJsonDeserializer_JsonSerializerDelegate() local
162 String json = gson.toJson(new Container()); in testJsonDeserializer_SubclassBackwardCompatibility() local
190 String json = new Gson().toJson(b); in testGsonFutureAdapter() local
DInheritanceTest.java64 String json = "{\"value\":5,\"primitive1\":{\"longValue\":10,\"intValue\":20," in testSubClassDeserialization() local
74 JsonObject json = (JsonObject) gson.toJsonTree(sub); in testClassWithBaseFieldSerialization() local
82 JsonObject json = gson.toJsonTree(sub).getAsJsonObject(); in testClassWithBaseArrayFieldSerialization() local
94 JsonObject json = gson.toJsonTree(sub).getAsJsonObject(); in testClassWithBaseCollectionFieldSerialization() local
103 JsonObject json = gson.toJsonTree(base).getAsJsonObject(); in testBaseSerializedAsSub() local
109 String json = gson.toJson(base); in testBaseSerializedAsSubForToJsonMethod() local
115 JsonObject json = gson.toJsonTree(base, Base.class).getAsJsonObject(); in testBaseSerializedAsBaseWhenSpecifiedWithExplicitType() local
122 String json = gson.toJson(base, Base.class); in testBaseSerializedAsBaseWhenSpecifiedWithExplicitTypeForToJsonMethod() local
129 JsonObject json = gson.toJsonTree(base, Sub.class).getAsJsonObject(); in testBaseSerializedAsSubWhenSpecifiedWithExplicitType() local
135 String json = gson.toJson(base, Sub.class); in testBaseSerializedAsSubWhenSpecifiedWithExplicitTypeForToJsonMethod() local
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/read/
DTrailingCommasTest.java50 String json = "[\"a\", \"b\"]"; in testArrayBasic() local
68 String json = "[\"a\",, \"b\"]"; in testArrayInnerComma() local
93 String json = "[,\"a\", \"b\"]"; in testArrayLeadingComma() local
119 String json = "[\"a\", \"b\",]"; in testArrayTrailingComma() local
147 String json = "[\"a\", \"b\",,]"; in testArrayTrailingCommas() local
178 String json = "[\"a\", \"b\",,,]"; in testArrayTrailingCommasTriple() local
211 String json = "{\"a\": true, \"b\": false}"; in testObjectBasic() local
232 String json = "{\"a\": true,, \"b\": false}"; in testObjectInnerComma() local
248 String json = "{,\"a\": true, \"b\": false}"; in testObjectLeadingComma() local
260 String json = "{\"a\": true, \"b\": false,}"; in testObjectTrailingComma() local
[all …]
/external/angle/src/libANGLE/capture/
Dserialize.cpp111 GroupScope(JsonSerializer *json, const std::string &name) : mJson(json) in GroupScope()
116 GroupScope(JsonSerializer *json, const std::string &name, int index) : mJson(json) in GroupScope()
124 GroupScope(JsonSerializer *json, int index) : GroupScope(json, "", index) {} in GroupScope()
132 void SerializeColorF(JsonSerializer *json, const ColorF &color) in SerializeColorF()
140 void SerializeColorFWithGroup(JsonSerializer *json, const char *groupName, const ColorF &color) in SerializeColorFWithGroup()
146 void SerializeColorI(JsonSerializer *json, const ColorI &color) in SerializeColorI()
154 void SerializeColorUI(JsonSerializer *json, const ColorUI &color) in SerializeColorUI()
162 void SerializeExtents(JsonSerializer *json, const gl::Extents &extents) in SerializeExtents()
171 JsonSerializer *json, in SerializeOffsetBindingPointerVector()
188 JsonSerializer *json, in SerializeBindingPointerVector()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs66 public void StringValue(string json, string expectedValue) in StringValue()
158 public void InvalidStringValue(string json) in InvalidStringValue()
189 public void NumberValue(string json, double expectedValue) in NumberValue()
204 public void InvalidNumberValue(string json) in InvalidNumberValue()
214 public void InvalidLiterals(string json) in InvalidLiterals()
272 public void InvalidStructure(string json, int expectedValidTokens) in InvalidStructure()
360 public void SkipValue(string json) in SkipValue()
376 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens()
388 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement()
408 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter()
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs66 public void StringValue(string json, string expectedValue) in StringValue()
158 public void InvalidStringValue(string json) in InvalidStringValue()
189 public void NumberValue(string json, double expectedValue) in NumberValue()
204 public void InvalidNumberValue(string json) in InvalidNumberValue()
214 public void InvalidLiterals(string json) in InvalidLiterals()
272 public void InvalidStructure(string json, int expectedValidTokens) in InvalidStructure()
360 public void SkipValue(string json) in SkipValue()
376 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens()
388 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement()
408 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter()
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs66 public void StringValue(string json, string expectedValue) in StringValue()
158 public void InvalidStringValue(string json) in InvalidStringValue()
189 public void NumberValue(string json, double expectedValue) in NumberValue()
204 public void InvalidNumberValue(string json) in InvalidNumberValue()
214 public void InvalidLiterals(string json) in InvalidLiterals()
272 public void InvalidStructure(string json, int expectedValidTokens) in InvalidStructure()
360 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens()
372 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement()
392 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter()
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs66 public void StringValue(string json, string expectedValue) in StringValue()
158 public void InvalidStringValue(string json) in InvalidStringValue()
189 public void NumberValue(string json, double expectedValue) in NumberValue()
204 public void InvalidNumberValue(string json) in InvalidNumberValue()
214 public void InvalidLiterals(string json) in InvalidLiterals()
272 public void InvalidStructure(string json, int expectedValidTokens) in InvalidStructure()
360 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens()
372 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement()
392 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson_util.h44 inline bool ExtractJsonNumber(const Json& json, const std::string& field_name, in ExtractJsonNumber()
63 inline bool ExtractJsonBool(const Json& json, const std::string& field_name, in ExtractJsonBool()
81 inline bool ExtractJsonString(const Json& json, const std::string& field_name, in ExtractJsonString()
96 inline bool ExtractJsonArray(const Json& json, const std::string& field_name, in ExtractJsonArray()
111 inline bool ExtractJsonObject(const Json& json, const std::string& field_name, in ExtractJsonObject()
126 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
132 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
138 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
144 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
151 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
/external/gson/gson/src/test/java/com/google/gson/internal/sql/
DSqlTypesGsonTest.java50 String json = gson.toJson(instant); in testDefaultSqlDateSerialization() local
55 String json = "'Dec 3, 2009'"; in testDefaultSqlDateDeserialization() local
69 String json = gson.toJson(sqlDate, Timestamp.class); in testSqlDateSerialization() local
80 String json = gson.toJson(now); in testDefaultSqlTimeSerialization() local
85 String json = "'1:18:02 PM'"; in testDefaultSqlTimeDeserialization() local
92 String json = gson.toJson(now); in testDefaultSqlTimestampSerialization() local
101 String json = "'Dec 3, 2009 1:18:02 PM'"; in testDefaultSqlTimestampDeserialization() local
116 String json = gson.toJson(timestamp, Timestamp.class); in testTimestampSerialization() local
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/authorization/
Drbac_translator.cc59 absl::StatusOr<Rbac::Principal> ParsePrincipalsArray(const Json& json) { in ParsePrincipalsArray()
81 absl::StatusOr<Rbac::Principal> ParsePeer(const Json& json) { in ParsePeer()
102 const Json& json, absl::string_view header_name) { in ParseHeaderValues()
125 absl::StatusOr<Rbac::Permission> ParseHeaders(const Json& json) { in ParseHeaders()
151 absl::StatusOr<Rbac::Permission> ParseHeadersArray(const Json& json) { in ParseHeadersArray()
171 absl::StatusOr<Rbac::Permission> ParsePathsArray(const Json& json) { in ParsePathsArray()
191 absl::StatusOr<Rbac::Permission> ParseRequest(const Json& json) { in ParseRequest()
223 absl::StatusOr<Rbac::Policy> ParseRules(const Json& json) { in ParseRules()
252 const Json& json, absl::string_view name) { in ParseRulesArray()
282 absl::StatusOr<Rbac> ParseDenyRulesArray(const Json& json, in ParseDenyRulesArray()
[all …]
/external/cronet/base/trace_event/
Dtraced_value_unittest.cc19 std::string json; in TEST() local
44 std::string json; in TEST() local
99 std::string json; in TEST() local
121 std::string json; in TEST() local
157 std::string json = "PREFIX"; in TEST() local
171 std::string json; in TEST() local
198 std::string json; in TEST() local
226 std::string json; in TEST() local
246 std::string json; in TEST() local
269 std::string json; in TEST() local
/external/angle/build/fuchsia/
Dgen_build_defs.py77 def ConvertCommonFields(json): argument
100 def ConvertFidlLibrary(json): argument
118 def ConvertCcPrebuiltLibrary(json): argument
144 def ConvertCcSourceLibrary(json): argument
172 def ConvertLoadableModule(json): argument
252 def ConvertNoOp(json): argument
/external/cronet/base/test/android/junit/src/org/chromium/base/test/
DTestListInstrumentationRunListenerTest.java63 JSONObject json = TestListInstrumentationRunListener.getTestMethodJSON(desc); in testGetTestMethodJSON_testA() local
80 JSONObject json = TestListInstrumentationRunListener.getTestMethodJSON(desc); in testGetTestMethodJSON_testB() local
102 JSONObject json = TestListInstrumentationRunListener.getTestMethodJSON(desc); in testGetTestMethodJSONForInheritedClass() local
120 JSONObject json = TestListInstrumentationRunListener.getAnnotationJSON( in testGetAnnotationJSONForParentClass() local
136 JSONObject json = TestListInstrumentationRunListener.getAnnotationJSON( in testGetAnnotationJSONForChildClass() local
157 JSONObject json = TestListInstrumentationRunListener.getTestMethodJSON(desc); in testGetTestMethodJSONGroup_testA() local
188 JSONObject json = TestListInstrumentationRunListener.getTestMethodJSON(desc); in testGetTestMethodJSONGroup_testB() local
/external/wpa_supplicant_8/src/utils/
Djson.c481 void json_free(struct json_token *json) in json_free()
493 struct json_token * json_get_member(struct json_token *json, const char *name) in json_get_member()
508 struct wpabuf * json_get_member_base64url(struct json_token *json, in json_get_member_base64url()
531 struct wpabuf * json_get_member_base64(struct json_token *json, in json_get_member_base64()
603 void json_add_int(struct wpabuf *json, const char *name, int val) in json_add_int()
609 void json_add_string(struct wpabuf *json, const char *name, const char *val) in json_add_string()
615 int json_add_string_escape(struct wpabuf *json, const char *name, in json_add_string_escape()
631 int json_add_base64url(struct wpabuf *json, const char *name, const void *val, in json_add_base64url()
645 int json_add_base64(struct wpabuf *json, const char *name, const void *val, in json_add_base64()
659 void json_start_object(struct wpabuf *json, const char *name) in json_start_object()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/struct/
DFormatFeatureAcceptSingleTest.java83 String json = aposToQuotes( in testSingleStringArrayRead() local
101 String json = aposToQuotes( in testSingleIntArrayRead() local
110 String json = aposToQuotes( in testSingleLongArrayRead() local
119 String json = aposToQuotes( in testSingleBooleanArrayRead() local
128 String json = aposToQuotes( in testSingleDoubleArrayRead() local
137 String json = aposToQuotes( in testSingleFloatArrayRead() local
146 String json = aposToQuotes( in testSingleElementArrayRead() local
155 String json = aposToQuotes( in testSingleStringListRead() local
164 String json = aposToQuotes( in testSingleElementListRead() local

12345678910>>...27