Home
last modified time | relevance | path

Searched refs:gson (Results 1 – 25 of 57) sorted by relevance

123

/external/caliper/caliper/src/main/java/com/google/caliper/json/
DImmutableListTypeAdatperFactory.java21 import com.google.gson.Gson;
22 import com.google.gson.TypeAdapter;
23 import com.google.gson.TypeAdapterFactory;
24 import com.google.gson.reflect.TypeToken;
25 import com.google.gson.stream.JsonReader;
26 import com.google.gson.stream.JsonWriter;
40 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { in create() argument
51 (TypeAdapter<ArrayList<?>>) gson.getAdapter( in create()
DImmutableMapTypeAdapterFactory.java21 import com.google.gson.Gson;
22 import com.google.gson.TypeAdapter;
23 import com.google.gson.TypeAdapterFactory;
24 import com.google.gson.reflect.TypeToken;
25 import com.google.gson.stream.JsonReader;
26 import com.google.gson.stream.JsonWriter;
40 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { in create() argument
51 (TypeAdapter<HashMap<?, ?>>) gson.getAdapter( in create()
DNaturallySortedMapTypeAdapterFactory.java21 import com.google.gson.Gson;
22 import com.google.gson.TypeAdapter;
23 import com.google.gson.TypeAdapterFactory;
24 import com.google.gson.reflect.TypeToken;
25 import com.google.gson.stream.JsonReader;
26 import com.google.gson.stream.JsonWriter;
45 @Override public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { in create() argument
56 (TypeAdapter<Map<?, ?>>) gson.getAdapter( in create()
DImmutableMultimapTypeAdapterFactory.java26 import com.google.gson.Gson;
27 import com.google.gson.TypeAdapter;
28 import com.google.gson.TypeAdapterFactory;
29 import com.google.gson.stream.JsonReader;
30 import com.google.gson.stream.JsonWriter;
70 public <T> TypeAdapter<T> create(Gson gson, com.google.gson.reflect.TypeToken<T> typeToken) { in create() argument
75 (TypeAdapter<Map<?, List<?>>>) gson.getAdapter( in create()
76 com.google.gson.reflect.TypeToken.get(mapToken.getType())); in create()
96 (TypeAdapter<Map<?, Set<?>>>) gson.getAdapter( in create()
97 com.google.gson.reflect.TypeToken.get(mapToken.getType())); in create()
DGsonModule.java19 import com.google.gson.ExclusionStrategy;
20 import com.google.gson.Gson;
21 import com.google.gson.GsonBuilder;
22 import com.google.gson.TypeAdapterFactory;
23 import com.google.gson.internal.bind.TypeAdapters;
DInstantTypeAdapter.java19 import com.google.gson.TypeAdapter;
20 import com.google.gson.stream.JsonReader;
21 import com.google.gson.stream.JsonWriter;
DAnnotationExclusionStrategy.java20 import com.google.gson.ExclusionStrategy;
21 import com.google.gson.FieldAttributes;
/external/oss-fuzz/projects/json-sanitizer/
DValidJsonFuzzer.java20 import com.google.gson.Gson;
21 import com.google.gson.JsonElement;
25 private static Gson gson = new Gson(); field in ValidJsonFuzzer
41 Gson gson = new Gson(); in fuzzerTestOneInput() local
42 gson.fromJson(output, JsonElement.class); in fuzzerTestOneInput()
Dbuild.sh31 mvn dependency:copy -Dartifact=com.google.code.gson:gson:2.8.6 -DoutputDirectory=$OUT/
35 FUZZER_JARS=gson-2.8.6.jar
/external/vogar/src/vogar/monitor/
DTargetMonitor.java19 import com.google.gson.Gson;
20 import com.google.gson.JsonObject;
35 private final Gson gson = new Gson(); field in TargetMonitor
69 writer.print(marker + gson.toJson(jsonObject) + "\n");
79 writer.print(marker + gson.toJson(jsonObject) + "\n");
89 writer.print(marker + gson.toJson(jsonObject) + "\n");
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DLottieApplication.kt5 import com.google.gson.FieldNamingPolicy
6 import com.google.gson.GsonBuilder
10 import retrofit2.converter.gson.GsonConverterFactory
19 val gson by lazy { in <lambda>() constant in com.airbnb.lottie.samples.LottieApplication
29 .addConverterFactory(GsonConverterFactory.create(gson)) in <lambda>()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DOutputFileDumper.java31 import com.google.gson.Gson;
32 import com.google.gson.stream.JsonWriter;
55 private final Gson gson; field in OutputFileDumper
63 Gson gson, in OutputFileDumper() argument
84 this.gson = gson; in OutputFileDumper()
112 gson.toJson(trial, Trial.class, writer.get()); in processTrial()
DResultsUploader.java29 import com.google.gson.Gson;
55 private final Gson gson; field in ResultsUploader
61 ResultsUploader(PrintWriter stdout, Gson gson, Client client, in ResultsUploader() argument
65 this.gson = gson; in ResultsUploader()
103 resource.type(APPLICATION_JSON_TYPE).post(gson.toJson(ImmutableList.of(trial))); in processTrial()
DHttpUploader.java23 import com.google.gson.Gson;
36 @Inject HttpUploader(@Stdout PrintWriter stdout, Gson gson, CaliperConfig config) in HttpUploader() argument
38 super(stdout, gson, Client.create(), config.getResultProcessorConfig(HttpUploader.class)); in HttpUploader()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/generator/
DJavadocJsonGenerator.java3 import com.google.gson.Gson;
4 import com.google.gson.GsonBuilder;
22 private final Gson gson; field in JavadocJsonGenerator
31 gson = new GsonBuilder() in JavadocJsonGenerator()
63 gson.toJson(object, writer); in writeJson()
/external/cldr/tools/java/org/unicode/cldr/tool/
DKeymanCheck.java25 import com.google.gson.Gson;
26 import com.google.gson.stream.JsonReader;
27 import com.google.gson.stream.JsonToken;
28 import com.google.gson.stream.JsonWriter;
38 Gson gson = new Gson(); in main() local
39 …JsonReader reader = gson.newJsonReader(FileUtilities.openFile("/Users/markdavis/Google Drive/works… in main()
41 JsonWriter writer = gson.newJsonWriter(stringWriter); in main()
/external/robolectric-shadows/processor/src/test/java/org/robolectric/annotation/processing/
DJavadocJsonGeneratorTest.java12 import com.google.gson.JsonElement;
13 import com.google.gson.JsonObject;
14 import com.google.gson.JsonParser;
15 import com.google.gson.JsonPrimitive;
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DParseResponseWithGson.java18 import com.google.gson.Gson;
27 private final Gson gson = new Gson(); field in ParseResponseWithGson
36 Gist gist = gson.fromJson(response.body().charStream(), Gist.class); in run()
/external/protobuf/
DWORKSPACE61 artifact = "com.google.code.gson:gson:2.7",
65 name = "gson",
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DAddAnnotation.java26 import com.google.gson.Gson;
27 import com.google.gson.GsonBuilder;
28 import com.google.gson.stream.JsonReader;
29 import com.google.gson.stream.JsonToken;
30 import com.google.gson.stream.MalformedJsonException;
120 Gson gson = new GsonBuilder().create(); in fromJsonFile() local
127 try (JsonReader reader = gson.newJsonReader(new StringReader(jsonStringWithoutComments))) { in fromJsonFile()
/external/lottie/LottieSample/src/androidTest/java/com/airbnb/lottie/samples/
DSnapshot.kt4 import com.google.gson.JsonElement
5 import com.google.gson.JsonObject
/external/cldr/tools/java/
Dcldr-tools.properties16 cldr.libs.gson=gson.jar
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandlerIntegrationTest.java30 import com.google.gson.GsonBuilder;
31 import com.google.gson.JsonArray;
32 import com.google.gson.JsonNull;
33 import com.google.gson.JsonObject;
34 import com.google.gson.JsonParser;
/external/okhttp/samples/simple-client/src/main/java/com/squareup/okhttp/sample/
DOkHttpContributors.java3 import com.google.gson.Gson;
4 import com.google.gson.reflect.TypeToken;
/external/cldr/tools/java/org/unicode/cldr/json/
DLdml2JsonConverter.java44 import com.google.gson.Gson;
45 import com.google.gson.GsonBuilder;
46 import com.google.gson.JsonArray;
47 import com.google.gson.JsonObject;
48 import com.google.gson.JsonPrimitive;
49 import com.google.gson.stream.JsonWriter;
75 private Gson gson = new GsonBuilder().setPrettyPrinting().create(); field in Ldml2JsonConverter
746 outf.println(gson.toJson(obj)); in writePackageJson()
773 outf.println(gson.toJson(obj)); in writeBowerJson()
781 obj.add("defaultContent", gson.toJsonTree(skippedDefaultContentLocales)); in writeDefaultContent()
[all …]

123