Home
last modified time | relevance | path

Searched refs:LottieTask (Results 1 – 7 of 7) sorted by relevance

/external/lottie/lottie/src/test/java/com/airbnb/lottie/
DLottieTaskTest.java28 LottieTask<Integer> task = new LottieTask<>(new Callable<LottieResult<Integer>>() { in testListener()
42 LottieTask<Integer> task = new LottieTask<>(new Callable<LottieResult<Integer>>() { in testException()
60 LottieTask<Integer> task = new LottieTask<>(new Callable<LottieResult<Integer>>() { in testRemoveListener()
84 LottieTask<Integer> task = new LottieTask<>(new Callable<LottieResult<Integer>>() { in testAddListenerAfter()
DLottieCompositionFactoryTest.java94 LottieTask<LottieComposition> task1 = LottieCompositionFactory.fromJsonReader(reader, null); in testNullMultipleTimesAsync()
95 LottieTask<LottieComposition> task2 = LottieCompositionFactory.fromJsonReader(reader, null); in testNullMultipleTimesAsync()
110LottieTask<LottieComposition> task1 = LottieCompositionFactory.fromJsonReader(reader, "foo"); in testCacheWorks()
111LottieTask<LottieComposition> task2 = LottieCompositionFactory.fromJsonReader(reader, "foo"); in testCacheWorks()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieTask.java27 public class LottieTask<T> { class
46 public LottieTask(Callable<LottieResult<T>> runnable) { in LottieTask() method in LottieTask
54 LottieTask(Callable<LottieResult<T>> runnable, boolean runNow) { in LottieTask() method in LottieTask
78 public synchronized LottieTask<T> addListener(LottieListener<T> listener) { in addListener()
92 public synchronized LottieTask<T> removeListener(LottieListener<T> listener) { in removeListener()
102 public synchronized LottieTask<T> addFailureListener(LottieListener<Throwable> listener) { in addFailureListener()
116 public synchronized LottieTask<T> removeFailureListener(LottieListener<Throwable> listener) { in removeFailureListener()
129 LottieResult<T> result = LottieTask.this.result; in notifyListeners()
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()
108 public static LottieTask<LottieComposition> fromAsset(Context context, final String fileName) {
122 …public static LottieTask<LottieComposition> fromAsset(Context context, final String fileName, @Nul…
179 …public static LottieTask<LottieComposition> fromRawRes(Context context, @RawRes final int rawRes) {
192 …public static LottieTask<LottieComposition> fromRawRes(Context context, @RawRes final int rawRes, …
255 …public static LottieTask<LottieComposition> fromJsonInputStream(final InputStream stream, @Nullabl…
289 …public static LottieTask<LottieComposition> fromJson(final JSONObject json, @Nullable final String…
313 …public static LottieTask<LottieComposition> fromJsonString(final String json, @Nullable final Stri…
[all …]
DLottieAnimationView.java116 @Nullable private LottieTask<LottieComposition> compositionTask;
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()
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DPlayerViewModel.kt9 import com.airbnb.lottie.LottieTask
56 private fun taskForUri(uri: Uri): LottieTask<LottieComposition> { in taskForUri()
61 … else -> return LottieTask() { throw IllegalArgumentException("Unknown scheme ${uri.scheme}") } in taskForUri()
64 return LottieTask { throw e } in taskForUri()
/external/lottie/
DCHANGELOG.md137 * Made LottieTask.EXECUTOR public and static so tests can set it.