blob: 6bf1e3ff4ada3c5740dd5da460c939d4dee7edb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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;
/** Shadow for {@link ComposePathEffect} that is backed by native code */
@Implements(value = ComposePathEffect.class, minSdk = O, shadowPicker = Picker.class)
public class ShadowNativeComposePathEffect {
@Implementation(minSdk = O)
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<Object> {
public Picker() {
super(null, ShadowNativeComposePathEffect.class);
}
}
}
|