mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-05 03:58:52 +01:00
184 lines
11 KiB
Java
184 lines
11 KiB
Java
package androidx.compose.ui.text.font;
|
|
|
|
import androidx.compose.runtime.internal.StabilityInferred;
|
|
import androidx.compose.ui.text.ExperimentalTextApi;
|
|
import androidx.compose.ui.text.font.FontVariation;
|
|
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@StabilityInferred(parameters = 1)
|
|
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\b\u0007\u0018\u00002\u00020\u0001B9\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0005\u0012\b\b\u0002\u0010\u0006\u001a\u00020\u0007\u0012\b\b\u0002\u0010\b\u001a\u00020\t\u0012\b\b\u0002\u0010\n\u001a\u00020\u000b¢\u0006\u0004\b\f\u0010\rJ+\u0010\u0019\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u0007¢\u0006\u0004\b\u001a\u0010\u001bJA\u0010\u0019\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00072\b\b\u0002\u0010\n\u001a\u00020\u000b2\b\b\u0002\u0010\b\u001a\u00020\tH\u0007¢\u0006\u0004\b\u001c\u0010\u001dJ\u0013\u0010\u001e\u001a\u00020\u001f2\b\u0010 \u001a\u0004\u0018\u00010!H\u0096\u0002J\b\u0010\"\u001a\u00020\u0003H\u0016J\b\u0010#\u001a\u00020$H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0004\u001a\u00020\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u0016\u0010\u0006\u001a\u00020\u0007X\u0096\u0004¢\u0006\n\n\u0002\u0010\u0013\u001a\u0004\b\u0012\u0010\u000fR\u0011\u0010\b\u001a\u00020\t¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u0015R\u001e\u0010\n\u001a\u00020\u000b8\u0016X\u0097\u0004¢\u0006\u0010\n\u0002\u0010\u0013\u0012\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0018\u0010\u000f¨\u0006%"}, d2 = {"Landroidx/compose/ui/text/font/ResourceFont;", "Landroidx/compose/ui/text/font/Font;", "resId", "", "weight", "Landroidx/compose/ui/text/font/FontWeight;", "style", "Landroidx/compose/ui/text/font/FontStyle;", "variationSettings", "Landroidx/compose/ui/text/font/FontVariation$Settings;", "loadingStrategy", "Landroidx/compose/ui/text/font/FontLoadingStrategy;", "<init>", "(ILandroidx/compose/ui/text/font/FontWeight;ILandroidx/compose/ui/text/font/FontVariation$Settings;ILkotlin/jvm/internal/DefaultConstructorMarker;)V", "getResId", "()I", "getWeight", "()Landroidx/compose/ui/text/font/FontWeight;", "getStyle-_-LCdwA", "I", "getVariationSettings", "()Landroidx/compose/ui/text/font/FontVariation$Settings;", "getLoadingStrategy-PKNRLFQ$annotations", "()V", "getLoadingStrategy-PKNRLFQ", "copy", "copy-RetOiIg", "(ILandroidx/compose/ui/text/font/FontWeight;I)Landroidx/compose/ui/text/font/ResourceFont;", "copy-F3nL8kk", "(ILandroidx/compose/ui/text/font/FontWeight;IILandroidx/compose/ui/text/font/FontVariation$Settings;)Landroidx/compose/ui/text/font/ResourceFont;", "equals", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "", "hashCode", "toString", "", "ui-text"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
public final class ResourceFont implements Font {
|
|
public static final int $stable = 0;
|
|
private final int loadingStrategy;
|
|
private final int resId;
|
|
private final int style;
|
|
|
|
@NotNull
|
|
private final FontVariation.Settings variationSettings;
|
|
|
|
@NotNull
|
|
private final FontWeight weight;
|
|
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public /* synthetic */ ResourceFont(int r8, androidx.compose.ui.text.font.FontWeight r9, int r10, androidx.compose.ui.text.font.FontVariation.Settings r11, int r12, int r13, kotlin.jvm.internal.DefaultConstructorMarker r14) {
|
|
/*
|
|
r7 = this;
|
|
r14 = r13 & 2
|
|
if (r14 == 0) goto La
|
|
androidx.compose.ui.text.font.FontWeight$Companion r9 = androidx.compose.ui.text.font.FontWeight.INSTANCE
|
|
androidx.compose.ui.text.font.FontWeight r9 = r9.getNormal()
|
|
La:
|
|
r2 = r9
|
|
r9 = r13 & 4
|
|
if (r9 == 0) goto L15
|
|
androidx.compose.ui.text.font.FontStyle$Companion r9 = androidx.compose.ui.text.font.FontStyle.INSTANCE
|
|
int r10 = r9.m6950getNormal_LCdwA()
|
|
L15:
|
|
r3 = r10
|
|
r9 = r13 & 8
|
|
if (r9 == 0) goto L23
|
|
androidx.compose.ui.text.font.FontVariation r9 = androidx.compose.ui.text.font.FontVariation.INSTANCE
|
|
r10 = 0
|
|
androidx.compose.ui.text.font.FontVariation$Setting[] r10 = new androidx.compose.ui.text.font.FontVariation.Setting[r10]
|
|
androidx.compose.ui.text.font.FontVariation$Settings r11 = r9.m6965Settings6EWAqTQ(r2, r3, r10)
|
|
L23:
|
|
r4 = r11
|
|
r9 = r13 & 16
|
|
if (r9 == 0) goto L2e
|
|
androidx.compose.ui.text.font.FontLoadingStrategy$Companion r9 = androidx.compose.ui.text.font.FontLoadingStrategy.INSTANCE
|
|
int r12 = r9.m6934getAsyncPKNRLFQ()
|
|
L2e:
|
|
r5 = r12
|
|
r6 = 0
|
|
r0 = r7
|
|
r1 = r8
|
|
r0.<init>(r1, r2, r3, r4, r5, r6)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.ui.text.font.ResourceFont.<init>(int, androidx.compose.ui.text.font.FontWeight, int, androidx.compose.ui.text.font.FontVariation$Settings, int, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
|
|
}
|
|
|
|
/* renamed from: copy-F3nL8kk$default, reason: not valid java name */
|
|
public static /* synthetic */ ResourceFont m6980copyF3nL8kk$default(ResourceFont resourceFont, int i, FontWeight fontWeight, int i2, int i3, FontVariation.Settings settings, int i4, Object obj) {
|
|
if ((i4 & 1) != 0) {
|
|
i = resourceFont.resId;
|
|
}
|
|
if ((i4 & 2) != 0) {
|
|
fontWeight = resourceFont.getWeight();
|
|
}
|
|
if ((i4 & 4) != 0) {
|
|
i2 = resourceFont.getStyle();
|
|
}
|
|
if ((i4 & 8) != 0) {
|
|
i3 = resourceFont.getLoadingStrategy();
|
|
}
|
|
if ((i4 & 16) != 0) {
|
|
settings = resourceFont.variationSettings;
|
|
}
|
|
FontVariation.Settings settings2 = settings;
|
|
int i5 = i2;
|
|
return resourceFont.m6983copyF3nL8kk(i, fontWeight, i5, i3, settings2);
|
|
}
|
|
|
|
/* renamed from: copy-RetOiIg$default, reason: not valid java name */
|
|
public static /* synthetic */ ResourceFont m6981copyRetOiIg$default(ResourceFont resourceFont, int i, FontWeight fontWeight, int i2, int i3, Object obj) {
|
|
if ((i3 & 1) != 0) {
|
|
i = resourceFont.resId;
|
|
}
|
|
if ((i3 & 2) != 0) {
|
|
fontWeight = resourceFont.getWeight();
|
|
}
|
|
if ((i3 & 4) != 0) {
|
|
i2 = resourceFont.getStyle();
|
|
}
|
|
return resourceFont.m6984copyRetOiIg(i, fontWeight, i2);
|
|
}
|
|
|
|
@ExperimentalTextApi
|
|
@NotNull
|
|
/* renamed from: copy-F3nL8kk, reason: not valid java name */
|
|
public final ResourceFont m6983copyF3nL8kk(int resId, @NotNull FontWeight weight, int style, int loadingStrategy, @NotNull FontVariation.Settings variationSettings) {
|
|
return new ResourceFont(resId, weight, style, variationSettings, loadingStrategy, null);
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: copy-RetOiIg, reason: not valid java name */
|
|
public final ResourceFont m6984copyRetOiIg(int resId, @NotNull FontWeight weight, int style) {
|
|
return m6980copyF3nL8kk$default(this, resId, weight, style, getLoadingStrategy(), null, 16, null);
|
|
}
|
|
|
|
public boolean equals(@Nullable Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
if (!(other instanceof ResourceFont)) {
|
|
return false;
|
|
}
|
|
ResourceFont resourceFont = (ResourceFont) other;
|
|
return this.resId == resourceFont.resId && Intrinsics.areEqual(getWeight(), resourceFont.getWeight()) && FontStyle.m6943equalsimpl0(getStyle(), resourceFont.getStyle()) && Intrinsics.areEqual(this.variationSettings, resourceFont.variationSettings) && FontLoadingStrategy.m6930equalsimpl0(getLoadingStrategy(), resourceFont.getLoadingStrategy());
|
|
}
|
|
|
|
@Override // androidx.compose.ui.text.font.Font
|
|
/* renamed from: getLoadingStrategy-PKNRLFQ, reason: from getter */
|
|
public int getLoadingStrategy() {
|
|
return this.loadingStrategy;
|
|
}
|
|
|
|
public final int getResId() {
|
|
return this.resId;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.text.font.Font
|
|
/* renamed from: getStyle-_-LCdwA, reason: from getter */
|
|
public int getStyle() {
|
|
return this.style;
|
|
}
|
|
|
|
@NotNull
|
|
public final FontVariation.Settings getVariationSettings() {
|
|
return this.variationSettings;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.text.font.Font
|
|
@NotNull
|
|
public FontWeight getWeight() {
|
|
return this.weight;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return this.variationSettings.hashCode() + ((FontLoadingStrategy.m6931hashCodeimpl(getLoadingStrategy()) + ((FontStyle.m6944hashCodeimpl(getStyle()) + ((getWeight().hashCode() + (this.resId * 31)) * 31)) * 31)) * 31);
|
|
}
|
|
|
|
@NotNull
|
|
public String toString() {
|
|
return "ResourceFont(resId=" + this.resId + ", weight=" + getWeight() + ", style=" + ((Object) FontStyle.m6945toStringimpl(getStyle())) + ", loadingStrategy=" + ((Object) FontLoadingStrategy.m6932toStringimpl(getLoadingStrategy())) + ')';
|
|
}
|
|
|
|
@ExperimentalTextApi
|
|
/* renamed from: getLoadingStrategy-PKNRLFQ$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m6982getLoadingStrategyPKNRLFQ$annotations() {
|
|
}
|
|
|
|
private ResourceFont(int i, FontWeight fontWeight, int i2, FontVariation.Settings settings, int i3) {
|
|
this.resId = i;
|
|
this.weight = fontWeight;
|
|
this.style = i2;
|
|
this.variationSettings = settings;
|
|
this.loadingStrategy = i3;
|
|
}
|
|
|
|
public /* synthetic */ ResourceFont(int i, FontWeight fontWeight, int i2, FontVariation.Settings settings, int i3, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(i, fontWeight, i2, settings, i3);
|
|
}
|
|
}
|