Dataset Viewer
Auto-converted to Parquet Duplicate
repo_id
stringclasses
97 values
content
stringlengths
0
3.2M
airbnb/lottie-android
airbnb/lottie-android
package com.airbnb.lottie; import android.os.Build; import org.junit.Ignore; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; @RunWith(RobolectricTestRunner.class) @Config(sdk = Build.VERSION_CODES.P) @Ignore("Base Test") public class BaseTest {...
airbnb/lottie-android
package com.airbnb.lottie; class Fixtures { static final String SQUARES = "{\"v\":\"4.11.1\",\"fr\":29.9700012207031,\"ip\":0," + "\"op\":61.0000024845809,\"w\":600,\"h\":300,\"nm\":\"Squares\",\"ddd\":0,\"assets\":[]," + "\"layers\":[{\"ddd\":0,\"ind\":1,\"ty\":4,\"nm\":\"Shape Layer 1\",\"sr\":1," + ...
airbnb/lottie-android
package com.airbnb.lottie; import com.airbnb.lottie.model.KeyPath; import org.junit.Before; import org.junit.Test; import java.util.List; import static junit.framework.Assert.assertEquals; public class KeyPathTest extends BaseTest { private static final String[] V = { "Shape Layer 1", "Group 1", ...
airbnb/lottie-android
package com.airbnb.lottie; import com.airbnb.lottie.model.LottieCompositionCache; import com.airbnb.lottie.parser.moshi.JsonReader; import org.junit.Before; import org.junit.Test; import org.robolectric.RuntimeEnvironment; import java.io.ByteArrayInputStream; import java.io.FileNotFoundException; import java.io.IOEx...
airbnb/lottie-android
package com.airbnb.lottie; import static junit.framework.TestCase.assertEquals; import org.junit.Test; public class LottieCompositionTest extends BaseTest { private static final String JSON = "{\"v\":\"4.11.1\",\"fr\":60,\"ip\":0,\"op\":180,\"w\":300,\"h\":300,\"nm\":\"Comp 1\",\"ddd\":0,\"assets\":[]," + "\...
airbnb/lottie-android
package com.airbnb.lottie; import android.animation.Animator; import android.graphics.Rect; import androidx.collection.LongSparseArray; import androidx.collection.SparseArrayCompat; import com.airbnb.lottie.configurations.reducemotion.ReducedMotionMode; import org.junit.Before; import org.junit.Test; import org.mocki...
airbnb/lottie-android
package com.airbnb.lottie; import static org.junit.Assert.assertNotNull; import android.content.Context; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.test.platform.app.InstrumentationRegistry; import com.airbnb.lottie.network.LottieFetchResult; import org.junit.After; im...
airbnb/lottie-android
package com.airbnb.lottie; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.mockito.Mock; import org.mockito.junit.MockitoJUnit; import org.mockito.junit.MockitoRule; import java.io.IOException; import java.io.InputStream; import java.util.concurrent.Callable; import java.util.concurr...
airbnb/lottie-android
package com.airbnb.lottie; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.graphics.Rect; import androidx.collection.LongSparseArray; import androidx.collection.SparseArrayCompat; import com.airbnb.lottie.utils.LottieValueAnimator; import org.junit.Before; import org...
airbnb/lottie-android
package com.airbnb.lottie; import com.airbnb.lottie.utils.MeanCalculator; import org.junit.Before; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.IsEqual.equalTo; public class MeanCalculatorTest { private MeanCalculator meanCalculator; @Before pub...
airbnb/lottie-android
package com.airbnb.lottie; import androidx.core.util.Pair; import org.junit.Before; import org.junit.Test; import java.util.List; import static junit.framework.TestCase.assertTrue; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.IsEqual.equalTo; public class PerformanceTrackerT...
airbnb/lottie-android
package com.airbnb.lottie.model; import com.airbnb.lottie.BaseTest; import com.airbnb.lottie.LottieComposition; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; public class LottieCompositionCacheTest ...
airbnb/lottie-android
package com.airbnb.lottie.model; import org.junit.Test; import static org.junit.Assert.*; public class MarkerTest { @Test public void testMarkerWithCarriageReturn() { Marker marker = new Marker("Foo\r", 0f, 0f); assertTrue(marker.matchesName("foo")); } }
airbnb/lottie-android
package com.airbnb.lottie.parser; import static org.junit.Assert.assertArrayEquals; import org.junit.Test; public class GradientColorParserTest { @Test public void testNoDistinctShort() { assertMerged(new float[]{1}, new float[]{2}, new float[]{1, 2}); } @Test public void testNoDistinct() { assertMer...
airbnb/lottie-android
package com.airbnb.lottie.utils; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.is; public class GammaEvaluatorTest { @Test public void testEvaluateForSameColorValues() { for (int color = 0x000000; color <= 0xffffff; color++) { int actual ...
airbnb/lottie-android
package com.airbnb.lottie.utils; import android.animation.Animator; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import com.airbnb.lottie.BaseTe...
airbnb/lottie-android
package com.airbnb.lottie.value; import static org.junit.Assert.*; import android.graphics.Rect; import android.view.animation.LinearInterpolator; import androidx.collection.LongSparseArray; import androidx.collection.SparseArrayCompat; import com.airbnb.lottie.LottieComposition; import org.junit.Test; import java.u...
airbnb/lottie-android
package com.airbnb.lottie.model.animatable; import static org.junit.Assert.*; import org.junit.Test; public class AnimatableGradientColorValueTest { @Test public void testMergeTheSame() { assertArrayEquals(new float[]{1, 2}, AnimatableGradientColorValue.mergePositions(new float[]{1, 2}, new float[]{1, 2}), 0...
airbnb/lottie-android
package com.airbnb.lottie.model.content; import junit.framework.TestCase; import org.junit.Test; import java.util.Arrays; public class GradientColorTest extends TestCase { private final GradientColor start = new GradientColor(new float[]{0f, 1f}, new int[]{0xFF000000, 0xFF020202}); private final GradientColor ...
airbnb/lottie-android
package com.airbnb.lottie; /** * **Note: this API is experimental and may changed.** * <p/> * When async updates are enabled, parts of animation updates will happen off of the main thread. * <p/> * At a high level, during the animation loop, there are two main code paths: * 1. setProgress * 2. draw * <p/> * s...
airbnb/lottie-android
package com.airbnb.lottie; @Deprecated public interface Cancellable { void cancel(); }
airbnb/lottie-android
package com.airbnb.lottie; import android.graphics.Typeface; /** * Delegate to handle the loading of fonts that are not packaged in the assets of your app or don't * have the same file name. * * @see LottieDrawable#setFontAssetDelegate(FontAssetDelegate) */ @SuppressWarnings({"unused", "WeakerAccess"}) public cl...
airbnb/lottie-android
package com.airbnb.lottie; import android.graphics.Bitmap; import androidx.annotation.Nullable; /** * Delegate to handle the loading of bitmaps that are not packaged in the assets of your app. * * @see LottieDrawable#setImageAssetDelegate(ImageAssetDelegate) */ public interface ImageAssetDelegate { @Nullable B...
airbnb/lottie-android
package com.airbnb.lottie; import android.content.Context; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RestrictTo; import com.airbnb.lottie.configurations.reducemotion.ReducedMotionOption; import com.airbnb.lottie.configurations.reducemotion.SystemReducedMotion...
airbnb/lottie-android
package com.airbnb.lottie; import androidx.annotation.NonNull; /** * Class for initializing the library with custom config */ public class Lottie { private Lottie() { } /** * Initialize Lottie with global configuration. * * @see LottieConfig.Builder */ public static void initialize(@NonNull fi...
airbnb/lottie-android
package com.airbnb.lottie; import android.animation.Animator; import android.animation.ValueAnimator; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.ColorFilter; import android.graphics.Typeface; ...
airbnb/lottie-android
package com.airbnb.lottie; import android.content.Context; import android.content.res.Resources; import android.graphics.Rect; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RawRes; import androidx.annotation.RestrictTo; import androidx.annotation.WorkerThread; imp...
airbnb/lottie-android
package com.airbnb.lottie; import static com.airbnb.lottie.utils.Utils.closeQuietly; import static okio.Okio.buffer; import static okio.Okio.source; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.B...
airbnb/lottie-android
package com.airbnb.lottie; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.airbnb.lottie.configurations.reducemotion.ReducedMotionOption; import com.airbnb.lottie.configurations.reducemotion.IgnoreDisabledSystemAnimationsOption; import com.airbnb.lottie.configurations.reducemotion.S...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
-