api-impl: stubs and fixes for Open Sudoku

This commit is contained in:
Kilian "CaféHaine" Guillaume
2024-11-19 18:00:38 +01:00
parent eba9c7037c
commit 44d922baea
7 changed files with 29 additions and 13 deletions

View File

@@ -282,6 +282,8 @@ public class Paint {
return new FontMetricsInt();
}
public void set(Paint paint) {}
private native long native_constructor();
private native void native_set_antialias(long skia_paint, boolean aa);
private native void native_set_color(long skia_paint, int color);

View File

@@ -0,0 +1,15 @@
package android.graphics.drawable;
import android.graphics.drawable.Drawable;
public class DrawableWrapper extends Drawable {
private Drawable drawable;
public DrawableWrapper(Drawable drawable) {
this.drawable = drawable;
}
public Drawable getDrawable() {
return drawable;
}
}

View File

@@ -1,25 +1,17 @@
package android.graphics.drawable;
import android.graphics.Rect;
import android.graphics.drawable.DrawableWrapper;
public class InsetDrawable extends Drawable {
private Drawable drawable;
public class InsetDrawable extends DrawableWrapper {
public InsetDrawable(Drawable drawable, int insetLeft, int insetTop, int insetRight, int insetBottom) {
super();
this.drawable = drawable;
super(drawable);
}
public InsetDrawable(Drawable drawable, int inset) {
super();
this.drawable = drawable;
super(drawable);
}
public boolean getPadding(Rect padding) { return false; }
public Drawable getDrawable() {
return drawable;
}
}