api-impl: stubs and fixes for Compose Stopwatch and LibreSudoku

This commit is contained in:
Julian Winkler
2024-12-10 23:23:14 +01:00
parent b9272aa150
commit 1398125eb5
28 changed files with 238 additions and 36 deletions

View File

@@ -489,7 +489,11 @@ public final class Bitmap {
* This configuration is very flexible and offers the best
* quality. It should be used whenever possible.
*/
ARGB_8888(5);
ARGB_8888(5),
RGBA_F16(6),
HARDWARE(7);
final int nativeInt;
@@ -602,9 +606,9 @@ public final class Bitmap {
*/
public Bitmap copy(Config config, boolean isMutable) {
checkRecycled("Can't copy a recycled bitmap");
Bitmap b = nativeCopy(mNativeBitmap, config.nativeInt, isMutable);
Bitmap b = new Bitmap(native_copy(pixbuf));
if (b != null) {
b.setAlphaAndPremultiplied(hasAlpha(), mIsPremultiplied);
// b.setAlphaAndPremultiplied(hasAlpha(), mIsPremultiplied);
b.mDensity = mDensity;
}
return b;
@@ -979,6 +983,10 @@ public final class Bitmap {
return createBitmap(display, colors, 0, width, width, height, config);
}
public static Bitmap createBitmap(DisplayMetrics display, int width, int height, Config config, boolean hasAlpha, ColorSpace colorSpace) {
return createBitmap(display, width, height, config, hasAlpha);
}
/**
* Returns an optional array of private data, used by the UI system for
* some bitmaps. Not intended to be called by applications.