add bunch of new java APIs: mostly stubs or copied from AOSP

Many of these classes are only needed to be subclassed by androidx
support library, which is used in many android apps
This commit is contained in:
Julian Winkler
2023-08-17 10:46:24 +02:00
parent a8e39cd613
commit 82744e9e5e
87 changed files with 2746 additions and 46 deletions

View File

@@ -220,7 +220,7 @@ public class Matrix {
if (src == null) {
reset();
} else {
native_set(native_instance, src.native_instance);
// native_set(native_instance, src.native_instance);
}
}
/**
@@ -739,7 +739,7 @@ public class Matrix {
@Override
protected void finalize() throws Throwable {
try {
finalizer(native_instance);
// finalizer(native_instance);
} finally {
super.finalize();
}
@@ -747,7 +747,9 @@ public class Matrix {
/*package*/ final int ni() {
return native_instance;
}
private static native int native_create(int native_src_or_zero);
private static /*native*/ int native_create(int native_src_or_zero) {
return 0;
}
private static native boolean native_isIdentity(int native_object);
private static native boolean native_rectStaysRect(int native_object);
private static native void native_reset(int native_object);