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

@@ -309,7 +309,7 @@ public class Region {
}
protected void finalize() throws Throwable {
try {
nativeDestructor(mNativeRegion);
// nativeDestructor(mNativeRegion);
} finally {
super.finalize();
}
@@ -330,7 +330,7 @@ public class Region {
return mNativeRegion;
}
private static native boolean nativeEquals(int native_r1, int native_r2);
private static native int nativeConstructor();
private static int nativeConstructor() {return -1;}
private static native void nativeDestructor(int native_region);
private static native void nativeSetRegion(int native_dst, int native_src);
private static native boolean nativeSetRect(int native_dst, int left,