Rabbit-R1/android (non root)/java/sources/androidx/compose/ui/graphics/Canvas.java

205 lines
16 KiB
Java
Raw Normal View History

2024-05-21 21:08:36 +00:00
package androidx.compose.ui.graphics;
import androidx.compose.ui.geometry.Offset;
import androidx.compose.ui.geometry.Rect;
import androidx.compose.ui.unit.IntOffset;
import androidx.compose.ui.unit.IntSizeKt;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: Canvas.kt */
@Metadata(d1 = {"\u0000\u0086\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\b\u0003\n\u0002\u0010\u0014\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0014\bf\u0018\u00002\u00020\u0001J'\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u0007H&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\b\u0010\tJ'\u0010\n\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\f2\b\b\u0002\u0010\u0006\u001a\u00020\u0007H\u0016ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\r\u0010\u000eJ?\u0010\n\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0012\u001a\u00020\u00102\u0006\u0010\u0013\u001a\u00020\u00102\b\b\u0002\u0010\u0006\u001a\u00020\u0007H&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0014\u0010\u0015J\u001d\u0010\u0016\u001a\u00020\u00032\u0006\u0010\u0017\u001a\u00020\u0018H&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0019\u0010\u001aJ\b\u0010\u001b\u001a\u00020\u0003H&J0\u0010\u001c\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\u001d\u001a\u00020\u00102\u0006\u0010\u001e\u001a\u00020\u00102\u0006\u0010\u001f\u001a\u00020 2\u0006\u0010!\u001a\u00020\"H\u0016JH\u0010\u001c\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0012\u001a\u00020\u00102\u0006\u0010\u0013\u001a\u00020\u00102\u0006\u0010\u001d\u001a\u00020\u00102\u0006\u0010\u001e\u001a\u00020\u00102\u0006\u0010\u001f\u001a\u00020 2\u0006\u0010!\u001a\u00020\"H&J0\u0010#\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010$\u001a\u00020\u00102\u0006\u0010%\u001a\u00020\u00102\u0006\u0010\u001f\u001a\u00020 2\u0006\u0010!\u001a\u00020\"H\u0016J-\u0010&\u001a\u00020\u00032\u0006\u0010'\u001a\u00020(2\u0006\u0010)\u001a\u00020\u00102\u0006\u0010!\u001a\u00020\"H&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b*\u0010+J-\u0010,\u001a\u00020\u00032\u0006\u0010-\u001a\u00020.2\u0006\u0010/\u001a\u00020(2\u0006\u0010!\u001a\u00020\"H&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b0\u00101JM\u00102\u001a\u00020\u00032\u0006\u0010-\u001a\u00020.2\b\b\u0002\u00103\u001a\u0002042\b\b\u0002\u00105\u001a\u0002062\b\b\u0002\u00107\u001a\u0002042\b\b\u0002\u00108\u001a\u0002062\u0006\u0010!\u001a\u00020\"H&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b9\u0010:J-\u0010;\u001a\u00020\u00032\u0006\u0010<\u001a\u00020(2\u0006\u0010=\u001a\u00020(2\u0006\u0010!\u001a\u00020\"H&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b>\u0010?J\u0018\u0010@\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010!\u001a\u00020\"H\u0016J0\u0010@\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0012\u001a\u00020\u00102\u0006\u0010\u0013\u001a\u00020\u00102\u0006\u0010!\u001a\u00020\"H&J\u0018\u0010A\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010!\u001a\u00020\"H&J3\u0010B\u001a\u00020\u00032\u0006\u0010C\u001a\u00020D2\f\u0010E\u001a\b\u0012\u0004\u0012\u00020(0F2\u0006\u0010!\u001a\u00020\"H&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\bG\u0010HJ-\u0010I\u001a\u00020\u00032\u0006\u0010C\u001a\u00020D2\u0006\u0010E\u001a\u00020J2\u0006\u0010!\u001a\u00020\"H&ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\bK\u0010LJ\u0018\u0010M\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010!\u001a\u00020\"H\u0016J0\u0010M\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0012\u001a\u00020\u00102\u0006\u0010\u0013\u001a\u00020\u00102\u0006\u0010!\u001a\u00020\"H&J@\u0010N\u001a\u00020\u00032\u0006\u0010
/* loaded from: classes.dex */
public interface Canvas {
/* renamed from: clipPath-mtrdD-E */
void mo2494clipPathmtrdDE(Path path, int clipOp);
/* renamed from: clipRect-N_I0leg */
void mo2495clipRectN_I0leg(float left, float top, float right, float bottom, int clipOp);
/* renamed from: concat-58bKbWc */
void mo2496concat58bKbWc(float[] matrix);
void disableZ();
void drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, Paint paint);
/* renamed from: drawCircle-9KIMszo */
void mo2497drawCircle9KIMszo(long center, float radius, Paint paint);
/* renamed from: drawImage-d-4ec7I */
void mo2498drawImaged4ec7I(ImageBitmap image, long topLeftOffset, Paint paint);
/* renamed from: drawImageRect-HPBpro0 */
void mo2499drawImageRectHPBpro0(ImageBitmap image, long srcOffset, long srcSize, long dstOffset, long dstSize, Paint paint);
/* renamed from: drawLine-Wko1d7g */
void mo2500drawLineWko1d7g(long p1, long p2, Paint paint);
void drawOval(float left, float top, float right, float bottom, Paint paint);
void drawPath(Path path, Paint paint);
/* renamed from: drawPoints-O7TthRY */
void mo2501drawPointsO7TthRY(int pointMode, List<Offset> points, Paint paint);
/* renamed from: drawRawPoints-O7TthRY */
void mo2502drawRawPointsO7TthRY(int pointMode, float[] points, Paint paint);
void drawRect(float left, float top, float right, float bottom, Paint paint);
void drawRoundRect(float left, float top, float right, float bottom, float radiusX, float radiusY, Paint paint);
/* renamed from: drawVertices-TPEHhCM */
void mo2503drawVerticesTPEHhCM(Vertices vertices, int blendMode, Paint paint);
void enableZ();
void restore();
void rotate(float degrees);
void save();
void saveLayer(Rect bounds, Paint paint);
void scale(float sx, float sy);
void skew(float sx, float sy);
void translate(float dx, float dy);
/* compiled from: Canvas.kt */
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public static final class DefaultImpls {
@Deprecated
public static void skewRad(Canvas canvas, float f, float f2) {
Canvas.super.skewRad(f, f2);
}
@Deprecated
/* renamed from: clipRect-mtrdD-E, reason: not valid java name */
public static void m2617clipRectmtrdDE(Canvas canvas, Rect rect, int i) {
Intrinsics.checkNotNullParameter(rect, "rect");
Canvas.super.m2614clipRectmtrdDE(rect, i);
}
@Deprecated
public static void drawRect(Canvas canvas, Rect rect, Paint paint) {
Intrinsics.checkNotNullParameter(rect, "rect");
Intrinsics.checkNotNullParameter(paint, "paint");
Canvas.super.drawRect(rect, paint);
}
@Deprecated
public static void drawOval(Canvas canvas, Rect rect, Paint paint) {
Intrinsics.checkNotNullParameter(rect, "rect");
Intrinsics.checkNotNullParameter(paint, "paint");
Canvas.super.drawOval(rect, paint);
}
@Deprecated
public static void drawArc(Canvas canvas, Rect rect, float f, float f2, boolean z, Paint paint) {
Intrinsics.checkNotNullParameter(rect, "rect");
Intrinsics.checkNotNullParameter(paint, "paint");
Canvas.super.drawArc(rect, f, f2, z, paint);
}
@Deprecated
public static void drawArcRad(Canvas canvas, Rect rect, float f, float f2, boolean z, Paint paint) {
Intrinsics.checkNotNullParameter(rect, "rect");
Intrinsics.checkNotNullParameter(paint, "paint");
Canvas.super.drawArcRad(rect, f, f2, z, paint);
}
}
static /* synthetic */ void scale$default(Canvas canvas, float f, float f2, int i, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: scale");
}
if ((i & 2) != 0) {
f2 = f;
}
canvas.scale(f, f2);
}
default void skewRad(float sxRad, float syRad) {
skew(DegreesKt.degrees(sxRad), DegreesKt.degrees(syRad));
}
/* renamed from: clipRect-mtrdD-E$default, reason: not valid java name */
static /* synthetic */ void m2612clipRectmtrdDE$default(Canvas canvas, Rect rect, int i, int i2, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: clipRect-mtrdD-E");
}
if ((i2 & 2) != 0) {
i = ClipOp.INSTANCE.m2628getIntersectrtfAjoo();
}
canvas.m2614clipRectmtrdDE(rect, i);
}
/* renamed from: clipRect-mtrdD-E, reason: not valid java name */
default void m2614clipRectmtrdDE(Rect rect, int clipOp) {
Intrinsics.checkNotNullParameter(rect, "rect");
mo2495clipRectN_I0leg(rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom(), clipOp);
}
/* renamed from: clipRect-N_I0leg$default, reason: not valid java name */
static /* synthetic */ void m2611clipRectN_I0leg$default(Canvas canvas, float f, float f2, float f3, float f4, int i, int i2, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: clipRect-N_I0leg");
}
if ((i2 & 16) != 0) {
i = ClipOp.INSTANCE.m2628getIntersectrtfAjoo();
}
canvas.mo2495clipRectN_I0leg(f, f2, f3, f4, i);
}
/* renamed from: clipPath-mtrdD-E$default, reason: not valid java name */
static /* synthetic */ void m2610clipPathmtrdDE$default(Canvas canvas, Path path, int i, int i2, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: clipPath-mtrdD-E");
}
if ((i2 & 2) != 0) {
i = ClipOp.INSTANCE.m2628getIntersectrtfAjoo();
}
canvas.mo2494clipPathmtrdDE(path, i);
}
default void drawRect(Rect rect, Paint paint) {
Intrinsics.checkNotNullParameter(rect, "rect");
Intrinsics.checkNotNullParameter(paint, "paint");
drawRect(rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom(), paint);
}
default void drawOval(Rect rect, Paint paint) {
Intrinsics.checkNotNullParameter(rect, "rect");
Intrinsics.checkNotNullParameter(paint, "paint");
drawOval(rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom(), paint);
}
default void drawArc(Rect rect, float startAngle, float sweepAngle, boolean useCenter, Paint paint) {
Intrinsics.checkNotNullParameter(rect, "rect");
Intrinsics.checkNotNullParameter(paint, "paint");
drawArc(rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom(), startAngle, sweepAngle, useCenter, paint);
}
default void drawArcRad(Rect rect, float startAngleRad, float sweepAngleRad, boolean useCenter, Paint paint) {
Intrinsics.checkNotNullParameter(rect, "rect");
Intrinsics.checkNotNullParameter(paint, "paint");
drawArc(rect, DegreesKt.degrees(startAngleRad), DegreesKt.degrees(sweepAngleRad), useCenter, paint);
}
/* renamed from: drawImageRect-HPBpro0$default, reason: not valid java name */
static /* synthetic */ void m2613drawImageRectHPBpro0$default(Canvas canvas, ImageBitmap imageBitmap, long j, long j2, long j3, long j4, Paint paint, int i, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: drawImageRect-HPBpro0");
}
long m5011getZeronOccac = (i & 2) != 0 ? IntOffset.INSTANCE.m5011getZeronOccac() : j;
long IntSize = (i & 4) != 0 ? IntSizeKt.IntSize(imageBitmap.getWidth(), imageBitmap.getHeight()) : j2;
canvas.mo2499drawImageRectHPBpro0(imageBitmap, m5011getZeronOccac, IntSize, (i & 8) != 0 ? IntOffset.INSTANCE.m5011getZeronOccac() : j3, (i & 16) != 0 ? IntSize : j4, paint);
}
}