alexandroid/decompiled/jadx/sources/androidx/compose/material/ResistanceConfig.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

87 lines
4.5 KiB
Java

package androidx.compose.material;
import androidx.collection.DoubleList$$ExternalSyntheticOutline0;
import androidx.compose.runtime.Immutable;
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
import kotlin.Deprecated;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0007\n\u0002\b\n\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0007\u0018\u00002\u00020\u0001B!\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0003¢\u0006\u0002\u0010\u0006J\u000e\u0010\u000b\u001a\u00020\u00032\u0006\u0010\f\u001a\u00020\u0003J\u0013\u0010\r\u001a\u00020\u000e2\b\u0010\u000f\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\b\u0010\u0010\u001a\u00020\u0011H\u0016J\b\u0010\u0012\u001a\u00020\u0013H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\bR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\b¨\u0006\u0014"}, d2 = {"Landroidx/compose/material/ResistanceConfig;", "", "basis", "", "factorAtMin", "factorAtMax", "(FFF)V", "getBasis", "()F", "getFactorAtMax", "getFactorAtMin", "computeResistance", "overflow", "equals", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "hashCode", "", "toString", "", "material_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
@Deprecated(message = "Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.")
@Immutable
@SourceDebugExtension({"SMAP\nSwipeable.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Swipeable.kt\nandroidx/compose/material/ResistanceConfig\n+ 2 MathHelpers.kt\nandroidx/compose/ui/util/MathHelpersKt\n*L\n1#1,909:1\n71#2,16:910\n*S KotlinDebug\n*F\n+ 1 Swipeable.kt\nandroidx/compose/material/ResistanceConfig\n*L\n712#1:910,16\n*E\n"})
/* loaded from: classes.dex */
public final class ResistanceConfig {
public static final int $stable = 0;
private final float basis;
private final float factorAtMax;
private final float factorAtMin;
public /* synthetic */ ResistanceConfig(float f, float f2, float f3, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(f, (i & 2) != 0 ? 10.0f : f2, (i & 4) != 0 ? 10.0f : f3);
}
public final float computeResistance(float overflow) {
float f = overflow < 0.0f ? this.factorAtMin : this.factorAtMax;
if (f == 0.0f) {
return 0.0f;
}
float f2 = this.basis;
float f3 = overflow / f2;
if (f3 < -1.0f) {
f3 = -1.0f;
}
if (f3 > 1.0f) {
f3 = 1.0f;
}
return (f2 / f) * ((float) Math.sin((f3 * 3.1415927f) / 2));
}
public boolean equals(@Nullable Object other) {
if (this == other) {
return true;
}
if (!(other instanceof ResistanceConfig)) {
return false;
}
ResistanceConfig resistanceConfig = (ResistanceConfig) other;
return this.basis == resistanceConfig.basis && this.factorAtMin == resistanceConfig.factorAtMin && this.factorAtMax == resistanceConfig.factorAtMax;
}
public final float getBasis() {
return this.basis;
}
public final float getFactorAtMax() {
return this.factorAtMax;
}
public final float getFactorAtMin() {
return this.factorAtMin;
}
public int hashCode() {
return Float.hashCode(this.factorAtMax) + DoubleList$$ExternalSyntheticOutline0.m(this.factorAtMin, Float.hashCode(this.basis) * 31, 31);
}
@NotNull
public String toString() {
StringBuilder sb = new StringBuilder("ResistanceConfig(basis=");
sb.append(this.basis);
sb.append(", factorAtMin=");
sb.append(this.factorAtMin);
sb.append(", factorAtMax=");
return DoubleList$$ExternalSyntheticOutline0.m(sb, this.factorAtMax, ')');
}
public ResistanceConfig(float f, float f2, float f3) {
this.basis = f;
this.factorAtMin = f2;
this.factorAtMax = f3;
}
}