| /external/gson/gson/src/test/java/com/google/gson/functional/ |
| D | PrimitiveTest.java | 57 assertEquals("1", gson.toJson(1)); in testPrimitiveIntegerAutoboxedSerialization() 72 assertEquals("1", gson.toJson(1, byte.class)); in testByteSerialization() 73 assertEquals("1", gson.toJson(1, Byte.class)); in testByteSerialization() 74 assertEquals(Byte.toString(Byte.MIN_VALUE), gson.toJson(Byte.MIN_VALUE, Byte.class)); in testByteSerialization() 75 assertEquals(Byte.toString(Byte.MAX_VALUE), gson.toJson(Byte.MAX_VALUE, Byte.class)); in testByteSerialization() 77 assertEquals("-128", gson.toJson(128, Byte.class)); in testByteSerialization() 78 assertEquals("1", gson.toJson(1.5, Byte.class)); in testByteSerialization() 118 assertEquals("1", gson.toJson(1, short.class)); in testShortSerialization() 119 assertEquals("1", gson.toJson(1, Short.class)); in testShortSerialization() 120 assertEquals(Short.toString(Short.MIN_VALUE), gson.toJson(Short.MIN_VALUE, Short.class)); in testShortSerialization() [all …]
|
| D | DefaultTypeAdaptersTest.java | 96 gson.toJson(String.class); in testClassSerialization() 102 assertEquals("\"java.lang.String\"", gson.toJson(String.class)); in testClassSerialization() 121 assertEquals("\"http://google.com/\"", gson.toJson(url)); in testUrlSerialization() 138 assertEquals("{}", gson.toJson(target)); in testUrlNullSerialization() 156 assertEquals("\"http://google.com/\"", gson.toJson(uri)); in testUriSerialization() 204 assertEquals("null", gson.toJson(null, c)); in testNullSerializationAndDeserialization() 212 assertEquals('"' + uuidValue + '"', gson.toJson(uuid)); in testUuidSerialization() 226 assertEquals("\"en\"", gson.toJson(target)); in testLocaleSerializationWithLanguage() 239 assertEquals("\"fr_CA\"", gson.toJson(target)); in testLocaleSerializationWithLanguageCountry() 252 String json = gson.toJson(target); in testLocaleSerializationWithLanguageCountryVariant() [all …]
|
| D | FieldExclusionTest.java | 47 String result = gson.toJson(target); in testDefaultInnerClassExclusion() 48 assertEquals(target.toJson(), result); in testDefaultInnerClassExclusion() 52 result = gson.toJson(target); in testDefaultInnerClassExclusion() 53 assertEquals(target.toJson(), result); in testDefaultInnerClassExclusion() 60 String result = gson.toJson(target); in testInnerClassExclusion() 68 String result = gson.toJson(target); in testDefaultNestedStaticClassIncluded() 69 assertEquals(target.toJson(), result); in testDefaultNestedStaticClassIncluded() 73 result = gson.toJson(target); in testDefaultNestedStaticClassIncluded() 74 assertEquals(target.toJson(), result); in testDefaultNestedStaticClassIncluded() 92 public String toJson() { in toJson() method in FieldExclusionTest.NestedClass
|
| D | ObjectTest.java | 108 assertEquals(target.getExpectedJson(), gson.toJson(target)); in testBagOfPrimitivesSerialization() 122 assertEquals(target.getExpectedJson(), gson.toJson(target)); in testBagOfPrimitiveWrappersSerialization() 136 assertEquals(target.getExpectedJson(), gson.toJson(target)); in testClassWithTransientFieldsSerialization() 156 assertEquals("{}", gson.toJson(new ClassWithNoFields())); in testClassWithNoFieldsSerialization() 197 assertEquals(target.getExpectedJson(), gson.toJson(target)); in testNestedSerialization() 210 assertEquals("null", gson.toJson(null)); in testNullSerialization() 238 assertEquals(target.getExpectedJson(), gson.toJson(target)); in testNullFieldsSerialization() 252 assertEquals(target.getExpectedJson(), gson.toJson(target)); in testArrayOfObjectsSerialization() 265 assertEquals(target.getExpectedJson(), gson.toJson(target)); in testArrayOfArraysSerialization() 280 String classWithObjectsJson = gson.toJson(classWithObjects); in testArrayOfObjectsAsFields() [all …]
|
| D | MapTest.java | 73 String json = gson.toJson(map, typeOfMap); in testMapSerialization() 92 String json = gson.toJson(map); in testObjectMapSerialization() 101 String json = gson.toJson(map, typeOfMap); in testMapSerializationEmpty() 117 String json = gson.toJson(map, typeOfMap); in testMapSerializationWithNullValue() 137 String json = gson.toJson(map, typeOfMap); in testMapSerializationWithNullValueButSerializeNulls() 147 String json = gson.toJson(map, typeOfMap); in testMapSerializationWithNullKey() 171 String json = gson.toJson(map, typeOfMap); in testMapSerializationWithIntegerKeys() 241 String json = gson.toJson(map); in testConcurrentMap() 252 String json = gson.toJson(map); in testConcurrentHashMap() 263 String json = gson.toJson(map); in testConcurrentNavigableMap() [all …]
|
| D | ArrayTest.java | 54 assertEquals("[1,2,3,4,5,6,7,8,9]", gson.toJson(target)); in testTopLevelArrayOfIntsSerialization() 77 assertEquals("[]", gson.toJson(target)); in testEmptyArraySerialization() 96 String json = gson.toJson(array); in testNullsInArraySerialization() 114 String json = gson.toJson(array); in testSingleNullInArraySerialization() 129 String json = gson.toJson(array); in testNullsInArrayWithSerializeNullPropertySetSerialization() 136 assertEquals("[\"Hello\",\"World\"]", gson.toJson(target)); in testArrayOfStringsSerialization() 150 String output = gson.toJson(s); in testSingleStringArraySerialization() 184 String json = gson.toJson(arrayOfCollection, typeToSerialize); in testArrayOfCollectionSerialization() 202 String json = gson.toJson(objs); in testArrayOfPrimitivesAsObjectsSerialization() 223 String classWithObjectsJson = gson.toJson(classWithObjects); in testObjectArrayWithNonPrimitivesSerialization() [all …]
|
| D | StringTest.java | 26 assertEquals('"' + value + '"', gson.toJson(value)); in testStringValueSerialization() 39 String jsonRepresentation = gson.toJson(valueWithQuotes); in testSingleQuoteInStringSerialization() 46 String json = gson.toJson(value); in testEscapedCtrlNInStringSerialization() 60 String json = gson.toJson(value); in testEscapedCtrlRInStringSerialization() 74 String json = gson.toJson(value); in testEscapedBackslashInStringSerialization() 94 String jsonRepresentation = gson.toJson(valueWithQuotes); in testEscapingQuotesInStringSerialization() 110 assertEquals("[\"abc\"]", gson.toJson(target)); in testStringValueAsSingleElementArraySerialization() 111 assertEquals("[\"abc\"]", gson.toJson(target, String[].class)); in testStringValueAsSingleElementArraySerialization() 128 String json = gson.toJson(value); in testAssignmentCharSerialization() 149 String json = gson.toJson(value); in testJavascriptKeywordsInStringSerialization()
|
| D | NullObjectAndFieldTest.java | 57 String actual = gson.toJson(null); in testTopLevelNullObjectSerialization() 60 actual = gson.toJson(null, String.class); in testTopLevelNullObjectSerialization() 75 String actual = gson.toJson(target); in testExplicitSerializationOfNulls() 91 String json = gson.toJson(target); in testExplicitSerializationOfNullArrayMembers() 102 String json = gson.toJson(target); in testNullWrappedPrimitiveMemberSerialization() 121 String json = gson.toJson(target); in testExplicitSerializationOfNullCollectionMembers() 129 String json = gson.toJson(target); in testExplicitSerializationOfNullStringMembers() 138 String actual = gson.toJson(target); in testCustomSerializationOfNulls() 147 String result = gson.toJson(new ClassWithMembers()); in testPrintPrintingObjectWithNulls() 151 result = gson.toJson(new ClassWithMembers()); in testPrintPrintingObjectWithNulls() [all …]
|
| D | VersioningTest.java | 50 String json = gson.toJson(target); in testVersionedUntilSerialization() 54 json = gson.toJson(target); in testVersionedUntilSerialization() 58 json = gson.toJson(target); in testVersionedUntilSerialization() 82 String json1 = gson.toJson(new Version1()); in testVersionedClassesSerialization() 83 String json2 = gson.toJson(new Version1_1()); in testVersionedClassesSerialization() 103 assertEquals("null", gson.toJson(new Version1_2())); in testIgnoreLaterVersionClassSerialization() 120 assertEquals(target.getExpectedJson(), gson.toJson(target)); in testVersionedGsonWithUnversionedClassesSerialization() 140 String json = gson.toJson(target); in testVersionedGsonMixingSinceAndUntilSerialization() 144 json = gson.toJson(target); in testVersionedGsonMixingSinceAndUntilSerialization() 148 json = gson.toJson(target); in testVersionedGsonMixingSinceAndUntilSerialization() [all …]
|
| D | CollectionTest.java | 67 String json = gson.toJson(target, targetType); in testTopLevelCollectionOfIntegersSerialization() 104 String json = gson.toJson(list, linkedListType); in testLinkedListSerialization() 124 String json = gson.toJson(queue, queueType); in testQueueSerialization() 144 String json = gson.toJson(queue); in testPriorityQueue() 159 String json = gson.toJson(target); in testVector() 168 String json = gson.toJson(target); in testStack() 183 String json = gson.toJson(list, typeOfList); in testNullsInListSerialization() 206 assertEquals("[\"Hello\",\"World\"]", gson.toJson(target)); in testCollectionOfObjectSerialization() 209 assertEquals("[\"Hello\",\"World\"]", gson.toJson(target, type)); in testCollectionOfObjectSerialization() 218 assertEquals("[\"Hello\",null,\"World\"]", gson.toJson(target)); in testCollectionOfObjectWithNullSerialization() [all …]
|
| D | EnumTest.java | 64 String result = gson.toJson(MyEnum.VALUE1); in testTopLevelEnumSerialization() 81 String actualJson = gson.toJson(target); in testCollectionOfEnumsSerialization() 83 actualJson = gson.toJson(target, type); in testCollectionOfEnumsSerialization() 99 assertEquals(target.getExpectedJson(), gson.toJson(target)); in testClassWithEnumFieldSerialization() 128 assertEquals("\"ROCK\"", gson.toJson(Roshambo.ROCK)); in testEnumSubclass() 129 assertEquals("[\"ROCK\",\"PAPER\",\"SCISSORS\"]", gson.toJson(EnumSet.allOf(Roshambo.class))); in testEnumSubclass() 141 assertEquals("\"123ROCK\"", gson.toJson(Roshambo.ROCK)); in testEnumSubclassWithRegisteredTypeAdapter() 142 …assertEquals("[\"123ROCK\",\"123PAPER\",\"123SCISSORS\"]", gson.toJson(EnumSet.allOf(Roshambo.clas… in testEnumSubclassWithRegisteredTypeAdapter() 154 String json = gson.toJson(list); in testEnumSubclassAsParameterizedType() 166 assertEquals("\"boy\"", gson.toJson(Gender.MALE, Gender.class)); in testEnumCaseMapping() [all …]
|
| D | CustomTypeAdaptersTest.java | 74 assertEquals("{\"bag\":5,\"value\":25}", gson.toJson(target)); in testCustomSerializers() 100 String jsonFromCustomSerializer = gson.toJson(newFooObject); in disable_testCustomSerializersOfSelf() 101 String jsonFromGson = basicGson.toJson(newFooObject); in disable_testCustomSerializersOfSelf() 112 String json = basicGson.toJson(expectedFoo); in disable_testCustomDeserializersOfSelf() 129 assertEquals("{\"bag\":6,\"value\":10}", gson.toJson(target)); in testCustomNestedSerializers() 158 String json = gson.toJson(b); in testCustomTypeAdapterDoesNotAppliesToSubClasses() 161 json = gson.toJson(b); in testCustomTypeAdapterDoesNotAppliesToSubClasses() 176 String json = gson.toJson(b); in testCustomTypeAdapterAppliesToSubClassesSerializedAsBaseClass() 179 json = gson.toJson(b, Base.class); in testCustomTypeAdapterAppliesToSubClassesSerializedAsBaseClass() 234 assertEquals("1", gson.toJson(true, boolean.class)); in testCustomSerializerInvokedForPrimitives() [all …]
|
| D | RawSerializationTest.java | 44 String json = gson.toJson(ints); in testCollectionOfPrimitives() 51 String json = gson.toJson(foos); in testCollectionOfObjects() 60 String json = gson.toJson(bar); in testParameterizedObject() 63 json = gson.toJson(bar, new TypeToken<Bar<Foo>>(){}.getType()); in testParameterizedObject() 72 String json = gson.toJson(bar); in testTwoLevelParameterizedObject() 75 json = gson.toJson(bar, new TypeToken<Bar<Bar<Foo>>>(){}.getType()); in testTwoLevelParameterizedObject() 84 String json = gson.toJson(bar); in testThreeLevelParameterizedObject() 87 json = gson.toJson(bar, new TypeToken<Bar<Bar<Bar<Foo>>>>(){}.getType()); in testThreeLevelParameterizedObject()
|
| D | NamingPolicyTest.java | 51 + target.someConstantStringInstanceField + "\"}", gson.toJson(target)); in testGsonWithNonDefaultFieldNamingPolicySerialization() 67 + target.someConstantStringInstanceField + "\"}", gson.toJson(target)); in testGsonWithLowerCaseDashPolicySerialization() 75 + target.someConstantStringInstanceField + "\"}", gson.toJson(target)); in testGsonWithLowerCaseDotPolicySerialization() 100 + target.someConstantStringInstanceField + "\"}", gson.toJson(target)); in testGsonWithLowerCaseUnderscorePolicySerialization() 116 String actual = gson.toJson(expected); in testGsonWithSerializedNameFieldNamingPolicySerialization() 134 gson.toJson(target); in testGsonDuplicateNameUsingSerializedNameFieldNamingPolicySerialization() 152 + target.someConstantStringInstanceField + "\"}", gson.toJson(target)); in testGsonWithUpperCamelCaseSpacesPolicySerialiation() 170 + target.someConstantStringInstanceField + "\"}", gson.toJson(target)); in testGsonWithUpperCaseUnderscorePolicySerialization() 186 String actual = gson.toJson(target); in testDeprecatedNamingStrategy() 193 String json = gson.toJson(new ClassWithComplexFieldName(10)); in testComplexFieldNameStrategy() [all …]
|
| D | EscapingTest.java | 48 String jsonRepresentation = gson.toJson(valueWithQuotes); in testEscapingQuotesInStringArray() 64 gson.toJson(strings)); in testEscapeAllHtmlCharacters() 70 String jsonRepresentation = gson.toJson(objWithPrimitives); in testEscapingObjectFields() 85 String escapedJsonForm = escapeHtmlGson.toJson(target); in testGsonAcceptsEscapedAndNonEscapedJsonDeserialization() 86 String nonEscapedJsonForm = noEscapeHtmlGson.toJson(target); in testGsonAcceptsEscapedAndNonEscapedJsonDeserialization() 96 String json = gson.toJson(gson.toJson(expected)); in testGsonDoubleDeserialization()
|
| D | Java17RecordTest.java | 58 assertEquals("{\"name\":\"v1\",\"name1\":\"v2\"}", gson.toJson(target)); in testFirstNameIsChosenForSerialization() 105 assertEquals("{\"i-custom\":1}", gson.toJson(new LocalRecord(1))); in testFieldNamingStrategy() 172 assertEquals("{\"s\":\"accessor-value\"}", gson.toJson(new LocalRecord(null))); in testAccessorIsCalled() 188 gson.toJson(new LocalRecord("a")); in testThrowingAccessor() 202 assertEquals("{}", gson.toJson(new EmptyRecord())); in testEmptyRecord() 215 assertEquals("null", adapter.toJson(null)); in testRecordNull() 279 assertEquals("{}", gson.toJson(new RecordWithStaticField())); in testStaticFieldSerialization() 286 String json = gson.toJson(new RecordWithStaticField()); in testStaticFieldSerialization() 330 String json = gson.toJson(new RecordWithExpose(1, 2)); in testExposeAnnotation() 350 assertEquals("{\"b\":2}", gson.toJson(new LocalRecord(1, 2, 3.0))); in testFieldExclusionStrategy() [all …]
|
| /external/skia/tools/debugger/ |
| D | DrawCommand.h | 116 virtual void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const; 163 void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const override; 176 void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const override; 190 void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const override; 203 void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const override; 218 void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const override; 233 void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const override; 255 void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const override; 267 void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const override; 279 void toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const override; [all …]
|
| D | DrawCommand.cpp | 284 void DrawCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() function in DrawCommand 1009 void ClearCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() function in ClearCommand 1010 INHERITED::toJSON(writer, urlDataManager); in toJSON() 1029 void ClipPathCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() function in ClipPathCommand 1030 INHERITED::toJSON(writer, urlDataManager); in toJSON() 1045 void ClipRegionCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() function in ClipRegionCommand 1046 INHERITED::toJSON(writer, urlDataManager); in toJSON() 1061 void ClipRectCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() function in ClipRectCommand 1062 INHERITED::toJSON(writer, urlDataManager); in toJSON() 1086 void ClipRRectCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() function in ClipRRectCommand [all …]
|
| /external/flatbuffers/kotlin/benchmark/src/jvmMain/kotlin/com/google/flatbuffers/kotlin/benchmark/ |
| D | JsonBenchmark.kt | 21 import com.google.flatbuffers.kotlin.toJson 86 …pTwitterFlexBuffers(hole: Blackhole? = null) = hole?.consume(readFlexBuffers(twitterData).toJson()) 88 …fun roundTripTwitterMoshi(hole: Blackhole?) = hole?.consume(moshiAdapter.toJson(readMoshi(twitterD… 90 fun roundTripTwitterGson(hole: Blackhole?) = hole?.consume(gson.toJson(readGson(twitterData))) 96 fun readCITMMoshi(hole: Blackhole?) = hole?.consume(moshiAdapter.toJson(readMoshi(citmData))) 98 fun readCITMGson(hole: Blackhole?) = hole?.consume(gson.toJson(readGson(citmData))) 101 …undTripCITMFlexBuffers(hole: Blackhole? = null) = hole?.consume(readFlexBuffers(citmData).toJson()) 103 fun roundTripCITMMoshi(hole: Blackhole?) = hole?.consume(moshiAdapter.toJson(readMoshi(citmData))) 105 fun roundTripCITMGson(hole: Blackhole?) = hole?.consume(gson.toJson(readGson(citmData))) 108 fun writeCITMFlexBuffers(hole: Blackhole? = null) = hole?.consume(fbCitmRef.toJson()) [all …]
|
| /external/gson/gson/src/test/java/com/google/gson/ |
| D | MixedStreamTest.java | 63 gson.toJson(BLUE_MUSTANG, Car.class, jsonWriter); in testWriteMixedStreamed() 64 gson.toJson(BLACK_BMW, Car.class, jsonWriter); in testWriteMixedStreamed() 65 gson.toJson(RED_MIATA, Car.class, jsonWriter); in testWriteMixedStreamed() 107 gson.toJson(BLUE_MUSTANG, Car.class, jsonWriter); in testWriteDoesNotMutateState() 113 gson.toJson(BLUE_MUSTANG, Car.class, jsonWriter); in testWriteDoesNotMutateState() 149 gson.toJson(BLUE_MUSTANG, Car.class, jsonWriter); in testWriteInvalidState() 163 gson.toJson(BLUE_MUSTANG, Car.class, jsonWriter); in testWriteClosed() 173 gson.toJson(new JsonPrimitive("hello"), (JsonWriter) null); in testWriteNulls() 179 gson.toJson(null, new JsonWriter(stringWriter)); in testWriteNulls() 204 new Gson().toJson(contents, type, new JsonWriter(writer)); in testWriteHtmlSafe() [all …]
|
| /external/tink/java_src/src/main/java/com/google/crypto/tink/ |
| D | JsonKeysetWriter.java | 108 outputStream.write(toJson(keyset).toString().getBytes(UTF_8)); in write() 119 outputStream.write(toJson(keyset).toString().getBytes(UTF_8)); in write() 128 private JsonObject toJson(Keyset keyset) { in toJson() method in JsonKeysetWriter 133 keys.add(toJson(key)); in toJson() 139 private JsonObject toJson(Keyset.Key key) { in toJson() method in JsonKeysetWriter 141 json.add("keyData", toJson(key.getKeyData())); in toJson() 148 private JsonObject toJson(KeyData keyData) { in toJson() method in JsonKeysetWriter 156 private JsonObject toJson(EncryptedKeyset keyset) { in toJson() method in JsonKeysetWriter 159 json.add("keysetInfo", toJson(keyset.getKeysetInfo())); in toJson() 163 private JsonObject toJson(KeysetInfo keysetInfo) { in toJson() method in JsonKeysetWriter [all …]
|
| /external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
| D | ConnectivityEvents.java | 50 public JSONObject toJSON() throws JSONException { in toJSON() method in ConnectivityEvents.SocketKeepaliveEvent 83 public JSONObject toJSON() throws JSONException { in toJSON() method in ConnectivityEvents.NetworkCallbackEventBase 114 public JSONObject toJSON() throws JSONException { in toJSON() method in ConnectivityEvents.NetworkCallbackEventOnLosing 115 JSONObject json = super.toJSON(); in toJSON() 137 public JSONObject toJSON() throws JSONException { in toJSON() method in ConnectivityEvents.NetworkCallbackEventOnCapabilitiesChanged 138 JSONObject json = super.toJSON(); in toJSON() 160 public JSONObject toJSON() throws JSONException { in toJSON() method in ConnectivityEvents.NetworkCallbackEventOnLinkPropertiesChanged 161 JSONObject json = super.toJSON(); in toJSON()
|
| /external/protobuf/src/google/protobuf/util/ |
| D | json_util_test.cc | 71 std::string ToJson(const Message& message, const JsonPrintOptions& options) { in ToJson() function in google::protobuf::util::__anon5d22763f0111::JsonUtilTest 94 EXPECT_EQ("{\"messageValue\":{}}", ToJson(m, options)); in TEST_F() 100 ToJson(m, options)); in TEST_F() 106 EXPECT_EQ("{}", ToJson(m, options)); in TEST_F() 131 ToJson(m, options)); in TEST_F() 159 ToJson(m, options)); in TEST_F() 187 ToJson(m, options)); in TEST_F() 196 EXPECT_EQ("{\"message_value\":{}}", ToJson(m, options)); in TEST_F() 209 EXPECT_EQ(expected_json, ToJson(orig, print_options)); in TEST_F() 233 EXPECT_EQ(expected_json, ToJson(orig, print_options)); in TEST_F() [all …]
|
| /external/cronet/third_party/protobuf/src/google/protobuf/util/ |
| D | json_util_test.cc | 71 std::string ToJson(const Message& message, const JsonPrintOptions& options) { in ToJson() function in google::protobuf::util::__anon77cb55920111::JsonUtilTest 94 EXPECT_EQ("{\"messageValue\":{}}", ToJson(m, options)); in TEST_F() 100 ToJson(m, options)); in TEST_F() 106 EXPECT_EQ("{}", ToJson(m, options)); in TEST_F() 131 ToJson(m, options)); in TEST_F() 159 ToJson(m, options)); in TEST_F() 187 ToJson(m, options)); in TEST_F() 196 EXPECT_EQ("{\"message_value\":{}}", ToJson(m, options)); in TEST_F() 209 EXPECT_EQ(expected_json, ToJson(orig, print_options)); in TEST_F() 233 EXPECT_EQ(expected_json, ToJson(orig, print_options)); in TEST_F() [all …]
|
| /external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/ |
| D | JsonRpcHandler.java | 55 return Sl4aErrors.JSON_RPC_REQUEST_NOT_JSON.toJson(JSONObject.NULL); in getResponse() 98 return Sl4aErrors.SESSION_INVALID.toJson(id, mSessionId); in getResponse() 102 return Sl4aErrors.JSON_RPC_UNKNOWN_RPC_METHOD.toJson(id, method); in getResponse() 109 return Sl4aErrors.JSON_RPC_FACADE_EXCEPTION_OCCURRED.toJson(id, t); in getResponse() 119 return Sl4aErrors.JSON_RPC_RESULT_NOT_JSON_VALID.toJson(id, e); in getResponse() 124 return Sl4aErrors.JSON_RPC_FAILED_TO_BUILD_RESULT.toJson(id, t); in getResponse() 146 return Sl4aErrors.JSON_RPC_MISSING_ID.toJson(id); in getValidationErrors() 151 return Sl4aErrors.JSON_RPC_MISSING_METHOD.toJson(id); in getValidationErrors() 153 return Sl4aErrors.JSON_RPC_METHOD_NOT_STRING.toJson(id); in getValidationErrors() 156 return Sl4aErrors.JSON_RPC_PARAMS_NOT_AN_ARRAY.toJson(id); in getValidationErrors()
|