
org.robolectric.shadows.ShadowNativeComposePathEffect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import static android.os.Build.VERSION_CODES.O;
import android.graphics.ComposePathEffect;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.nativeruntime.ComposePathEffectNatives;
import org.robolectric.nativeruntime.DefaultNativeRuntimeLoader;
import org.robolectric.shadows.ShadowNativeComposePathEffect.Picker;
import org.robolectric.versioning.AndroidVersions.U;
/** Shadow for {@link ComposePathEffect} that is backed by native code */
@Implements(
value = ComposePathEffect.class,
minSdk = O,
shadowPicker = Picker.class,
callNativeMethodsByDefault = true)
public class ShadowNativeComposePathEffect {
@Implementation(minSdk = O, maxSdk = U.SDK_INT)
protected static long nativeCreate(long nativeOuterpe, long nativeInnerpe) {
DefaultNativeRuntimeLoader.injectAndLoad();
return ComposePathEffectNatives.nativeCreate(nativeOuterpe, nativeInnerpe);
}
/** Shadow picker for {@link ComposePathEffect}. */
public static final class Picker extends GraphicsShadowPicker
© 2015 - 2025 Weber Informatics LLC | Privacy Policy