Home
last modified time | relevance | path

Searched refs:JsonReader (Results 1 – 25 of 68) sorted by relevance

123

/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DJsonUtils.java8 import com.airbnb.lottie.parser.moshi.JsonReader;
21 @ColorInt static int jsonToColor(JsonReader reader) throws IOException { in jsonToColor()
33 static List<PointF> jsonToPoints(JsonReader reader, float scale) throws IOException { in jsonToPoints()
37 while (reader.peek() == JsonReader.Token.BEGIN_ARRAY) { in jsonToPoints()
46 static PointF jsonToPoint(JsonReader reader, float scale) throws IOException { in jsonToPoint()
55 private static PointF jsonNumbersToPoint(JsonReader reader, float scale) throws IOException { in jsonNumbersToPoint()
64 private static PointF jsonArrayToPoint(JsonReader reader, float scale) throws IOException { in jsonArrayToPoint()
70 while (reader.peek() != JsonReader.Token.END_ARRAY) { in jsonArrayToPoint()
77 private static final JsonReader.Options POINT_NAMES = JsonReader.Options.of("x", "y");
79 private static PointF jsonObjectToPoint(JsonReader reader, float scale) throws IOException { in jsonObjectToPoint()
[all …]
DAnimatableValueParser.java6 import com.airbnb.lottie.parser.moshi.JsonReader;
26 JsonReader reader, LottieComposition composition) throws IOException { in parseFloat()
31 JsonReader reader, LottieComposition composition, boolean isDp) throws IOException { in parseFloat()
37 JsonReader reader, LottieComposition composition) throws IOException { in parseInteger()
42 JsonReader reader, LottieComposition composition) throws IOException { in parsePoint()
48 JsonReader reader, LottieComposition composition) throws IOException { in parseScale()
53 JsonReader reader, LottieComposition composition) throws IOException { in parseShapeData()
59 JsonReader reader, LottieComposition composition) throws IOException { in parseDocumentData()
64 JsonReader reader, LottieComposition composition) throws IOException { in parseColor()
69 JsonReader reader, LottieComposition composition, int points) throws IOException { in parseGradientColor()
[all …]
DAnimatablePathValueParser.java7 import com.airbnb.lottie.parser.moshi.JsonReader;
21 private static JsonReader.Options NAMES = JsonReader.Options.of(
30 JsonReader reader, LottieComposition composition) throws IOException { in parse()
32 if (reader.peek() == JsonReader.Token.BEGIN_ARRAY) { in parse()
49 JsonReader reader, LottieComposition composition) throws IOException { in parseSplitPath()
58 while (reader.peek() != JsonReader.Token.END_OBJECT) { in parseSplitPath()
64 if (reader.peek() == JsonReader.Token.STRING) { in parseSplitPath()
72 if (reader.peek() == JsonReader.Token.STRING) { in parseSplitPath()
DLottieCompositionMoshiParser.java12 import com.airbnb.lottie.parser.moshi.JsonReader;
27 private static final JsonReader.Options NAMES = JsonReader.Options.of(
41 public static LottieComposition parse(JsonReader reader) throws IOException { in parse()
116 private static void parseLayers(JsonReader reader, LottieComposition composition, in parseLayers()
138 static JsonReader.Options ASSETS_NAMES = JsonReader.Options.of(
147 private static void parseAssets(JsonReader reader, LottieComposition composition, in parseAssets()
204 private static final JsonReader.Options FONT_NAMES = JsonReader.Options.of("list");
206 private static void parseFonts(JsonReader reader, Map<String, Font> fonts) throws IOException { in parseFonts()
227 JsonReader reader, LottieComposition composition, in parseChars()
237 private static final JsonReader.Options MARKER_NAMES = JsonReader.Options.of(
[all …]
DPointFParser.java5 import com.airbnb.lottie.parser.moshi.JsonReader;
16 public PointF parse(JsonReader reader, float scale) throws IOException { in parse()
17 JsonReader.Token token = reader.peek(); in parse()
18 if (token == JsonReader.Token.BEGIN_ARRAY) { in parse()
20 } else if (token == JsonReader.Token.BEGIN_OBJECT) { in parse()
22 } else if (token == JsonReader.Token.NUMBER) { in parse()
DAnimatableTextPropertiesParser.java7 import com.airbnb.lottie.parser.moshi.JsonReader;
13 private static JsonReader.Options PROPERTIES_NAMES = JsonReader.Options.of("a");
14 private static JsonReader.Options ANIMATABLE_PROPERTIES_NAMES = JsonReader.Options.of(
24 JsonReader reader, LottieComposition composition) throws IOException { in parse()
47 JsonReader reader, LottieComposition composition) throws IOException { in parseAnimatableTextProperties()
DKeyframesParser.java5 import com.airbnb.lottie.parser.moshi.JsonReader;
14 static JsonReader.Options NAMES = JsonReader.Options.of("k");
19 static <T> List<Keyframe<T>> parse(JsonReader reader, in parse()
24 if (reader.peek() == JsonReader.Token.STRING) { in parse()
33 if (reader.peek() == JsonReader.Token.BEGIN_ARRAY) { in parse()
36 if (reader.peek() == JsonReader.Token.NUMBER) { in parse()
DFontCharacterParser.java6 import com.airbnb.lottie.parser.moshi.JsonReader;
13 private static final JsonReader.Options NAMES = JsonReader.Options.of(
21 private static final JsonReader.Options DATA_NAMES = JsonReader.Options.of("shapes");
27 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DGradientStrokeParser.java12 import com.airbnb.lottie.parser.moshi.JsonReader;
21 private static JsonReader.Options NAMES = JsonReader.Options.of(
35 private static final JsonReader.Options GRADIENT_NAMES = JsonReader.Options.of(
39 private static final JsonReader.Options DASH_PATTERN_NAMES = JsonReader.Options.of(
45 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DGradientFillParser.java12 import com.airbnb.lottie.parser.moshi.JsonReader;
17 private static final JsonReader.Options NAMES = JsonReader.Options.of(
27 private static final JsonReader.Options GRADIENT_NAMES = JsonReader.Options.of(
35 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DShapeStrokeParser.java9 import com.airbnb.lottie.parser.moshi.JsonReader;
17 private static JsonReader.Options NAMES = JsonReader.Options.of(
28 private static final JsonReader.Options DASH_PATTERN_NAMES = JsonReader.Options.of(
37 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DMergePathsParser.java4 import com.airbnb.lottie.parser.moshi.JsonReader;
9 private static final JsonReader.Options NAMES = JsonReader.Options.of(
17 static MergePaths parse(JsonReader reader) throws IOException { in parse()
DShapeDataParser.java7 import com.airbnb.lottie.parser.moshi.JsonReader;
17 private static final JsonReader.Options NAMES = JsonReader.Options.of(
28 public ShapeData parse(JsonReader reader, float scale) throws IOException { in parse()
31 if (reader.peek() == JsonReader.Token.BEGIN_ARRAY) { in parse()
63 if (reader.peek() == JsonReader.Token.END_ARRAY) { in parse()
DFontParser.java4 import com.airbnb.lottie.parser.moshi.JsonReader;
9 private static final JsonReader.Options NAMES = JsonReader.Options.of(
18 static Font parse(JsonReader reader) throws IOException { in parse()
DShapePathParser.java7 import com.airbnb.lottie.parser.moshi.JsonReader;
13 static JsonReader.Options NAMES = JsonReader.Options.of(
24 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DAnimatableTransformParser.java13 import com.airbnb.lottie.parser.moshi.JsonReader;
24 private static JsonReader.Options NAMES = JsonReader.Options.of(
36 private static JsonReader.Options ANIMATABLE_NAMES = JsonReader.Options.of("k");
39 JsonReader reader, LottieComposition composition) throws IOException { in parse()
50 boolean isObject = reader.peek() == JsonReader.Token.BEGIN_OBJECT; in parse()
DShapeGroupParser.java7 import com.airbnb.lottie.parser.moshi.JsonReader;
16 private static JsonReader.Options NAMES = JsonReader.Options.of(
22 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DCircleShapeParser.java9 import com.airbnb.lottie.parser.moshi.JsonReader;
15 private static JsonReader.Options NAMES = JsonReader.Options.of(
26 JsonReader reader, LottieComposition composition, int d) throws IOException { in parse()
DRepeaterParser.java8 import com.airbnb.lottie.parser.moshi.JsonReader;
14 private static JsonReader.Options NAMES = JsonReader.Options.of(
26 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DRectangleShapeParser.java10 import com.airbnb.lottie.parser.moshi.JsonReader;
16 private static JsonReader.Options NAMES = JsonReader.Options.of(
28 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DShapeFillParser.java8 import com.airbnb.lottie.parser.moshi.JsonReader;
13 private static final JsonReader.Options NAMES = JsonReader.Options.of(
26 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DLayerParser.java7 import com.airbnb.lottie.parser.moshi.JsonReader;
27 private static final JsonReader.Options NAMES = JsonReader.Options.of(
63 private static final JsonReader.Options TEXT_NAMES = JsonReader.Options.of(
68 private static final JsonReader.Options EFFECTS_NAMES = JsonReader.Options.of("nm");
70 public static Layer parse(JsonReader reader, LottieComposition composition) throws IOException { in parse()
/external/lottie/lottie/src/test/java/com/airbnb/lottie/
DLottieCompositionFactoryTest.java5 import com.airbnb.lottie.parser.moshi.JsonReader;
14 import static com.airbnb.lottie.parser.moshi.JsonReader.of;
56 JsonReader reader = JsonReader.of(buffer(source(new StringInputStream(JSON)))); in testLoadJsonReader()
64 JsonReader reader = JsonReader.of(buffer(source(new StringInputStream(NOT_JSON)))); in testLoadInvalidJsonReader()
93 JsonReader reader = JsonReader.of(buffer(source(new StringInputStream(JSON)))); in testNullMultipleTimesAsync()
101 JsonReader reader = JsonReader.of(buffer(source(new StringInputStream(JSON)))); in testNullMultipleTimesSync()
109 JsonReader reader = JsonReader.of(buffer(source(new StringInputStream(JSON)))); in testCacheWorks()
117 JsonReader reader = JsonReader.of(buffer(source(new StringInputStream(JSON)))); in testZeroCacheWorks()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DJsonParser.java21 import com.google.gson.stream.JsonReader;
48 JsonReader jr = new JsonReader(new StringReader(raw)); in parse()
60 private static Object parseRecursive(JsonReader jr) throws IOException { in parseRecursive()
80 private static Map<String, Object> parseJsonObject(JsonReader jr) throws IOException { in parseJsonObject()
93 private static List<Object> parseJsonArray(JsonReader jr) throws IOException { in parseJsonArray()
105 private static Void parseJsonNull(JsonReader jr) throws IOException { in parseJsonNull()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson_reader.cc39 class JsonReader { class
87 explicit JsonReader(absl::string_view input) in JsonReader() function in grpc_core::__anon4d835ffe0111::JsonReader
130 void JsonReader::StringAddChar(uint32_t c) { in StringAddChar()
134 void JsonReader::StringAddUtf32(uint32_t c) { in StringAddUtf32()
161 uint32_t JsonReader::ReadChar() { in ReadChar()
172 Json* JsonReader::CreateAndLinkValue() { in CreateAndLinkValue()
199 bool JsonReader::StartContainer(Json::Type type) { in StartContainer()
222 void JsonReader::EndContainer() { in EndContainer()
227 void JsonReader::SetKey() { in SetKey()
232 void JsonReader::SetString() { in SetString()
[all …]

123