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
add more stubs
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -50,4 +50,8 @@ public class Typeface {
|
||||
}
|
||||
|
||||
private static native long native_create(CharSequence family_name, int style);
|
||||
|
||||
public int getStyle() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user