org.robolectric.shadows.ShadowNativeDashPathEffect Maven / Gradle / Ivy
package org.robolectric.shadows;
import static android.os.Build.VERSION_CODES.O;
import android.graphics.DashPathEffect;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.nativeruntime.DashPathEffectNatives;
import org.robolectric.nativeruntime.DefaultNativeRuntimeLoader;
import org.robolectric.shadows.ShadowNativeDashPathEffect.Picker;
/** Shadow for {@link DashPathEffect} that is backed by native code */
@Implements(value = DashPathEffect.class, minSdk = O, shadowPicker = Picker.class)
public class ShadowNativeDashPathEffect {
@Implementation(minSdk = O)
protected static long nativeCreate(float[] intervals, float phase) {
DefaultNativeRuntimeLoader.injectAndLoad();
return DashPathEffectNatives.nativeCreate(intervals, phase);
}
/** Shadow picker for {@link DashPathEffect}. */
public static final class Picker extends GraphicsShadowPicker
© 2015 - 2025 Weber Informatics LLC | Privacy Policy