Home
last modified time | relevance | path

Searched refs:LottieComposition (Results 1 – 25 of 52) sorted by relevance

123

/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieCompositionFactory.java51 private static final Map<String, LottieTask<LottieComposition>> taskCache = new HashMap<>();
71 public static LottieTask<LottieComposition> fromUrl(final Context context, final String url) { in fromUrl()
80 …public static LottieTask<LottieComposition> fromUrl(final Context context, final String url, @Null… in fromUrl()
81 return cache(cacheKey, new Callable<LottieResult<LottieComposition>>() { in fromUrl()
83 public LottieResult<LottieComposition> call() { in fromUrl()
95 public static LottieResult<LottieComposition> fromUrlSync(Context context, String url) {
108 public static LottieTask<LottieComposition> fromAsset(Context context, final String fileName) {
122 …public static LottieTask<LottieComposition> fromAsset(Context context, final String fileName, @Nul…
125 return cache(cacheKey, new Callable<LottieResult<LottieComposition>>() {
127 public LottieResult<LottieComposition> call() {
[all …]
DLottieComposition.java40 public class LottieComposition { class
281 public static LottieComposition fromFileSync(Context context, String fileName) { in fromFileSync()
291 public static LottieComposition fromInputStreamSync(InputStream stream) { in fromInputStreamSync()
303 public static LottieComposition fromInputStreamSync(InputStream stream, boolean close) { in fromInputStreamSync()
316 …public static LottieComposition fromJsonSync(@SuppressWarnings("unused") Resources res, JSONObject… in fromJsonSync()
326 public static LottieComposition fromJsonSync(String json) { in fromJsonSync()
336 public static LottieComposition fromJsonSync(JsonReader reader) throws IOException { in fromJsonSync()
340 …private static final class ListenerAdapter implements LottieListener<LottieComposition>, Cancellab…
348 @Override public void onResult(LottieComposition composition) { in onResult()
DLottieDrawable.java58 void run(LottieComposition composition); in run()
62 private LottieComposition composition;
208 public boolean setComposition(LottieComposition composition) { in setComposition()
404 public void run(LottieComposition composition) { in playAnimation()
435 public void run(LottieComposition composition) {
458 public void run(LottieComposition composition) {
481 public void run(LottieComposition composition) {
497 public void run(LottieComposition composition) {
520 public void run(LottieComposition composition) {
537 public void run(LottieComposition composition) {
[all …]
DLottieAnimationView.java78 …private final LottieListener<LottieComposition> loadedListener = new LottieListener<LottieComposit…
79 @Override public void onResult(LottieComposition composition) {
116 @Nullable private LottieTask<LottieComposition> compositionTask;
118 @Nullable private LottieComposition composition;
372 LottieTask<LottieComposition> task = cacheComposition ? in setAnimation()
380 LottieTask<LottieComposition> task = cacheComposition ? in setAnimation()
422 LottieTask<LottieComposition> task = cacheComposition ? in setAnimationFromUrl()
457 private void setCompositionTask(LottieTask<LottieComposition> compositionTask) { in setCompositionTask()
477 public void setComposition(@NonNull LottieComposition composition) { in setComposition()
510 @Nullable public LottieComposition getComposition() { in getComposition()
[all …]
/external/lottie/lottie/src/test/java/com/airbnb/lottie/
DLottieCompositionFactoryTest.java42 …LottieResult<LottieComposition> result = LottieCompositionFactory.fromJsonStringSync(JSON, "json"); in testLoadJsonString()
49 …LottieResult<LottieComposition> result = LottieCompositionFactory.fromJsonStringSync(NOT_JSON, "no… in testLoadInvalidJsonString()
57 …LottieResult<LottieComposition> result = LottieCompositionFactory.fromJsonReaderSync(reader, "json… in testLoadJsonReader()
65 …LottieResult<LottieComposition> result = LottieCompositionFactory.fromJsonReaderSync(reader, "json… in testLoadInvalidJsonReader()
72 …LottieResult<LottieComposition> result = LottieCompositionFactory.fromAssetSync(RuntimeEnvironment… in testLoadInvalidAssetName()
79 …LottieResult<LottieComposition> result = LottieCompositionFactory.fromAssetSync(RuntimeEnvironment… in testNonJsonAssetFile()
86 …LottieResult<LottieComposition> result = LottieCompositionFactory.fromRawResSync(RuntimeEnvironmen… in testLoadInvalidRawResName()
94 LottieTask<LottieComposition> task1 = LottieCompositionFactory.fromJsonReader(reader, null); in testNullMultipleTimesAsync()
95 LottieTask<LottieComposition> task2 = LottieCompositionFactory.fromJsonReader(reader, null); in testNullMultipleTimesAsync()
102 … LottieResult<LottieComposition> task1 = LottieCompositionFactory.fromJsonReaderSync(reader, null); in testNullMultipleTimesSync()
[all …]
DLottieDrawableTest.java37 private LottieComposition createComposition(int startFrame, int endFrame) { in createComposition()
38 LottieComposition composition = new LottieComposition(); in createComposition()
48 LottieComposition composition = createComposition(31, 391); in testMinFrame()
57 LottieComposition composition = createComposition(100, 200); in testMinWithStartFrameFrame()
66 LottieComposition composition = createComposition(31, 391); in testMaxFrame()
75 LottieComposition composition = createComposition(31, 391); in testMinMaxFrame()
85 LottieComposition composition = createComposition(31, 391); in testPlayWhenSystemAnimationDisabled()
97 LottieComposition composition = createComposition(31, 391); in testResumeWhenSystemAnimationDisabled()
DLottieValueAnimatorUnitTest.java32 private LottieComposition composition;
61 private LottieComposition createComposition(int startFrame, int endFrame) {
62 LottieComposition composition = new LottieComposition();
329 LottieComposition composition2 = createComposition(0, 500);
338 LottieComposition composition2 = createComposition(0, 1500);
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DAnimatableValueParser.java5 import com.airbnb.lottie.LottieComposition;
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 …]
DLottieCompositionMoshiParser.java6 import com.airbnb.lottie.LottieComposition;
41 public static LottieComposition parse(JsonReader reader) throws IOException { in parse()
56 LottieComposition composition = new LottieComposition(); in parse()
116 private static void parseLayers(JsonReader reader, LottieComposition composition, in parseLayers()
147 private static void parseAssets(JsonReader reader, LottieComposition composition, in parseAssets()
227 JsonReader reader, LottieComposition composition, in parseChars()
244 JsonReader reader, LottieComposition composition, List<Marker> markers) throws IOException{ in parseMarkers()
DLottieCompositionParser.java5 import com.airbnb.lottie.LottieComposition;
39 public static LottieComposition parse(JsonReader reader) throws IOException { in parse()
54 LottieComposition composition = new LottieComposition(); in parse()
101 private static void parseLayers(JsonReader reader, LottieComposition composition, in parseLayers()
DAnimatableTextPropertiesParser.java3 import com.airbnb.lottie.LottieComposition;
24 JsonReader reader, LottieComposition composition) throws IOException { in parse()
47 JsonReader reader, LottieComposition composition) throws IOException { in parseAnimatableTextProperties()
DAnimatablePathValueParser.java6 import com.airbnb.lottie.LottieComposition;
30 JsonReader reader, LottieComposition composition) throws IOException { in parse()
49 JsonReader reader, LottieComposition composition) throws IOException { in parseSplitPath()
DPathKeyframeParser.java6 import com.airbnb.lottie.LottieComposition;
19 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DShapePathParser.java4 import com.airbnb.lottie.LottieComposition;
24 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DShapeGroupParser.java4 import com.airbnb.lottie.LottieComposition;
22 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DCircleShapeParser.java5 import com.airbnb.lottie.LottieComposition;
26 JsonReader reader, LottieComposition composition, int d) throws IOException { in parse()
DRepeaterParser.java4 import com.airbnb.lottie.LottieComposition;
26 JsonReader reader, LottieComposition composition) throws IOException { in parse()
DShapeTrimPathParser.java4 import com.airbnb.lottie.LottieComposition;
25 JsonReader reader, LottieComposition composition) throws IOException { in parse()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/network/
DNetworkFetcher.java8 import com.airbnb.lottie.LottieComposition;
30 public static LottieResult<LottieComposition> fetchSync(Context context, String url) { in fetchSync()
41 public LottieResult<LottieComposition> fetchSync() { in fetchSync()
42 LottieComposition result = fetchFromCache(); in fetchSync()
56 private LottieComposition fetchFromCache() { in fetchFromCache()
64 LottieResult<LottieComposition> result; in fetchFromCache()
77 private LottieResult<LottieComposition> fetchFromNetwork() { in fetchFromNetwork()
101 LottieResult<LottieComposition> result = getResultFromConnection(connection); in fetchFromNetworkInternal()
134 …private LottieResult<LottieComposition> getResultFromConnection(HttpURLConnection connection) thro… in getResultFromConnection()
137 LottieResult<LottieComposition> result = null; in getResultFromConnection()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/
DLottieCompositionCache.java8 import com.airbnb.lottie.LottieComposition;
19 private final LruCache<String, LottieComposition> cache = new LruCache<>(20);
26 public LottieComposition get(@Nullable String cacheKey) { in get()
33 public void put(@Nullable String cacheKey, LottieComposition composition) { in put()
/external/lottie/lottie/src/test/java/com/airbnb/lottie/model/
DLottieCompositionCacheTest.java6 import com.airbnb.lottie.LottieComposition;
20 private LottieComposition composition;
25 composition = Mockito.mock(LottieComposition.class); in setup()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/value/
DKeyframe.java8 import com.airbnb.lottie.LottieComposition;
14 @Nullable private final LottieComposition composition;
36 public Keyframe(@SuppressWarnings("NullableProblems") LottieComposition composition, in Keyframe()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/layer/
DLayer.java5 import com.airbnb.lottie.LottieComposition;
37 private final LottieComposition composition;
59 …public Layer(List<ContentModel> shapes, LottieComposition composition, String layerName, long laye… in Layer()
90 LottieComposition getComposition() { in getComposition()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/keyframe/
DPathKeyframe.java7 import com.airbnb.lottie.LottieComposition;
16 public PathKeyframe(LottieComposition composition, Keyframe<PointF> keyframe) { in PathKeyframe()
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DSimpleAnimationActivity.kt6 import com.airbnb.lottie.LottieComposition
23 var composition: LottieComposition? = null in onCreate()

123