alexandroid/decompiled/jadx/sources/androidx/compose/ui/text/TextLayoutResult.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

229 lines
14 KiB
Java

package androidx.compose.ui.text;
import androidx.collection.DoubleList$$ExternalSyntheticOutline0;
import androidx.compose.runtime.internal.StabilityInferred;
import androidx.compose.ui.geometry.Rect;
import androidx.compose.ui.graphics.Path;
import androidx.compose.ui.text.style.ResolvedTextDirection;
import androidx.compose.ui.unit.IntSize;
import androidx.core.app.AppLaunchChecker$$ExternalSyntheticOutline0;
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000h\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u0007\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000e\n\u0000\b\u0007\u0018\u00002\u00020\u0001B\u001f\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0004\b\b\u0010\tJ\u000e\u0010(\u001a\u00020%2\u0006\u0010)\u001a\u00020%J\u0018\u0010*\u001a\u00020%2\u0006\u0010)\u001a\u00020%2\b\b\u0002\u0010+\u001a\u00020\u0018J\u000e\u0010,\u001a\u00020\u00182\u0006\u0010)\u001a\u00020%J\u000e\u0010-\u001a\u00020\u00122\u0006\u0010)\u001a\u00020%J\u000e\u0010.\u001a\u00020\u00122\u0006\u0010)\u001a\u00020%J\u000e\u0010/\u001a\u00020\u00122\u0006\u0010)\u001a\u00020%J\u000e\u00100\u001a\u00020\u00122\u0006\u0010)\u001a\u00020%J\u000e\u00101\u001a\u00020\u00122\u0006\u0010)\u001a\u00020%J\u000e\u00102\u001a\u00020%2\u0006\u00103\u001a\u00020%J\u000e\u00104\u001a\u00020%2\u0006\u00105\u001a\u00020\u0012J\u0016\u00106\u001a\u00020\u00122\u0006\u00103\u001a\u00020%2\u0006\u00107\u001a\u00020\u0018J\u000e\u00108\u001a\u0002092\u0006\u00103\u001a\u00020%J\u000e\u0010:\u001a\u0002092\u0006\u00103\u001a\u00020%J\u0015\u0010;\u001a\u00020%2\u0006\u0010<\u001a\u00020=¢\u0006\u0004\b>\u0010?J\u000e\u0010@\u001a\u00020!2\u0006\u00103\u001a\u00020%J\u0015\u0010A\u001a\u00020B2\u0006\u00103\u001a\u00020%¢\u0006\u0004\bC\u0010DJ\u000e\u0010E\u001a\u00020!2\u0006\u00103\u001a\u00020%J\u0016\u0010F\u001a\u00020G2\u0006\u0010H\u001a\u00020%2\u0006\u0010I\u001a\u00020%J!\u0010J\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0006\u001a\u00020\u0007¢\u0006\u0004\bK\u0010LJ\u0013\u0010M\u001a\u00020\u00182\b\u0010N\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\b\u0010O\u001a\u00020%H\u0016J\b\u0010P\u001a\u00020QH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0013\u0010\u0006\u001a\u00020\u0007¢\u0006\n\n\u0002\u0010\u0010\u001a\u0004\b\u000e\u0010\u000fR\u0011\u0010\u0011\u001a\u00020\u0012¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\u0015\u001a\u00020\u0012¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0014R\u0011\u0010\u0017\u001a\u00020\u00188F¢\u0006\u0006\u001a\u0004\b\u0019\u0010\u001aR\u0011\u0010\u001b\u001a\u00020\u00188F¢\u0006\u0006\u001a\u0004\b\u001c\u0010\u001aR\u0011\u0010\u001d\u001a\u00020\u00188F¢\u0006\u0006\u001a\u0004\b\u001e\u0010\u001aR\u0019\u0010\u001f\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010!0 ¢\u0006\b\n\u0000\u001a\u0004\b\"\u0010#R\u0011\u0010$\u001a\u00020%8F¢\u0006\u0006\u001a\u0004\b&\u0010'¨\u0006R"}, d2 = {"Landroidx/compose/ui/text/TextLayoutResult;", "", "layoutInput", "Landroidx/compose/ui/text/TextLayoutInput;", "multiParagraph", "Landroidx/compose/ui/text/MultiParagraph;", "size", "Landroidx/compose/ui/unit/IntSize;", "<init>", "(Landroidx/compose/ui/text/TextLayoutInput;Landroidx/compose/ui/text/MultiParagraph;JLkotlin/jvm/internal/DefaultConstructorMarker;)V", "getLayoutInput", "()Landroidx/compose/ui/text/TextLayoutInput;", "getMultiParagraph", "()Landroidx/compose/ui/text/MultiParagraph;", "getSize-YbymL2g", "()J", "J", "firstBaseline", "", "getFirstBaseline", "()F", "lastBaseline", "getLastBaseline", "didOverflowHeight", "", "getDidOverflowHeight", "()Z", "didOverflowWidth", "getDidOverflowWidth", "hasVisualOverflow", "getHasVisualOverflow", "placeholderRects", "", "Landroidx/compose/ui/geometry/Rect;", "getPlaceholderRects", "()Ljava/util/List;", "lineCount", "", "getLineCount", "()I", "getLineStart", "lineIndex", "getLineEnd", "visibleEnd", "isLineEllipsized", "getLineTop", "getLineBaseline", "getLineBottom", "getLineLeft", "getLineRight", "getLineForOffset", "offset", "getLineForVerticalPosition", "vertical", "getHorizontalPosition", "usePrimaryDirection", "getParagraphDirection", "Landroidx/compose/ui/text/style/ResolvedTextDirection;", "getBidiRunDirection", "getOffsetForPosition", "position", "Landroidx/compose/ui/geometry/Offset;", "getOffsetForPosition-k-4lQ0M", "(J)I", "getBoundingBox", "getWordBoundary", "Landroidx/compose/ui/text/TextRange;", "getWordBoundary--jx7JFs", "(I)J", "getCursorRect", "getPathForRange", "Landroidx/compose/ui/graphics/Path;", "start", "end", "copy", "copy-O0kMr_c", "(Landroidx/compose/ui/text/TextLayoutInput;J)Landroidx/compose/ui/text/TextLayoutResult;", "equals", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "hashCode", "toString", "", "ui-text"}, k = 1, mv = {2, 0, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nTextLayoutResult.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TextLayoutResult.kt\nandroidx/compose/ui/text/TextLayoutResult\n+ 2 IntSize.kt\nandroidx/compose/ui/unit/IntSize\n+ 3 InlineClassHelper.kt\nandroidx/compose/ui/util/InlineClassHelperKt\n*L\n1#1,580:1\n59#2:581\n54#2:583\n90#3:582\n85#3:584\n*S KotlinDebug\n*F\n+ 1 TextLayoutResult.kt\nandroidx/compose/ui/text/TextLayoutResult\n*L\n313#1:581\n317#1:583\n313#1:582\n317#1:584\n*E\n"})
/* loaded from: classes13.dex */
public final class TextLayoutResult {
public static final int $stable = 8;
private final float firstBaseline;
private final float lastBaseline;
@NotNull
private final TextLayoutInput layoutInput;
@NotNull
private final MultiParagraph multiParagraph;
@NotNull
private final List<Rect> placeholderRects;
private final long size;
private TextLayoutResult(TextLayoutInput textLayoutInput, MultiParagraph multiParagraph, long j) {
this.layoutInput = textLayoutInput;
this.multiParagraph = multiParagraph;
this.size = j;
this.firstBaseline = multiParagraph.getFirstBaseline();
this.lastBaseline = multiParagraph.getLastBaseline();
this.placeholderRects = multiParagraph.getPlaceholderRects();
}
/* renamed from: copy-O0kMr_c$default, reason: not valid java name */
public static /* synthetic */ TextLayoutResult m6798copyO0kMr_c$default(TextLayoutResult textLayoutResult, TextLayoutInput textLayoutInput, long j, int i, Object obj) {
if ((i & 1) != 0) {
textLayoutInput = textLayoutResult.layoutInput;
}
if ((i & 2) != 0) {
j = textLayoutResult.size;
}
return textLayoutResult.m6799copyO0kMr_c(textLayoutInput, j);
}
public static /* synthetic */ int getLineEnd$default(TextLayoutResult textLayoutResult, int i, boolean z, int i2, Object obj) {
if ((i2 & 2) != 0) {
z = false;
}
return textLayoutResult.getLineEnd(i, z);
}
@NotNull
/* renamed from: copy-O0kMr_c, reason: not valid java name */
public final TextLayoutResult m6799copyO0kMr_c(@NotNull TextLayoutInput layoutInput, long size) {
return new TextLayoutResult(layoutInput, this.multiParagraph, size, null);
}
public boolean equals(@Nullable Object other) {
if (this == other) {
return true;
}
if (!(other instanceof TextLayoutResult)) {
return false;
}
TextLayoutResult textLayoutResult = (TextLayoutResult) other;
return Intrinsics.areEqual(this.layoutInput, textLayoutResult.layoutInput) && Intrinsics.areEqual(this.multiParagraph, textLayoutResult.multiParagraph) && IntSize.m7537equalsimpl0(this.size, textLayoutResult.size) && this.firstBaseline == textLayoutResult.firstBaseline && this.lastBaseline == textLayoutResult.lastBaseline && Intrinsics.areEqual(this.placeholderRects, textLayoutResult.placeholderRects);
}
@NotNull
public final ResolvedTextDirection getBidiRunDirection(int offset) {
return this.multiParagraph.getBidiRunDirection(offset);
}
@NotNull
public final Rect getBoundingBox(int offset) {
return this.multiParagraph.getBoundingBox(offset);
}
@NotNull
public final Rect getCursorRect(int offset) {
return this.multiParagraph.getCursorRect(offset);
}
public final boolean getDidOverflowHeight() {
return this.multiParagraph.getDidExceedMaxLines() || ((float) ((int) (this.size & 4294967295L))) < this.multiParagraph.getHeight();
}
public final boolean getDidOverflowWidth() {
return ((float) ((int) (this.size >> 32))) < this.multiParagraph.getWidth();
}
public final float getFirstBaseline() {
return this.firstBaseline;
}
public final boolean getHasVisualOverflow() {
return getDidOverflowWidth() || getDidOverflowHeight();
}
public final float getHorizontalPosition(int offset, boolean usePrimaryDirection) {
return this.multiParagraph.getHorizontalPosition(offset, usePrimaryDirection);
}
public final float getLastBaseline() {
return this.lastBaseline;
}
@NotNull
public final TextLayoutInput getLayoutInput() {
return this.layoutInput;
}
public final float getLineBaseline(int lineIndex) {
return this.multiParagraph.getLineBaseline(lineIndex);
}
public final float getLineBottom(int lineIndex) {
return this.multiParagraph.getLineBottom(lineIndex);
}
public final int getLineCount() {
return this.multiParagraph.getLineCount();
}
public final int getLineEnd(int lineIndex, boolean visibleEnd) {
return this.multiParagraph.getLineEnd(lineIndex, visibleEnd);
}
public final int getLineForOffset(int offset) {
return this.multiParagraph.getLineForOffset(offset);
}
public final int getLineForVerticalPosition(float vertical) {
return this.multiParagraph.getLineForVerticalPosition(vertical);
}
public final float getLineLeft(int lineIndex) {
return this.multiParagraph.getLineLeft(lineIndex);
}
public final float getLineRight(int lineIndex) {
return this.multiParagraph.getLineRight(lineIndex);
}
public final int getLineStart(int lineIndex) {
return this.multiParagraph.getLineStart(lineIndex);
}
public final float getLineTop(int lineIndex) {
return this.multiParagraph.getLineTop(lineIndex);
}
@NotNull
public final MultiParagraph getMultiParagraph() {
return this.multiParagraph;
}
/* renamed from: getOffsetForPosition-k-4lQ0M, reason: not valid java name */
public final int m6800getOffsetForPositionk4lQ0M(long position) {
return this.multiParagraph.m6671getOffsetForPositionk4lQ0M(position);
}
@NotNull
public final ResolvedTextDirection getParagraphDirection(int offset) {
return this.multiParagraph.getParagraphDirection(offset);
}
@NotNull
public final Path getPathForRange(int start, int end) {
return this.multiParagraph.getPathForRange(start, end);
}
@NotNull
public final List<Rect> getPlaceholderRects() {
return this.placeholderRects;
}
/* renamed from: getSize-YbymL2g, reason: not valid java name and from getter */
public final long getSize() {
return this.size;
}
/* renamed from: getWordBoundary--jx7JFs, reason: not valid java name */
public final long m6802getWordBoundaryjx7JFs(int offset) {
return this.multiParagraph.m6673getWordBoundaryjx7JFs(offset);
}
public int hashCode() {
return this.placeholderRects.hashCode() + DoubleList$$ExternalSyntheticOutline0.m(this.lastBaseline, DoubleList$$ExternalSyntheticOutline0.m(this.firstBaseline, (IntSize.m7540hashCodeimpl(this.size) + ((this.multiParagraph.hashCode() + (this.layoutInput.hashCode() * 31)) * 31)) * 31, 31), 31);
}
public final boolean isLineEllipsized(int lineIndex) {
return this.multiParagraph.isLineEllipsized(lineIndex);
}
@NotNull
public String toString() {
StringBuilder sb = new StringBuilder("TextLayoutResult(layoutInput=");
sb.append(this.layoutInput);
sb.append(", multiParagraph=");
sb.append(this.multiParagraph);
sb.append(", size=");
sb.append((Object) IntSize.m7542toStringimpl(this.size));
sb.append(", firstBaseline=");
sb.append(this.firstBaseline);
sb.append(", lastBaseline=");
sb.append(this.lastBaseline);
sb.append(", placeholderRects=");
return AppLaunchChecker$$ExternalSyntheticOutline0.m(sb, (List) this.placeholderRects, ')');
}
public /* synthetic */ TextLayoutResult(TextLayoutInput textLayoutInput, MultiParagraph multiParagraph, long j, DefaultConstructorMarker defaultConstructorMarker) {
this(textLayoutInput, multiParagraph, j);
}
}