Rabbit-R1/android (non root)/java/sources/androidx/compose/foundation/PlatformMagnifierFactoryApi28Impl.java
2024-05-21 17:08:36 -04:00

72 lines
5.2 KiB
Java

package androidx.compose.foundation;
import android.view.View;
import android.widget.Magnifier;
import androidx.compose.ui.geometry.Offset;
import androidx.compose.ui.unit.Density;
import androidx.compose.ui.unit.IntSizeKt;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: PlatformMagnifier.kt */
@Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0002\\u0002\u0018\u00002\u00020\u0001:\u0001\u0011B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J(\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0010H\u0016R\u0014\u0010\u0003\u001a\u00020\u0004X\u0096D¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0012"}, d2 = {"Landroidx/compose/foundation/PlatformMagnifierFactoryApi28Impl;", "Landroidx/compose/foundation/PlatformMagnifierFactory;", "()V", "canUpdateZoom", "", "getCanUpdateZoom", "()Z", "create", "Landroidx/compose/foundation/PlatformMagnifierFactoryApi28Impl$PlatformMagnifierImpl;", "style", "Landroidx/compose/foundation/MagnifierStyle;", "view", "Landroid/view/View;", "density", "Landroidx/compose/ui/unit/Density;", "initialZoom", "", "PlatformMagnifierImpl", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class PlatformMagnifierFactoryApi28Impl implements PlatformMagnifierFactory {
public static final PlatformMagnifierFactoryApi28Impl INSTANCE = new PlatformMagnifierFactoryApi28Impl();
private static final boolean canUpdateZoom = false;
@Override // androidx.compose.foundation.PlatformMagnifierFactory
public boolean getCanUpdateZoom() {
return canUpdateZoom;
}
private PlatformMagnifierFactoryApi28Impl() {
}
@Override // androidx.compose.foundation.PlatformMagnifierFactory
public PlatformMagnifierImpl create(MagnifierStyle style, View view, Density density, float initialZoom) {
Intrinsics.checkNotNullParameter(style, "style");
Intrinsics.checkNotNullParameter(view, "view");
Intrinsics.checkNotNullParameter(density, "density");
return new PlatformMagnifierImpl(new Magnifier(view));
}
/* compiled from: PlatformMagnifier.kt */
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\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\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\b\u0004\b\u0017\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u000b\u001a\u00020\fH\u0016J-\u0010\r\u001a\u00020\f2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\u0011\u001a\u00020\u0012H\u0016ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0013\u0010\u0014J\b\u0010\u0015\u001a\u00020\fH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006R\u001d\u0010\u0007\u001a\u00020\b8VX\u0096\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0006\u001a\u0004\b\t\u0010\n\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\\u001e0\u0001\n\u0002\b!¨\u0006\u0016"}, d2 = {"Landroidx/compose/foundation/PlatformMagnifierFactoryApi28Impl$PlatformMagnifierImpl;", "Landroidx/compose/foundation/PlatformMagnifier;", "magnifier", "Landroid/widget/Magnifier;", "(Landroid/widget/Magnifier;)V", "getMagnifier", "()Landroid/widget/Magnifier;", "size", "Landroidx/compose/ui/unit/IntSize;", "getSize-YbymL2g", "()J", "dismiss", "", "update", "sourceCenter", "Landroidx/compose/ui/geometry/Offset;", "magnifierCenter", "zoom", "", "update-Wko1d7g", "(JJF)V", "updateContent", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public static class PlatformMagnifierImpl implements PlatformMagnifier {
public static final int $stable = 8;
private final Magnifier magnifier;
public final Magnifier getMagnifier() {
return this.magnifier;
}
public PlatformMagnifierImpl(Magnifier magnifier) {
Intrinsics.checkNotNullParameter(magnifier, "magnifier");
this.magnifier = magnifier;
}
@Override // androidx.compose.foundation.PlatformMagnifier
/* renamed from: getSize-YbymL2g */
public long mo251getSizeYbymL2g() {
return IntSizeKt.IntSize(this.magnifier.getWidth(), this.magnifier.getHeight());
}
@Override // androidx.compose.foundation.PlatformMagnifier
public void updateContent() {
this.magnifier.update();
}
@Override // androidx.compose.foundation.PlatformMagnifier
/* renamed from: update-Wko1d7g */
public void mo252updateWko1d7g(long sourceCenter, long magnifierCenter, float zoom) {
this.magnifier.show(Offset.m2400getXimpl(sourceCenter), Offset.m2401getYimpl(sourceCenter));
}
@Override // androidx.compose.foundation.PlatformMagnifier
public void dismiss() {
this.magnifier.dismiss();
}
}
}