Home
last modified time | relevance | path

Searched refs:lottieDrawable (Results 1 – 20 of 20) sorted by relevance

/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieAnimationView.java97 private final LottieDrawable lottieDrawable = new LottieDrawable(); field in LottieAnimationView
170 lottieDrawable.setRepeatCount(LottieDrawable.INFINITE); in init()
199 lottieDrawable.setScale(ta.getFloat(R.styleable.LottieAnimationView_lottie_scale, 1f)); in init()
211 lottieDrawable.setScaleType(getScaleType()); in init()
215 lottieDrawable.setSystemAnimationsAreEnabled(Utils.getAnimationScale(getContext()) != 0f); in init()
237 if (getDrawable() == lottieDrawable) { in invalidateDrawable()
240 super.invalidateDrawable(lottieDrawable); in invalidateDrawable()
252 ss.progress = lottieDrawable.getProgress(); in onSaveInstanceState()
253 …ss.isAnimating = lottieDrawable.isAnimating() || (!ViewCompat.isAttachedToWindow(this) && wasAnima… in onSaveInstanceState()
254 ss.imageAssetsFolder = lottieDrawable.getImageAssetsFolder(); in onSaveInstanceState()
[all …]
/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/content/
DShapeContent.java18 private final LottieDrawable lottieDrawable; field in ShapeContent
24 public ShapeContent(LottieDrawable lottieDrawable, BaseLayer layer, ShapePath shape) { in ShapeContent() argument
27 this.lottieDrawable = lottieDrawable; in ShapeContent()
39 lottieDrawable.invalidateSelf(); in invalidate()
DContentGroup.java62 private final LottieDrawable lottieDrawable; field in ContentGroup
66 public ContentGroup(final LottieDrawable lottieDrawable, BaseLayer layer, ShapeGroup shapeGroup) { in ContentGroup() argument
67 this(lottieDrawable, layer, shapeGroup.getName(), in ContentGroup()
68 shapeGroup.isHidden(), contentsFromModels(lottieDrawable, layer, shapeGroup.getItems()), in ContentGroup()
72 ContentGroup(final LottieDrawable lottieDrawable, BaseLayer layer, in ContentGroup() argument
75 this.lottieDrawable = lottieDrawable; in ContentGroup()
99 lottieDrawable.invalidateSelf(); in onValueChanged()
173 …boolean isRenderingWithOffScreen = lottieDrawable.isApplyingOpacityToLayersEnabled() && hasTwoOrMo… in draw()
DRepeaterContent.java29 private final LottieDrawable lottieDrawable; field in RepeaterContent
39 public RepeaterContent(LottieDrawable lottieDrawable, BaseLayer layer, Repeater repeater) { in RepeaterContent() argument
40 this.lottieDrawable = lottieDrawable; in RepeaterContent()
83 contentGroup = new ContentGroup(lottieDrawable, layer, "Repeater", hidden, contents, null); in absorbContent()
126 lottieDrawable.invalidateSelf(); in onValueChanged()
DEllipseContent.java27 private final LottieDrawable lottieDrawable; field in EllipseContent
35 public EllipseContent(LottieDrawable lottieDrawable, BaseLayer layer, CircleShape circleShape) { in EllipseContent() argument
37 this.lottieDrawable = lottieDrawable; in EllipseContent()
55 lottieDrawable.invalidateSelf(); in invalidate()
DFillContent.java40 private final LottieDrawable lottieDrawable; field in FillContent
42 public FillContent(final LottieDrawable lottieDrawable, BaseLayer layer, ShapeFill fill) { in FillContent() argument
46 this.lottieDrawable = lottieDrawable; in FillContent()
64 lottieDrawable.invalidateSelf(); in onValueChanged()
DRectangleContent.java29 private final LottieDrawable lottieDrawable; field in RectangleContent
37 …public RectangleContent(LottieDrawable lottieDrawable, BaseLayer layer, RectangleShape rectShape) { in RectangleContent() argument
40 this.lottieDrawable = lottieDrawable; in RectangleContent()
66 lottieDrawable.invalidateSelf(); in invalidate()
DGradientFillContent.java58 private final LottieDrawable lottieDrawable; field in GradientFillContent
61 …public GradientFillContent(final LottieDrawable lottieDrawable, BaseLayer layer, GradientFill fill… in GradientFillContent() argument
65 this.lottieDrawable = lottieDrawable; in GradientFillContent()
68 cacheSteps = (int) (lottieDrawable.getComposition().getDuration() / CACHE_STEPS_MS); in GradientFillContent()
88 lottieDrawable.invalidateSelf(); in onValueChanged()
DPolystarContent.java32 private final LottieDrawable lottieDrawable; field in PolystarContent
46 public PolystarContent(LottieDrawable lottieDrawable, BaseLayer layer, in PolystarContent() argument
48 this.lottieDrawable = lottieDrawable; in PolystarContent()
93 lottieDrawable.invalidateSelf(); in invalidate()
DBaseStrokeContent.java43 private final LottieDrawable lottieDrawable; field in BaseStrokeContent
55 BaseStrokeContent(final LottieDrawable lottieDrawable, BaseLayer layer, Paint.Cap cap, in BaseStrokeContent() argument
58 this.lottieDrawable = lottieDrawable; in BaseStrokeContent()
102 lottieDrawable.invalidateSelf(); in onValueChanged()
DStrokeContent.java27 public StrokeContent(final LottieDrawable lottieDrawable, BaseLayer layer, ShapeStroke stroke) { in StrokeContent() argument
28 super(lottieDrawable, layer, stroke.getCapType().toPaintCap(), in StrokeContent()
DGradientStrokeContent.java43 final LottieDrawable lottieDrawable, BaseLayer layer, GradientStroke stroke) { in GradientStrokeContent() argument
44 super(lottieDrawable, layer, stroke.getCapType().toPaintCap(), in GradientStrokeContent()
51 cacheSteps = (int) (lottieDrawable.getComposition().getDuration() / CACHE_STEPS_MS); in GradientStrokeContent()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/layer/
DShapeLayer.java20 ShapeLayer(LottieDrawable lottieDrawable, Layer layerModel) { in ShapeLayer() argument
21 super(lottieDrawable, layerModel); in ShapeLayer()
25 contentGroup = new ContentGroup(lottieDrawable, this, shapeGroup); in ShapeLayer()
DTextLayer.java50 private final LottieDrawable lottieDrawable; field in TextLayer
63 TextLayer(LottieDrawable lottieDrawable, Layer layerModel) { in TextLayer() argument
64 super(lottieDrawable, layerModel); in TextLayer()
65 this.lottieDrawable = lottieDrawable; in TextLayer()
108 if (!lottieDrawable.useTextGlyphs()) { in drawLayer()
142 if (lottieDrawable.useTextGlyphs()) { in drawLayer()
213 Typeface typeface = lottieDrawable.getTypeface(font.getFamily(), font.getStyle()); in drawTextWithFont()
218 TextDelegate textDelegate = lottieDrawable.getTextDelegate(); in drawTextWithFont()
371 contents.add(new ContentGroup(lottieDrawable, this, sg)); in getContentsForCharacter()
DCompositionLayer.java36 public CompositionLayer(LottieDrawable lottieDrawable, Layer layerModel, List<Layer> layerModels, in CompositionLayer() argument
38 super(lottieDrawable, layerModel); in CompositionLayer()
56 BaseLayer layer = BaseLayer.forModel(lm, lottieDrawable, composition); in CompositionLayer()
97 …boolean isDrawingWithOffScreen = lottieDrawable.isApplyingOpacityToLayersEnabled() && layers.size(… in drawLayer()
135 float durationFrames = lottieDrawable.getComposition().getDurationFrames() + 0.01f; in setProgress()
DNullLayer.java10 NullLayer(LottieDrawable lottieDrawable, Layer layerModel) { in NullLayer() argument
11 super(lottieDrawable, layerModel); in NullLayer()
DImageLayer.java28 ImageLayer(LottieDrawable lottieDrawable, Layer layerModel) { in ImageLayer() argument
29 super(lottieDrawable, layerModel); in ImageLayer()
63 return lottieDrawable.getImageAsset(refId); in getBitmap()
DSolidLayer.java27 SolidLayer(LottieDrawable lottieDrawable, Layer layerModel) { in SolidLayer() argument
28 super(lottieDrawable, layerModel); in SolidLayer()
DBaseLayer.java79 final LottieDrawable lottieDrawable; field in BaseLayer
97 BaseLayer(LottieDrawable lottieDrawable, Layer layerModel) { in BaseLayer() argument
98 this.lottieDrawable = lottieDrawable; in BaseLayer()
165 lottieDrawable.invalidateSelf(); in invalidateSelf()
286 lottieDrawable.getComposition() in recordRenderTime()
/external/lottie/lottie/src/test/java/com/airbnb/lottie/
DKeyPathTest.java29 private LottieDrawable lottieDrawable; field in KeyPathTest
33 lottieDrawable = new LottieDrawable(); in setupDrawable()
35 lottieDrawable.setComposition(composition); in setupDrawable()
129 List<KeyPath> resolvedKeyPaths = lottieDrawable.resolveKeyPath(keyPath); in assertSize()