add more stubs

This commit is contained in:
Julian Winkler
2023-11-08 21:40:39 +01:00
parent 9f74ab811e
commit 72a8b3a047
21 changed files with 128 additions and 34 deletions

View File

@@ -381,7 +381,8 @@ public class Matrix {
* M' = T(dx, dy) * M
*/
public boolean postTranslate(float dx, float dy) {
return native_postTranslate(native_instance, dx, dy);
// return native_postTranslate(native_instance, dx, dy);
return true;
}
/**
* Postconcats the matrix with the specified scale.
@@ -396,14 +397,16 @@ public class Matrix {
* M' = S(sx, sy) * M
*/
public boolean postScale(float sx, float sy) {
return native_postScale(native_instance, sx, sy);
// return native_postScale(native_instance, sx, sy);
return true;
}
/**
* Postconcats the matrix with the specified rotation.
* M' = R(degrees, px, py) * M
*/
public boolean postRotate(float degrees, float px, float py) {
return native_postRotate(native_instance, degrees, px, py);
// return native_postRotate(native_instance, degrees, px, py);
return true;
}
/**
* Postconcats the matrix with the specified rotation.

View File

@@ -50,4 +50,8 @@ public class Typeface {
}
private static native long native_create(CharSequence family_name, int style);
public int getStyle() {
return 0;
}
}

View File

@@ -79,4 +79,12 @@ public abstract class Drawable {
public int getIntrinsicHeight() {return 0;}
public void setTintList (ColorStateList tint) {}
public void setTint(int tint) {}
public boolean isStateful() {
return false;
}
public void setTintMode(PorterDuff.Mode tintMode) {}
}

View File

@@ -1,6 +1,7 @@
package android.graphics.drawable;
import android.graphics.Canvas;
import android.graphics.Rect;
public class InsetDrawable extends Drawable {
@@ -13,5 +14,7 @@ public class InsetDrawable extends Drawable {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'draw'");
}
public boolean getPadding(Rect padding) { return false; }
}