You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
API stubs and fixes for composeUI
This commit is contained in:
@@ -470,6 +470,27 @@ public class Canvas {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean clipRect(float left, float top, float right, float bottom) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isHardwareAccelerated() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean clipRect(float left, float top, float right, float bottom, Region.Op op) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean includeCenter, Paint paint) {}
|
||||
|
||||
public void drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, Paint paint) {}
|
||||
|
||||
public boolean getClipBounds(Rect outRect) {
|
||||
outRect.set(0, 0, 100, 100);
|
||||
return false;
|
||||
}
|
||||
|
||||
private static native long native_canvas_from_bitmap(long pixbuf);
|
||||
|
||||
private static native void native_save(long skia_canvas, long widget);
|
||||
|
||||
10
src/api-impl/android/graphics/Outline.java
Normal file
10
src/api-impl/android/graphics/Outline.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package android.graphics;
|
||||
|
||||
public class Outline {
|
||||
|
||||
public void setAlpha(float alpha) {}
|
||||
|
||||
public void setEmpty() {}
|
||||
|
||||
public void setRoundRect(int left, int top, int right, int bottom, float r) {}
|
||||
}
|
||||
@@ -284,6 +284,12 @@ public class Paint {
|
||||
|
||||
public void set(Paint paint) {}
|
||||
|
||||
public boolean isFilterBitmap() { return false; }
|
||||
|
||||
public Cap getStrokeCap() { return Cap.BUTT; }
|
||||
|
||||
public Join getStrokeJoin() { return Join.MITER; }
|
||||
|
||||
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);
|
||||
|
||||
@@ -59,4 +59,8 @@ public class Typeface {
|
||||
public int getStyle() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static Typeface defaultFromStyle(int style) {
|
||||
return create((String)null, style);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -299,6 +299,8 @@ public class Drawable {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setHotspot(float x, float y) {}
|
||||
|
||||
protected static native long native_paintable_from_path(String path);
|
||||
protected native long native_constructor();
|
||||
protected native void native_invalidate(long paintable);
|
||||
|
||||
@@ -8,4 +8,6 @@ public class RippleDrawable extends LayerDrawable {
|
||||
super(drawable == null ? new Drawable[] {} : new Drawable[] {drawable});
|
||||
}
|
||||
|
||||
public void setColor(ColorStateList colorStateList) {}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user