* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
948 lines
55 KiB
Java
948 lines
55 KiB
Java
package kotlin.time;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import kotlin.Metadata;
|
|
import kotlin.PublishedApi;
|
|
import kotlin.SinceKotlin;
|
|
import kotlin.comparisons.ComparisonsKt___ComparisonsJvmKt;
|
|
import kotlin.internal.InlineOnly;
|
|
import kotlin.jvm.JvmInline;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.functions.Function3;
|
|
import kotlin.jvm.functions.Function4;
|
|
import kotlin.jvm.functions.Function5;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.LongCompanionObject;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.math.MathKt;
|
|
import kotlin.ranges.LongRange;
|
|
import kotlin.ranges.RangesKt;
|
|
import kotlin.text.StringsKt__StringsKt;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
@SinceKotlin(version = "1.6")
|
|
@Metadata(d1 = {"\u0000r\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0000\n\u0002\u0010\t\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0010\u0006\n\u0002\b\u0019\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b%\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010\u0000\n\u0002\b\u0003\b\u0087@\u0018\u0000 \u0089\u00012\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0002\u0089\u0001B\u0011\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0004\b\u0004\u0010\u0005J\u000f\u0010\f\u001a\u00020\rH\u0002¢\u0006\u0004\b\u000e\u0010\u000fJ\u000f\u0010\u0010\u001a\u00020\rH\u0002¢\u0006\u0004\b\u0011\u0010\u000fJ\u0010\u0010\u0016\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\b\u0017\u0010\u0005J\u0018\u0010\u0018\u001a\u00020\u00002\u0006\u0010\u0019\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\b\u001a\u0010\u001bJ\u001f\u0010\u001c\u001a\u00020\u00002\u0006\u0010\u001d\u001a\u00020\u00032\u0006\u0010\u001e\u001a\u00020\u0003H\u0002¢\u0006\u0004\b\u001f\u0010 J\u0018\u0010!\u001a\u00020\u00002\u0006\u0010\u0019\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\b\"\u0010\u001bJ\u0018\u0010#\u001a\u00020\u00002\u0006\u0010$\u001a\u00020\tH\u0086\u0002¢\u0006\u0004\b%\u0010&J\u0018\u0010#\u001a\u00020\u00002\u0006\u0010$\u001a\u00020'H\u0086\u0002¢\u0006\u0004\b%\u0010(J\u0018\u0010)\u001a\u00020\u00002\u0006\u0010$\u001a\u00020\tH\u0086\u0002¢\u0006\u0004\b*\u0010&J\u0018\u0010)\u001a\u00020\u00002\u0006\u0010$\u001a\u00020'H\u0086\u0002¢\u0006\u0004\b*\u0010(J\u0018\u0010)\u001a\u00020'2\u0006\u0010\u0019\u001a\u00020\u0000H\u0086\u0002¢\u0006\u0004\b+\u0010,J\u0017\u0010-\u001a\u00020\u00002\u0006\u0010.\u001a\u00020\u0013H\u0000¢\u0006\u0004\b/\u00100J\r\u00101\u001a\u00020\r¢\u0006\u0004\b2\u0010\u000fJ\r\u00103\u001a\u00020\r¢\u0006\u0004\b4\u0010\u000fJ\r\u00105\u001a\u00020\r¢\u0006\u0004\b6\u0010\u000fJ\r\u00107\u001a\u00020\r¢\u0006\u0004\b8\u0010\u000fJ\u0018\u0010;\u001a\u00020\t2\u0006\u0010\u0019\u001a\u00020\u0000H\u0096\u0002¢\u0006\u0004\b<\u0010=J\u009d\u0001\u0010>\u001a\u0002H?\"\u0004\b\u0000\u0010?2u\u0010@\u001aq\u0012\u0013\u0012\u00110\u0003¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(D\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(E\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(F\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(G\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(H\u0012\u0004\u0012\u0002H?0AH\u0086\bø\u0001\u0000\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0004\bI\u0010JJ\u0088\u0001\u0010>\u001a\u0002H?\"\u0004\b\u0000\u0010?2`\u0010@\u001a\\\u0012\u0013\u0012\u00110\u0003¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(E\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(F\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(G\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(H\u0012\u0004\u0012\u0002H?0KH\u0086\bø\u0001\u0000\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0004\bI\u0010LJs\u0010>\u001a\u0002H?\"\u0004\b\u0000\u0010?2K\u0010@\u001aG\u0012\u0013\u0012\u00110\u0003¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(F\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(G\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(H\u0012\u0004\u0012\u0002H?0MH\u0086\bø\u0001\u0000\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0004\bI\u0010NJ^\u0010>\u001a\u0002H?\"\u0004\b\u0000\u0010?26\u0010@\u001a2\u0012\u0013\u0012\u00110\u0003¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(G\u0012\u0013\u0012\u00110\t¢\u0006\f\bB\u0012\b\bC\u0012\u0004\b\b(H\u0012\u0004\u0012\u0002H?0OH\u0086\bø\u0001\u0000\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0004\bI\u0010PJ\u0015\u0010^\u001a\u00020'2\u0006\u0010.\u001a\u00020\u0013¢\u0006\u0004\b_\u0010`J\u0015\u0010a\u001a\u00020\u00032\u0006\u0010.\u001a\u00020\u0013¢\u0006\u0004\bb\u00100J\u0015\u0010c\u001a\u00020\t2\u0006\u0010.\u001a\u00020\u0013¢\u0006\u0004\bd\u0010eJ\u000f\u0010t\u001a\u00020uH\u0016¢\u0006\u0004\bv\u0010wJA\u0010x\u001a\u00020y*\u00060zj\u0002`{2\u0006\u0010|\u001a\u00020\t2\u0006\u0010}\u001a\u00020\t2\u0006\u0010~\u001a\u00020\t2\u0006\u0010.\u001a\u00020u2\u0006\u0010\u007f\u001a\u00020\rH\u0002¢\u0006\u0006\b\u0080\u0001\u0010\u0081\u0001J!\u0010t\u001a\u00020u2\u0006\u0010.\u001a\u00020\u00132\t\b\u0002\u0010\u0082\u0001\u001a\u00020\t¢\u0006\u0005\bv\u0010\u0083\u0001J\u000f\u0010\u0084\u0001\u001a\u00020u¢\u0006\u0005\b\u0085\u0001\u0010wJ\u0015\u0010\u0086\u0001\u001a\u00020\r2\t\u0010\u0019\u001a\u0005\u0018\u00010\u0087\u0001HÖ\u0003J\n\u0010\u0088\u0001\u001a\u00020\tHÖ\u0001R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\u00020\u00038BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\u0005R\u0015\u0010\b\u001a\u00020\t8Â\u0002X\u0082\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u0014\u0010\u0012\u001a\u00020\u00138BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0014\u0010\u0015R\u0011\u00109\u001a\u00020\u00008F¢\u0006\u0006\u001a\u0004\b:\u0010\u0005R\u001a\u0010Q\u001a\u00020\t8@X\u0081\u0004¢\u0006\f\u0012\u0004\bR\u0010S\u001a\u0004\bT\u0010\u000bR\u001a\u0010U\u001a\u00020\t8@X\u0081\u0004¢\u0006\f\u0012\u0004\bV\u0010S\u001a\u0004\bW\u0010\u000bR\u001a\u0010X\u001a\u00020\t8@X\u0081\u0004¢\u0006\f\u0012\u0004\bY\u0010S\u001a\u0004\bZ\u0010\u000bR\u001a\u0010[\u001a\u00020\t8@X\u0081\u0004¢\u0006\f\u0012\u0004\b\\\u0010S\u001a\u0004\b]\u0010\u000bR\u0011\u0010f\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\bg\u0010\u0005R\u0011\u0010h\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\bi\u0010\u0005R\u0011\u0010j\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\bk\u0010\u0005R\u0011\u0010l\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\bm\u0010\u0005R\u0011\u0010n\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\bo\u0010\u0005R\u0011\u0010p\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\bq\u0010\u0005R\u0011\u0010r\u001a\u00020\u00038F¢\u0006\u0006\u001a\u0004\bs\u0010\u0005\u0088\u0001\u0002\u0092\u0001\u00020\u0003\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u008a\u0001"}, d2 = {"Lkotlin/time/Duration;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "rawValue", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "constructor-impl", "(J)J", "value", "getValue-impl", "unitDiscriminator", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "getUnitDiscriminator-impl", "(J)I", "isInNanos", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "isInNanos-impl", "(J)Z", "isInMillis", "isInMillis-impl", "storageUnit", "Lkotlin/time/DurationUnit;", "getStorageUnit-impl", "(J)Lkotlin/time/DurationUnit;", "unaryMinus", "unaryMinus-UwyO8pc", "plus", "other", "plus-LRDsOJo", "(JJ)J", "addValuesMixedRanges", "thisMillis", "otherNanos", "addValuesMixedRanges-UwyO8pc", "(JJJ)J", "minus", "minus-LRDsOJo", "times", "scale", "times-UwyO8pc", "(JI)J", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(JD)J", "div", "div-UwyO8pc", "div-LRDsOJo", "(JJ)D", "truncateTo", "unit", "truncateTo-UwyO8pc$kotlin_stdlib", "(JLkotlin/time/DurationUnit;)J", "isNegative", "isNegative-impl", "isPositive", "isPositive-impl", "isInfinite", "isInfinite-impl", "isFinite", "isFinite-impl", "absoluteValue", "getAbsoluteValue-UwyO8pc", "compareTo", "compareTo-LRDsOJo", "(JJ)I", "toComponents", RequestConfiguration.MAX_AD_CONTENT_RATING_T, "action", "Lkotlin/Function5;", "Lkotlin/ParameterName;", "name", "days", "hours", "minutes", "seconds", "nanoseconds", "toComponents-impl", "(JLkotlin/jvm/functions/Function5;)Ljava/lang/Object;", "Lkotlin/Function4;", "(JLkotlin/jvm/functions/Function4;)Ljava/lang/Object;", "Lkotlin/Function3;", "(JLkotlin/jvm/functions/Function3;)Ljava/lang/Object;", "Lkotlin/Function2;", "(JLkotlin/jvm/functions/Function2;)Ljava/lang/Object;", "hoursComponent", "getHoursComponent$annotations", "()V", "getHoursComponent-impl", "minutesComponent", "getMinutesComponent$annotations", "getMinutesComponent-impl", "secondsComponent", "getSecondsComponent$annotations", "getSecondsComponent-impl", "nanosecondsComponent", "getNanosecondsComponent$annotations", "getNanosecondsComponent-impl", "toDouble", "toDouble-impl", "(JLkotlin/time/DurationUnit;)D", "toLong", "toLong-impl", "toInt", "toInt-impl", "(JLkotlin/time/DurationUnit;)I", "inWholeDays", "getInWholeDays-impl", "inWholeHours", "getInWholeHours-impl", "inWholeMinutes", "getInWholeMinutes-impl", "inWholeSeconds", "getInWholeSeconds-impl", "inWholeMilliseconds", "getInWholeMilliseconds-impl", "inWholeMicroseconds", "getInWholeMicroseconds-impl", "inWholeNanoseconds", "getInWholeNanoseconds-impl", "toString", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "toString-impl", "(J)Ljava/lang/String;", "appendFractional", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "whole", "fractional", "fractionalSize", "isoZeroes", "appendFractional-impl", "(JLjava/lang/StringBuilder;IIILjava/lang/String;Z)V", "decimals", "(JLkotlin/time/DurationUnit;I)Ljava/lang/String;", "toIsoString", "toIsoString-impl", "equals", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "hashCode", "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
@JvmInline
|
|
@SourceDebugExtension({"SMAP\nDuration.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Duration.kt\nkotlin/time/Duration\n+ 2 _Strings.kt\nkotlin/text/StringsKt___StringsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,1062:1\n37#1:1063\n37#1:1064\n37#1:1065\n37#1:1066\n37#1:1067\n500#1:1068\n517#1:1076\n170#2,6:1069\n1#3:1075\n*S KotlinDebug\n*F\n+ 1 Duration.kt\nkotlin/time/Duration\n*L\n38#1:1063\n39#1:1064\n274#1:1065\n294#1:1066\n478#1:1067\n727#1:1068\n818#1:1076\n769#1:1069,6\n*E\n"})
|
|
/* loaded from: classes4.dex */
|
|
public final class Duration implements Comparable<Duration> {
|
|
private final long rawValue;
|
|
|
|
/* renamed from: Companion, reason: from kotlin metadata */
|
|
@NotNull
|
|
public static final Companion INSTANCE = new Companion(null);
|
|
private static final long ZERO = m1358constructorimpl(0);
|
|
private static final long INFINITE = DurationKt.access$durationOfMillis(DurationKt.MAX_MILLIS);
|
|
private static final long NEG_INFINITE = DurationKt.access$durationOfMillis(-4611686018427387903L);
|
|
|
|
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\t\n\u0002\b\u0017\n\u0002\u0010\u000e\n\u0002\b\t\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J \u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0011H\u0007J\u0015\u00100\u001a\u00020\u00052\u0006\u0010\u000f\u001a\u000201¢\u0006\u0004\b2\u00103J\u0015\u00104\u001a\u00020\u00052\u0006\u0010\u000f\u001a\u000201¢\u0006\u0004\b5\u00103J\u0015\u00106\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u000f\u001a\u000201¢\u0006\u0002\b7J\u0015\u00108\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u000f\u001a\u000201¢\u0006\u0002\b9R\u0013\u0010\u0004\u001a\u00020\u0005¢\u0006\n\n\u0002\u0010\b\u001a\u0004\b\u0006\u0010\u0007R\u0013\u0010\t\u001a\u00020\u0005¢\u0006\n\n\u0002\u0010\b\u001a\u0004\b\n\u0010\u0007R\u0016\u0010\u000b\u001a\u00020\u0005X\u0080\u0004¢\u0006\n\n\u0002\u0010\b\u001a\u0004\b\f\u0010\u0007R\u001f\u0010\u0013\u001a\u00020\u0005*\u00020\u00148Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\u0015\u0010\u0016\u001a\u0004\b\u0017\u0010\u0018R\u001f\u0010\u0013\u001a\u00020\u0005*\u00020\u00198Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\u0015\u0010\u001a\u001a\u0004\b\u0017\u0010\u001bR\u001f\u0010\u0013\u001a\u00020\u0005*\u00020\u000e8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\u0015\u0010\u001c\u001a\u0004\b\u0017\u0010\u001dR\u001f\u0010\u001e\u001a\u00020\u0005*\u00020\u00148Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\u001f\u0010\u0016\u001a\u0004\b \u0010\u0018R\u001f\u0010\u001e\u001a\u00020\u0005*\u00020\u00198Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\u001f\u0010\u001a\u001a\u0004\b \u0010\u001bR\u001f\u0010\u001e\u001a\u00020\u0005*\u00020\u000e8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\u001f\u0010\u001c\u001a\u0004\b \u0010\u001dR\u001f\u0010!\u001a\u00020\u0005*\u00020\u00148Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\"\u0010\u0016\u001a\u0004\b#\u0010\u0018R\u001f\u0010!\u001a\u00020\u0005*\u00020\u00198Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\"\u0010\u001a\u001a\u0004\b#\u0010\u001bR\u001f\u0010!\u001a\u00020\u0005*\u00020\u000e8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\"\u0010\u001c\u001a\u0004\b#\u0010\u001dR\u001f\u0010$\u001a\u00020\u0005*\u00020\u00148Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b%\u0010\u0016\u001a\u0004\b&\u0010\u0018R\u001f\u0010$\u001a\u00020\u0005*\u00020\u00198Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b%\u0010\u001a\u001a\u0004\b&\u0010\u001bR\u001f\u0010$\u001a\u00020\u0005*\u00020\u000e8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b%\u0010\u001c\u001a\u0004\b&\u0010\u001dR\u001f\u0010'\u001a\u00020\u0005*\u00020\u00148Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b(\u0010\u0016\u001a\u0004\b)\u0010\u0018R\u001f\u0010'\u001a\u00020\u0005*\u00020\u00198Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b(\u0010\u001a\u001a\u0004\b)\u0010\u001bR\u001f\u0010'\u001a\u00020\u0005*\u00020\u000e8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b(\u0010\u001c\u001a\u0004\b)\u0010\u001dR\u001f\u0010*\u001a\u00020\u0005*\u00020\u00148Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b+\u0010\u0016\u001a\u0004\b,\u0010\u0018R\u001f\u0010*\u001a\u00020\u0005*\u00020\u00198Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b+\u0010\u001a\u001a\u0004\b,\u0010\u001bR\u001f\u0010*\u001a\u00020\u0005*\u00020\u000e8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b+\u0010\u001c\u001a\u0004\b,\u0010\u001dR\u001f\u0010-\u001a\u00020\u0005*\u00020\u00148Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b.\u0010\u0016\u001a\u0004\b/\u0010\u0018R\u001f\u0010-\u001a\u00020\u0005*\u00020\u00198Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b.\u0010\u001a\u001a\u0004\b/\u0010\u001bR\u001f\u0010-\u001a\u00020\u0005*\u00020\u000e8Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b.\u0010\u001c\u001a\u0004\b/\u0010\u001d¨\u0006:"}, d2 = {"Lkotlin/time/Duration$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "ZERO", "Lkotlin/time/Duration;", "getZERO-UwyO8pc", "()J", "J", "INFINITE", "getINFINITE-UwyO8pc", "NEG_INFINITE", "getNEG_INFINITE-UwyO8pc$kotlin_stdlib", "convert", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "value", "sourceUnit", "Lkotlin/time/DurationUnit;", "targetUnit", "nanoseconds", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "getNanoseconds-UwyO8pc$annotations", "(I)V", "getNanoseconds-UwyO8pc", "(I)J", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(J)V", "(J)J", "(D)V", "(D)J", "microseconds", "getMicroseconds-UwyO8pc$annotations", "getMicroseconds-UwyO8pc", "milliseconds", "getMilliseconds-UwyO8pc$annotations", "getMilliseconds-UwyO8pc", "seconds", "getSeconds-UwyO8pc$annotations", "getSeconds-UwyO8pc", "minutes", "getMinutes-UwyO8pc$annotations", "getMinutes-UwyO8pc", "hours", "getHours-UwyO8pc$annotations", "getHours-UwyO8pc", "days", "getDays-UwyO8pc$annotations", "getDays-UwyO8pc", "parse", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "parse-UwyO8pc", "(Ljava/lang/String;)J", "parseIsoString", "parseIsoString-UwyO8pc", "parseOrNull", "parseOrNull-FghU774", "parseIsoStringOrNull", "parseIsoStringOrNull-FghU774", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
/* loaded from: classes4.dex */
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
/* renamed from: getDays-UwyO8pc, reason: not valid java name */
|
|
private final long m1406getDaysUwyO8pc(int i) {
|
|
return DurationKt.toDuration(i, DurationUnit.DAYS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getDays-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1408getDaysUwyO8pc$annotations(double d) {
|
|
}
|
|
|
|
/* renamed from: getHours-UwyO8pc, reason: not valid java name */
|
|
private final long m1412getHoursUwyO8pc(int i) {
|
|
return DurationKt.toDuration(i, DurationUnit.HOURS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getHours-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1414getHoursUwyO8pc$annotations(double d) {
|
|
}
|
|
|
|
/* renamed from: getMicroseconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1418getMicrosecondsUwyO8pc(int i) {
|
|
return DurationKt.toDuration(i, DurationUnit.MICROSECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getMicroseconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1420getMicrosecondsUwyO8pc$annotations(double d) {
|
|
}
|
|
|
|
/* renamed from: getMilliseconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1424getMillisecondsUwyO8pc(int i) {
|
|
return DurationKt.toDuration(i, DurationUnit.MILLISECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getMilliseconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1426getMillisecondsUwyO8pc$annotations(double d) {
|
|
}
|
|
|
|
/* renamed from: getMinutes-UwyO8pc, reason: not valid java name */
|
|
private final long m1430getMinutesUwyO8pc(int i) {
|
|
return DurationKt.toDuration(i, DurationUnit.MINUTES);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getMinutes-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1432getMinutesUwyO8pc$annotations(double d) {
|
|
}
|
|
|
|
/* renamed from: getNanoseconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1436getNanosecondsUwyO8pc(int i) {
|
|
return DurationKt.toDuration(i, DurationUnit.NANOSECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getNanoseconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1438getNanosecondsUwyO8pc$annotations(double d) {
|
|
}
|
|
|
|
/* renamed from: getSeconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1442getSecondsUwyO8pc(int i) {
|
|
return DurationKt.toDuration(i, DurationUnit.SECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getSeconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1444getSecondsUwyO8pc$annotations(double d) {
|
|
}
|
|
|
|
@ExperimentalTime
|
|
public final double convert(double value, @NotNull DurationUnit sourceUnit, @NotNull DurationUnit targetUnit) {
|
|
Intrinsics.checkNotNullParameter(sourceUnit, "sourceUnit");
|
|
Intrinsics.checkNotNullParameter(targetUnit, "targetUnit");
|
|
return DurationUnitKt__DurationUnitJvmKt.convertDurationUnit(value, sourceUnit, targetUnit);
|
|
}
|
|
|
|
/* renamed from: getINFINITE-UwyO8pc, reason: not valid java name */
|
|
public final long m1447getINFINITEUwyO8pc() {
|
|
return Duration.INFINITE;
|
|
}
|
|
|
|
/* renamed from: getNEG_INFINITE-UwyO8pc$kotlin_stdlib, reason: not valid java name */
|
|
public final long m1448getNEG_INFINITEUwyO8pc$kotlin_stdlib() {
|
|
return Duration.NEG_INFINITE;
|
|
}
|
|
|
|
/* renamed from: getZERO-UwyO8pc, reason: not valid java name */
|
|
public final long m1449getZEROUwyO8pc() {
|
|
return Duration.ZERO;
|
|
}
|
|
|
|
/* renamed from: parse-UwyO8pc, reason: not valid java name */
|
|
public final long m1450parseUwyO8pc(@NotNull String value) {
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
try {
|
|
return DurationKt.access$parseDuration(value, false);
|
|
} catch (IllegalArgumentException e) {
|
|
throw new IllegalArgumentException(android.support.v4.media.a.l("Invalid duration string format: '", value, "'."), e);
|
|
}
|
|
}
|
|
|
|
/* renamed from: parseIsoString-UwyO8pc, reason: not valid java name */
|
|
public final long m1451parseIsoStringUwyO8pc(@NotNull String value) {
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
try {
|
|
return DurationKt.access$parseDuration(value, true);
|
|
} catch (IllegalArgumentException e) {
|
|
throw new IllegalArgumentException(android.support.v4.media.a.l("Invalid ISO duration string format: '", value, "'."), e);
|
|
}
|
|
}
|
|
|
|
@Nullable
|
|
/* renamed from: parseIsoStringOrNull-FghU774, reason: not valid java name */
|
|
public final Duration m1452parseIsoStringOrNullFghU774(@NotNull String value) {
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
try {
|
|
return Duration.m1356boximpl(DurationKt.access$parseDuration(value, true));
|
|
} catch (IllegalArgumentException unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
@Nullable
|
|
/* renamed from: parseOrNull-FghU774, reason: not valid java name */
|
|
public final Duration m1453parseOrNullFghU774(@NotNull String value) {
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
try {
|
|
return Duration.m1356boximpl(DurationKt.access$parseDuration(value, false));
|
|
} catch (IllegalArgumentException unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
/* renamed from: getDays-UwyO8pc, reason: not valid java name */
|
|
private final long m1407getDaysUwyO8pc(long j) {
|
|
return DurationKt.toDuration(j, DurationUnit.DAYS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getDays-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1409getDaysUwyO8pc$annotations(int i) {
|
|
}
|
|
|
|
/* renamed from: getHours-UwyO8pc, reason: not valid java name */
|
|
private final long m1413getHoursUwyO8pc(long j) {
|
|
return DurationKt.toDuration(j, DurationUnit.HOURS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getHours-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1415getHoursUwyO8pc$annotations(int i) {
|
|
}
|
|
|
|
/* renamed from: getMicroseconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1419getMicrosecondsUwyO8pc(long j) {
|
|
return DurationKt.toDuration(j, DurationUnit.MICROSECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getMicroseconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1421getMicrosecondsUwyO8pc$annotations(int i) {
|
|
}
|
|
|
|
/* renamed from: getMilliseconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1425getMillisecondsUwyO8pc(long j) {
|
|
return DurationKt.toDuration(j, DurationUnit.MILLISECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getMilliseconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1427getMillisecondsUwyO8pc$annotations(int i) {
|
|
}
|
|
|
|
/* renamed from: getMinutes-UwyO8pc, reason: not valid java name */
|
|
private final long m1431getMinutesUwyO8pc(long j) {
|
|
return DurationKt.toDuration(j, DurationUnit.MINUTES);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getMinutes-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1433getMinutesUwyO8pc$annotations(int i) {
|
|
}
|
|
|
|
/* renamed from: getNanoseconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1437getNanosecondsUwyO8pc(long j) {
|
|
return DurationKt.toDuration(j, DurationUnit.NANOSECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getNanoseconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1439getNanosecondsUwyO8pc$annotations(int i) {
|
|
}
|
|
|
|
/* renamed from: getSeconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1443getSecondsUwyO8pc(long j) {
|
|
return DurationKt.toDuration(j, DurationUnit.SECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getSeconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1445getSecondsUwyO8pc$annotations(int i) {
|
|
}
|
|
|
|
/* renamed from: getDays-UwyO8pc, reason: not valid java name */
|
|
private final long m1405getDaysUwyO8pc(double d) {
|
|
return DurationKt.toDuration(d, DurationUnit.DAYS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getDays-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1410getDaysUwyO8pc$annotations(long j) {
|
|
}
|
|
|
|
/* renamed from: getHours-UwyO8pc, reason: not valid java name */
|
|
private final long m1411getHoursUwyO8pc(double d) {
|
|
return DurationKt.toDuration(d, DurationUnit.HOURS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getHours-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1416getHoursUwyO8pc$annotations(long j) {
|
|
}
|
|
|
|
/* renamed from: getMicroseconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1417getMicrosecondsUwyO8pc(double d) {
|
|
return DurationKt.toDuration(d, DurationUnit.MICROSECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getMicroseconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1422getMicrosecondsUwyO8pc$annotations(long j) {
|
|
}
|
|
|
|
/* renamed from: getMilliseconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1423getMillisecondsUwyO8pc(double d) {
|
|
return DurationKt.toDuration(d, DurationUnit.MILLISECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getMilliseconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1428getMillisecondsUwyO8pc$annotations(long j) {
|
|
}
|
|
|
|
/* renamed from: getMinutes-UwyO8pc, reason: not valid java name */
|
|
private final long m1429getMinutesUwyO8pc(double d) {
|
|
return DurationKt.toDuration(d, DurationUnit.MINUTES);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getMinutes-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1434getMinutesUwyO8pc$annotations(long j) {
|
|
}
|
|
|
|
/* renamed from: getNanoseconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1435getNanosecondsUwyO8pc(double d) {
|
|
return DurationKt.toDuration(d, DurationUnit.NANOSECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getNanoseconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1440getNanosecondsUwyO8pc$annotations(long j) {
|
|
}
|
|
|
|
/* renamed from: getSeconds-UwyO8pc, reason: not valid java name */
|
|
private final long m1441getSecondsUwyO8pc(double d) {
|
|
return DurationKt.toDuration(d, DurationUnit.SECONDS);
|
|
}
|
|
|
|
@InlineOnly
|
|
/* renamed from: getSeconds-UwyO8pc$annotations, reason: not valid java name */
|
|
public static /* synthetic */ void m1446getSecondsUwyO8pc$annotations(long j) {
|
|
}
|
|
}
|
|
|
|
private /* synthetic */ Duration(long j) {
|
|
this.rawValue = j;
|
|
}
|
|
|
|
/* renamed from: addValuesMixedRanges-UwyO8pc, reason: not valid java name */
|
|
private static final long m1354addValuesMixedRangesUwyO8pc(long j, long j2, long j3) {
|
|
long access$nanosToMillis = DurationKt.access$nanosToMillis(j3);
|
|
long j4 = j2 + access$nanosToMillis;
|
|
if (-4611686018426L <= j4 && j4 < 4611686018427L) {
|
|
return DurationKt.access$durationOfNanos(DurationKt.access$millisToNanos(j4) + (j3 - DurationKt.access$millisToNanos(access$nanosToMillis)));
|
|
}
|
|
return DurationKt.access$durationOfMillis(RangesKt.coerceIn(j4, -4611686018427387903L, DurationKt.MAX_MILLIS));
|
|
}
|
|
|
|
/* renamed from: appendFractional-impl, reason: not valid java name */
|
|
private static final void m1355appendFractionalimpl(long j, StringBuilder sb, int i, int i2, int i3, String str, boolean z) {
|
|
String padStart;
|
|
sb.append(i);
|
|
if (i2 != 0) {
|
|
sb.append('.');
|
|
padStart = StringsKt__StringsKt.padStart(String.valueOf(i2), i3, '0');
|
|
int i4 = -1;
|
|
int length = padStart.length() - 1;
|
|
if (length >= 0) {
|
|
while (true) {
|
|
int i5 = length - 1;
|
|
if (padStart.charAt(length) != '0') {
|
|
i4 = length;
|
|
break;
|
|
} else if (i5 < 0) {
|
|
break;
|
|
} else {
|
|
length = i5;
|
|
}
|
|
}
|
|
}
|
|
int i6 = i4 + 1;
|
|
if (!z && i6 < 3) {
|
|
sb.append((CharSequence) padStart, 0, i6);
|
|
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
|
} else {
|
|
sb.append((CharSequence) padStart, 0, ((i4 + 3) / 3) * 3);
|
|
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
|
}
|
|
}
|
|
sb.append(str);
|
|
}
|
|
|
|
/* renamed from: box-impl, reason: not valid java name */
|
|
public static final /* synthetic */ Duration m1356boximpl(long j) {
|
|
return new Duration(j);
|
|
}
|
|
|
|
/* renamed from: constructor-impl, reason: not valid java name */
|
|
public static long m1358constructorimpl(long j) {
|
|
if (DurationJvmKt.getDurationAssertionsEnabled()) {
|
|
if (m1382isInNanosimpl(j)) {
|
|
long m1378getValueimpl = m1378getValueimpl(j);
|
|
if (-4611686018426999999L <= m1378getValueimpl && m1378getValueimpl < 4611686018427000000L) {
|
|
return j;
|
|
}
|
|
throw new AssertionError(android.support.v4.media.a.o(new StringBuilder(), m1378getValueimpl(j), " ns is out of nanoseconds range"));
|
|
}
|
|
long m1378getValueimpl2 = m1378getValueimpl(j);
|
|
if (-4611686018427387903L <= m1378getValueimpl2 && m1378getValueimpl2 < 4611686018427387904L) {
|
|
long m1378getValueimpl3 = m1378getValueimpl(j);
|
|
if (-4611686018426L <= m1378getValueimpl3) {
|
|
if (m1378getValueimpl3 >= 4611686018427L) {
|
|
return j;
|
|
}
|
|
throw new AssertionError(android.support.v4.media.a.o(new StringBuilder(), m1378getValueimpl(j), " ms is denormalized"));
|
|
}
|
|
return j;
|
|
}
|
|
throw new AssertionError(android.support.v4.media.a.o(new StringBuilder(), m1378getValueimpl(j), " ms is out of milliseconds range"));
|
|
}
|
|
return j;
|
|
}
|
|
|
|
/* renamed from: div-LRDsOJo, reason: not valid java name */
|
|
public static final double m1359divLRDsOJo(long j, long j2) {
|
|
Comparable maxOf;
|
|
maxOf = ComparisonsKt___ComparisonsJvmKt.maxOf(m1376getStorageUnitimpl(j), m1376getStorageUnitimpl(j2));
|
|
DurationUnit durationUnit = (DurationUnit) maxOf;
|
|
return m1394toDoubleimpl(j, durationUnit) / m1394toDoubleimpl(j2, durationUnit);
|
|
}
|
|
|
|
/* renamed from: div-UwyO8pc, reason: not valid java name */
|
|
public static final long m1361divUwyO8pc(long j, int i) {
|
|
if (i == 0) {
|
|
if (m1385isPositiveimpl(j)) {
|
|
return INFINITE;
|
|
}
|
|
if (m1384isNegativeimpl(j)) {
|
|
return NEG_INFINITE;
|
|
}
|
|
throw new IllegalArgumentException("Dividing zero duration by zero yields an undefined result.");
|
|
}
|
|
if (m1382isInNanosimpl(j)) {
|
|
return DurationKt.access$durationOfNanos(m1378getValueimpl(j) / i);
|
|
}
|
|
if (m1383isInfiniteimpl(j)) {
|
|
return m1389timesUwyO8pc(j, MathKt.getSign(i));
|
|
}
|
|
long j2 = i;
|
|
long m1378getValueimpl = m1378getValueimpl(j) / j2;
|
|
if (-4611686018426L <= m1378getValueimpl && m1378getValueimpl < 4611686018427L) {
|
|
return DurationKt.access$durationOfNanos(DurationKt.access$millisToNanos(m1378getValueimpl) + (DurationKt.access$millisToNanos(m1378getValueimpl(j) - (m1378getValueimpl * j2)) / j2));
|
|
}
|
|
return DurationKt.access$durationOfMillis(m1378getValueimpl);
|
|
}
|
|
|
|
/* renamed from: equals-impl, reason: not valid java name */
|
|
public static boolean m1362equalsimpl(long j, Object obj) {
|
|
return (obj instanceof Duration) && j == ((Duration) obj).getRawValue();
|
|
}
|
|
|
|
/* renamed from: equals-impl0, reason: not valid java name */
|
|
public static final boolean m1363equalsimpl0(long j, long j2) {
|
|
return j == j2;
|
|
}
|
|
|
|
/* renamed from: getAbsoluteValue-UwyO8pc, reason: not valid java name */
|
|
public static final long m1364getAbsoluteValueUwyO8pc(long j) {
|
|
if (m1384isNegativeimpl(j)) {
|
|
return m1402unaryMinusUwyO8pc(j);
|
|
}
|
|
return j;
|
|
}
|
|
|
|
@PublishedApi
|
|
public static /* synthetic */ void getHoursComponent$annotations() {
|
|
}
|
|
|
|
/* renamed from: getHoursComponent-impl, reason: not valid java name */
|
|
public static final int m1365getHoursComponentimpl(long j) {
|
|
if (m1383isInfiniteimpl(j)) {
|
|
return 0;
|
|
}
|
|
return (int) (m1367getInWholeHoursimpl(j) % 24);
|
|
}
|
|
|
|
/* renamed from: getInWholeDays-impl, reason: not valid java name */
|
|
public static final long m1366getInWholeDaysimpl(long j) {
|
|
return m1397toLongimpl(j, DurationUnit.DAYS);
|
|
}
|
|
|
|
/* renamed from: getInWholeHours-impl, reason: not valid java name */
|
|
public static final long m1367getInWholeHoursimpl(long j) {
|
|
return m1397toLongimpl(j, DurationUnit.HOURS);
|
|
}
|
|
|
|
/* renamed from: getInWholeMicroseconds-impl, reason: not valid java name */
|
|
public static final long m1368getInWholeMicrosecondsimpl(long j) {
|
|
return m1397toLongimpl(j, DurationUnit.MICROSECONDS);
|
|
}
|
|
|
|
/* renamed from: getInWholeMilliseconds-impl, reason: not valid java name */
|
|
public static final long m1369getInWholeMillisecondsimpl(long j) {
|
|
if (m1381isInMillisimpl(j) && m1380isFiniteimpl(j)) {
|
|
return m1378getValueimpl(j);
|
|
}
|
|
return m1397toLongimpl(j, DurationUnit.MILLISECONDS);
|
|
}
|
|
|
|
/* renamed from: getInWholeMinutes-impl, reason: not valid java name */
|
|
public static final long m1370getInWholeMinutesimpl(long j) {
|
|
return m1397toLongimpl(j, DurationUnit.MINUTES);
|
|
}
|
|
|
|
/* renamed from: getInWholeNanoseconds-impl, reason: not valid java name */
|
|
public static final long m1371getInWholeNanosecondsimpl(long j) {
|
|
long m1378getValueimpl = m1378getValueimpl(j);
|
|
if (m1382isInNanosimpl(j)) {
|
|
return m1378getValueimpl;
|
|
}
|
|
if (m1378getValueimpl > 9223372036854L) {
|
|
return LongCompanionObject.MAX_VALUE;
|
|
}
|
|
if (m1378getValueimpl < -9223372036854L) {
|
|
return Long.MIN_VALUE;
|
|
}
|
|
return DurationKt.access$millisToNanos(m1378getValueimpl);
|
|
}
|
|
|
|
/* renamed from: getInWholeSeconds-impl, reason: not valid java name */
|
|
public static final long m1372getInWholeSecondsimpl(long j) {
|
|
return m1397toLongimpl(j, DurationUnit.SECONDS);
|
|
}
|
|
|
|
@PublishedApi
|
|
public static /* synthetic */ void getMinutesComponent$annotations() {
|
|
}
|
|
|
|
/* renamed from: getMinutesComponent-impl, reason: not valid java name */
|
|
public static final int m1373getMinutesComponentimpl(long j) {
|
|
if (m1383isInfiniteimpl(j)) {
|
|
return 0;
|
|
}
|
|
return (int) (m1370getInWholeMinutesimpl(j) % 60);
|
|
}
|
|
|
|
@PublishedApi
|
|
public static /* synthetic */ void getNanosecondsComponent$annotations() {
|
|
}
|
|
|
|
/* renamed from: getNanosecondsComponent-impl, reason: not valid java name */
|
|
public static final int m1374getNanosecondsComponentimpl(long j) {
|
|
long m1378getValueimpl;
|
|
if (m1383isInfiniteimpl(j)) {
|
|
return 0;
|
|
}
|
|
if (m1381isInMillisimpl(j)) {
|
|
m1378getValueimpl = DurationKt.access$millisToNanos(m1378getValueimpl(j) % 1000);
|
|
} else {
|
|
m1378getValueimpl = m1378getValueimpl(j) % InstantKt.NANOS_PER_SECOND;
|
|
}
|
|
return (int) m1378getValueimpl;
|
|
}
|
|
|
|
@PublishedApi
|
|
public static /* synthetic */ void getSecondsComponent$annotations() {
|
|
}
|
|
|
|
/* renamed from: getSecondsComponent-impl, reason: not valid java name */
|
|
public static final int m1375getSecondsComponentimpl(long j) {
|
|
if (m1383isInfiniteimpl(j)) {
|
|
return 0;
|
|
}
|
|
return (int) (m1372getInWholeSecondsimpl(j) % 60);
|
|
}
|
|
|
|
/* renamed from: getStorageUnit-impl, reason: not valid java name */
|
|
private static final DurationUnit m1376getStorageUnitimpl(long j) {
|
|
if (m1382isInNanosimpl(j)) {
|
|
return DurationUnit.NANOSECONDS;
|
|
}
|
|
return DurationUnit.MILLISECONDS;
|
|
}
|
|
|
|
/* renamed from: getUnitDiscriminator-impl, reason: not valid java name */
|
|
private static final int m1377getUnitDiscriminatorimpl(long j) {
|
|
return ((int) j) & 1;
|
|
}
|
|
|
|
/* renamed from: getValue-impl, reason: not valid java name */
|
|
private static final long m1378getValueimpl(long j) {
|
|
return j >> 1;
|
|
}
|
|
|
|
/* renamed from: hashCode-impl, reason: not valid java name */
|
|
public static int m1379hashCodeimpl(long j) {
|
|
return (int) (j ^ (j >>> 32));
|
|
}
|
|
|
|
/* renamed from: isFinite-impl, reason: not valid java name */
|
|
public static final boolean m1380isFiniteimpl(long j) {
|
|
return !m1383isInfiniteimpl(j);
|
|
}
|
|
|
|
/* renamed from: isInMillis-impl, reason: not valid java name */
|
|
private static final boolean m1381isInMillisimpl(long j) {
|
|
return (((int) j) & 1) == 1;
|
|
}
|
|
|
|
/* renamed from: isInNanos-impl, reason: not valid java name */
|
|
private static final boolean m1382isInNanosimpl(long j) {
|
|
return (((int) j) & 1) == 0;
|
|
}
|
|
|
|
/* renamed from: isInfinite-impl, reason: not valid java name */
|
|
public static final boolean m1383isInfiniteimpl(long j) {
|
|
if (j != INFINITE && j != NEG_INFINITE) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
/* renamed from: isNegative-impl, reason: not valid java name */
|
|
public static final boolean m1384isNegativeimpl(long j) {
|
|
return j < 0;
|
|
}
|
|
|
|
/* renamed from: isPositive-impl, reason: not valid java name */
|
|
public static final boolean m1385isPositiveimpl(long j) {
|
|
return j > 0;
|
|
}
|
|
|
|
/* renamed from: minus-LRDsOJo, reason: not valid java name */
|
|
public static final long m1386minusLRDsOJo(long j, long j2) {
|
|
return m1387plusLRDsOJo(j, m1402unaryMinusUwyO8pc(j2));
|
|
}
|
|
|
|
/* renamed from: plus-LRDsOJo, reason: not valid java name */
|
|
public static final long m1387plusLRDsOJo(long j, long j2) {
|
|
if (m1383isInfiniteimpl(j)) {
|
|
if (!m1380isFiniteimpl(j2) && (j2 ^ j) < 0) {
|
|
throw new IllegalArgumentException("Summing infinite durations of different signs yields an undefined result.");
|
|
}
|
|
return j;
|
|
}
|
|
if (m1383isInfiniteimpl(j2)) {
|
|
return j2;
|
|
}
|
|
if ((((int) j) & 1) == (((int) j2) & 1)) {
|
|
long m1378getValueimpl = m1378getValueimpl(j) + m1378getValueimpl(j2);
|
|
if (m1382isInNanosimpl(j)) {
|
|
return DurationKt.access$durationOfNanosNormalized(m1378getValueimpl);
|
|
}
|
|
return DurationKt.access$durationOfMillisNormalized(m1378getValueimpl);
|
|
}
|
|
if (m1381isInMillisimpl(j)) {
|
|
return m1354addValuesMixedRangesUwyO8pc(j, m1378getValueimpl(j), m1378getValueimpl(j2));
|
|
}
|
|
return m1354addValuesMixedRangesUwyO8pc(j, m1378getValueimpl(j2), m1378getValueimpl(j));
|
|
}
|
|
|
|
/* renamed from: times-UwyO8pc, reason: not valid java name */
|
|
public static final long m1389timesUwyO8pc(long j, int i) {
|
|
if (m1383isInfiniteimpl(j)) {
|
|
if (i != 0) {
|
|
return i > 0 ? j : m1402unaryMinusUwyO8pc(j);
|
|
}
|
|
throw new IllegalArgumentException("Multiplying infinite duration by zero yields an undefined result.");
|
|
}
|
|
if (i == 0) {
|
|
return ZERO;
|
|
}
|
|
long m1378getValueimpl = m1378getValueimpl(j);
|
|
long j2 = i;
|
|
long j3 = m1378getValueimpl * j2;
|
|
if (!m1382isInNanosimpl(j)) {
|
|
if (j3 / j2 == m1378getValueimpl) {
|
|
return DurationKt.access$durationOfMillis(RangesKt.c(j3, new LongRange(-4611686018427387903L, DurationKt.MAX_MILLIS)));
|
|
}
|
|
return MathKt.getSign(i) * MathKt.getSign(m1378getValueimpl) > 0 ? INFINITE : NEG_INFINITE;
|
|
}
|
|
if (-2147483647L <= m1378getValueimpl && m1378getValueimpl < 2147483648L) {
|
|
return DurationKt.access$durationOfNanos(j3);
|
|
}
|
|
if (j3 / j2 == m1378getValueimpl) {
|
|
return DurationKt.access$durationOfNanosNormalized(j3);
|
|
}
|
|
long access$nanosToMillis = DurationKt.access$nanosToMillis(m1378getValueimpl);
|
|
long j4 = access$nanosToMillis * j2;
|
|
long access$nanosToMillis2 = DurationKt.access$nanosToMillis((m1378getValueimpl - DurationKt.access$millisToNanos(access$nanosToMillis)) * j2) + j4;
|
|
if (j4 / j2 != access$nanosToMillis || (access$nanosToMillis2 ^ j4) < 0) {
|
|
return MathKt.getSign(i) * MathKt.getSign(m1378getValueimpl) > 0 ? INFINITE : NEG_INFINITE;
|
|
}
|
|
return DurationKt.access$durationOfMillis(RangesKt.c(access$nanosToMillis2, new LongRange(-4611686018427387903L, DurationKt.MAX_MILLIS)));
|
|
}
|
|
|
|
/* renamed from: toComponents-impl, reason: not valid java name */
|
|
public static final <T> T m1393toComponentsimpl(long j, @NotNull Function5<? super Long, ? super Integer, ? super Integer, ? super Integer, ? super Integer, ? extends T> action) {
|
|
Intrinsics.checkNotNullParameter(action, "action");
|
|
return action.invoke(Long.valueOf(m1366getInWholeDaysimpl(j)), Integer.valueOf(m1365getHoursComponentimpl(j)), Integer.valueOf(m1373getMinutesComponentimpl(j)), Integer.valueOf(m1375getSecondsComponentimpl(j)), Integer.valueOf(m1374getNanosecondsComponentimpl(j)));
|
|
}
|
|
|
|
/* renamed from: toDouble-impl, reason: not valid java name */
|
|
public static final double m1394toDoubleimpl(long j, @NotNull DurationUnit unit) {
|
|
Intrinsics.checkNotNullParameter(unit, "unit");
|
|
if (j == INFINITE) {
|
|
return Double.POSITIVE_INFINITY;
|
|
}
|
|
if (j == NEG_INFINITE) {
|
|
return Double.NEGATIVE_INFINITY;
|
|
}
|
|
return DurationUnitKt__DurationUnitJvmKt.convertDurationUnit(m1378getValueimpl(j), m1376getStorageUnitimpl(j), unit);
|
|
}
|
|
|
|
/* renamed from: toInt-impl, reason: not valid java name */
|
|
public static final int m1395toIntimpl(long j, @NotNull DurationUnit unit) {
|
|
Intrinsics.checkNotNullParameter(unit, "unit");
|
|
return (int) RangesKt.coerceIn(m1397toLongimpl(j, unit), -2147483648L, 2147483647L);
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: toIsoString-impl, reason: not valid java name */
|
|
public static final String m1396toIsoStringimpl(long j) {
|
|
long j2;
|
|
boolean z;
|
|
boolean z2;
|
|
StringBuilder sb = new StringBuilder();
|
|
if (m1384isNegativeimpl(j)) {
|
|
sb.append('-');
|
|
}
|
|
sb.append("PT");
|
|
long m1364getAbsoluteValueUwyO8pc = m1364getAbsoluteValueUwyO8pc(j);
|
|
long m1367getInWholeHoursimpl = m1367getInWholeHoursimpl(m1364getAbsoluteValueUwyO8pc);
|
|
int m1373getMinutesComponentimpl = m1373getMinutesComponentimpl(m1364getAbsoluteValueUwyO8pc);
|
|
int m1375getSecondsComponentimpl = m1375getSecondsComponentimpl(m1364getAbsoluteValueUwyO8pc);
|
|
int m1374getNanosecondsComponentimpl = m1374getNanosecondsComponentimpl(m1364getAbsoluteValueUwyO8pc);
|
|
if (m1383isInfiniteimpl(j)) {
|
|
j2 = 9999999999999L;
|
|
} else {
|
|
j2 = m1367getInWholeHoursimpl;
|
|
}
|
|
boolean z3 = false;
|
|
if (j2 != 0) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (m1375getSecondsComponentimpl == 0 && m1374getNanosecondsComponentimpl == 0) {
|
|
z2 = false;
|
|
} else {
|
|
z2 = true;
|
|
}
|
|
if (m1373getMinutesComponentimpl != 0 || (z2 && z)) {
|
|
z3 = true;
|
|
}
|
|
if (z) {
|
|
sb.append(j2);
|
|
sb.append('H');
|
|
}
|
|
if (z3) {
|
|
sb.append(m1373getMinutesComponentimpl);
|
|
sb.append('M');
|
|
}
|
|
if (z2 || (!z && !z3)) {
|
|
m1355appendFractionalimpl(j, sb, m1375getSecondsComponentimpl, m1374getNanosecondsComponentimpl, 9, "S", true);
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
/* renamed from: toLong-impl, reason: not valid java name */
|
|
public static final long m1397toLongimpl(long j, @NotNull DurationUnit unit) {
|
|
Intrinsics.checkNotNullParameter(unit, "unit");
|
|
if (j == INFINITE) {
|
|
return LongCompanionObject.MAX_VALUE;
|
|
}
|
|
if (j == NEG_INFINITE) {
|
|
return Long.MIN_VALUE;
|
|
}
|
|
return DurationUnitKt__DurationUnitJvmKt.convertDurationUnit(m1378getValueimpl(j), m1376getStorageUnitimpl(j), unit);
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: toString-impl, reason: not valid java name */
|
|
public static String m1398toStringimpl(long j) {
|
|
if (j == 0) {
|
|
return "0s";
|
|
}
|
|
if (j == INFINITE) {
|
|
return "Infinity";
|
|
}
|
|
if (j == NEG_INFINITE) {
|
|
return "-Infinity";
|
|
}
|
|
boolean m1384isNegativeimpl = m1384isNegativeimpl(j);
|
|
StringBuilder sb = new StringBuilder();
|
|
if (m1384isNegativeimpl) {
|
|
sb.append('-');
|
|
}
|
|
long m1364getAbsoluteValueUwyO8pc = m1364getAbsoluteValueUwyO8pc(j);
|
|
long m1366getInWholeDaysimpl = m1366getInWholeDaysimpl(m1364getAbsoluteValueUwyO8pc);
|
|
int m1365getHoursComponentimpl = m1365getHoursComponentimpl(m1364getAbsoluteValueUwyO8pc);
|
|
int m1373getMinutesComponentimpl = m1373getMinutesComponentimpl(m1364getAbsoluteValueUwyO8pc);
|
|
int m1375getSecondsComponentimpl = m1375getSecondsComponentimpl(m1364getAbsoluteValueUwyO8pc);
|
|
int m1374getNanosecondsComponentimpl = m1374getNanosecondsComponentimpl(m1364getAbsoluteValueUwyO8pc);
|
|
int i = 0;
|
|
boolean z = m1366getInWholeDaysimpl != 0;
|
|
boolean z2 = m1365getHoursComponentimpl != 0;
|
|
boolean z3 = m1373getMinutesComponentimpl != 0;
|
|
boolean z4 = (m1375getSecondsComponentimpl == 0 && m1374getNanosecondsComponentimpl == 0) ? false : true;
|
|
if (z) {
|
|
sb.append(m1366getInWholeDaysimpl);
|
|
sb.append('d');
|
|
i = 1;
|
|
}
|
|
if (z2 || (z && (z3 || z4))) {
|
|
int i2 = i + 1;
|
|
if (i > 0) {
|
|
sb.append(' ');
|
|
}
|
|
sb.append(m1365getHoursComponentimpl);
|
|
sb.append('h');
|
|
i = i2;
|
|
}
|
|
if (z3 || (z4 && (z2 || z))) {
|
|
int i3 = i + 1;
|
|
if (i > 0) {
|
|
sb.append(' ');
|
|
}
|
|
sb.append(m1373getMinutesComponentimpl);
|
|
sb.append('m');
|
|
i = i3;
|
|
}
|
|
if (z4) {
|
|
int i4 = i + 1;
|
|
if (i > 0) {
|
|
sb.append(' ');
|
|
}
|
|
if (m1375getSecondsComponentimpl != 0 || z || z2 || z3) {
|
|
m1355appendFractionalimpl(j, sb, m1375getSecondsComponentimpl, m1374getNanosecondsComponentimpl, 9, "s", false);
|
|
} else if (m1374getNanosecondsComponentimpl >= 1000000) {
|
|
m1355appendFractionalimpl(j, sb, m1374getNanosecondsComponentimpl / DurationKt.NANOS_IN_MILLIS, m1374getNanosecondsComponentimpl % DurationKt.NANOS_IN_MILLIS, 6, "ms", false);
|
|
} else if (m1374getNanosecondsComponentimpl >= 1000) {
|
|
m1355appendFractionalimpl(j, sb, m1374getNanosecondsComponentimpl / 1000, m1374getNanosecondsComponentimpl % 1000, 3, "us", false);
|
|
} else {
|
|
sb.append(m1374getNanosecondsComponentimpl);
|
|
sb.append("ns");
|
|
}
|
|
i = i4;
|
|
}
|
|
if (m1384isNegativeimpl && i > 1) {
|
|
sb.insert(1, '(').append(')');
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
/* renamed from: toString-impl$default, reason: not valid java name */
|
|
public static /* synthetic */ String m1400toStringimpl$default(long j, DurationUnit durationUnit, int i, int i2, Object obj) {
|
|
if ((i2 & 2) != 0) {
|
|
i = 0;
|
|
}
|
|
return m1399toStringimpl(j, durationUnit, i);
|
|
}
|
|
|
|
/* renamed from: truncateTo-UwyO8pc$kotlin_stdlib, reason: not valid java name */
|
|
public static final long m1401truncateToUwyO8pc$kotlin_stdlib(long j, @NotNull DurationUnit unit) {
|
|
Intrinsics.checkNotNullParameter(unit, "unit");
|
|
DurationUnit m1376getStorageUnitimpl = m1376getStorageUnitimpl(j);
|
|
if (unit.compareTo(m1376getStorageUnitimpl) > 0 && !m1383isInfiniteimpl(j)) {
|
|
return DurationKt.toDuration(m1378getValueimpl(j) - (m1378getValueimpl(j) % DurationUnitKt__DurationUnitJvmKt.convertDurationUnit(1L, unit, m1376getStorageUnitimpl)), m1376getStorageUnitimpl);
|
|
}
|
|
return j;
|
|
}
|
|
|
|
/* renamed from: unaryMinus-UwyO8pc, reason: not valid java name */
|
|
public static final long m1402unaryMinusUwyO8pc(long j) {
|
|
return DurationKt.access$durationOf(-m1378getValueimpl(j), ((int) j) & 1);
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
public /* bridge */ /* synthetic */ int compareTo(Duration duration) {
|
|
return m1403compareToLRDsOJo(duration.getRawValue());
|
|
}
|
|
|
|
/* renamed from: compareTo-LRDsOJo, reason: not valid java name */
|
|
public int m1403compareToLRDsOJo(long j) {
|
|
return m1357compareToLRDsOJo(this.rawValue, j);
|
|
}
|
|
|
|
public boolean equals(Object other) {
|
|
return m1362equalsimpl(this.rawValue, other);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return m1379hashCodeimpl(this.rawValue);
|
|
}
|
|
|
|
@NotNull
|
|
public String toString() {
|
|
return m1398toStringimpl(this.rawValue);
|
|
}
|
|
|
|
/* renamed from: unbox-impl, reason: not valid java name and from getter */
|
|
public final /* synthetic */ long getRawValue() {
|
|
return this.rawValue;
|
|
}
|
|
|
|
/* renamed from: compareTo-LRDsOJo, reason: not valid java name */
|
|
public static int m1357compareToLRDsOJo(long j, long j2) {
|
|
long j3 = j ^ j2;
|
|
if (j3 < 0 || (((int) j3) & 1) == 0) {
|
|
return Intrinsics.compare(j, j2);
|
|
}
|
|
int i = (((int) j) & 1) - (((int) j2) & 1);
|
|
return m1384isNegativeimpl(j) ? -i : i;
|
|
}
|
|
|
|
/* renamed from: toComponents-impl, reason: not valid java name */
|
|
public static final <T> T m1392toComponentsimpl(long j, @NotNull Function4<? super Long, ? super Integer, ? super Integer, ? super Integer, ? extends T> action) {
|
|
Intrinsics.checkNotNullParameter(action, "action");
|
|
return action.invoke(Long.valueOf(m1367getInWholeHoursimpl(j)), Integer.valueOf(m1373getMinutesComponentimpl(j)), Integer.valueOf(m1375getSecondsComponentimpl(j)), Integer.valueOf(m1374getNanosecondsComponentimpl(j)));
|
|
}
|
|
|
|
/* renamed from: toComponents-impl, reason: not valid java name */
|
|
public static final <T> T m1391toComponentsimpl(long j, @NotNull Function3<? super Long, ? super Integer, ? super Integer, ? extends T> action) {
|
|
Intrinsics.checkNotNullParameter(action, "action");
|
|
return action.invoke(Long.valueOf(m1370getInWholeMinutesimpl(j)), Integer.valueOf(m1375getSecondsComponentimpl(j)), Integer.valueOf(m1374getNanosecondsComponentimpl(j)));
|
|
}
|
|
|
|
/* renamed from: toComponents-impl, reason: not valid java name */
|
|
public static final <T> T m1390toComponentsimpl(long j, @NotNull Function2<? super Long, ? super Integer, ? extends T> action) {
|
|
Intrinsics.checkNotNullParameter(action, "action");
|
|
return action.invoke(Long.valueOf(m1372getInWholeSecondsimpl(j)), Integer.valueOf(m1374getNanosecondsComponentimpl(j)));
|
|
}
|
|
|
|
/* renamed from: div-UwyO8pc, reason: not valid java name */
|
|
public static final long m1360divUwyO8pc(long j, double d) {
|
|
int roundToInt = MathKt.roundToInt(d);
|
|
if (roundToInt == d && roundToInt != 0) {
|
|
return m1361divUwyO8pc(j, roundToInt);
|
|
}
|
|
DurationUnit m1376getStorageUnitimpl = m1376getStorageUnitimpl(j);
|
|
return DurationKt.toDuration(m1394toDoubleimpl(j, m1376getStorageUnitimpl) / d, m1376getStorageUnitimpl);
|
|
}
|
|
|
|
/* renamed from: times-UwyO8pc, reason: not valid java name */
|
|
public static final long m1388timesUwyO8pc(long j, double d) {
|
|
int roundToInt = MathKt.roundToInt(d);
|
|
if (roundToInt == d) {
|
|
return m1389timesUwyO8pc(j, roundToInt);
|
|
}
|
|
DurationUnit m1376getStorageUnitimpl = m1376getStorageUnitimpl(j);
|
|
return DurationKt.toDuration(m1394toDoubleimpl(j, m1376getStorageUnitimpl) * d, m1376getStorageUnitimpl);
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: toString-impl, reason: not valid java name */
|
|
public static final String m1399toStringimpl(long j, @NotNull DurationUnit unit, int i) {
|
|
Intrinsics.checkNotNullParameter(unit, "unit");
|
|
if (i >= 0) {
|
|
double m1394toDoubleimpl = m1394toDoubleimpl(j, unit);
|
|
if (Double.isInfinite(m1394toDoubleimpl)) {
|
|
return String.valueOf(m1394toDoubleimpl);
|
|
}
|
|
return DurationJvmKt.formatToExactDecimals(m1394toDoubleimpl, RangesKt.coerceAtMost(i, 12)) + DurationUnitKt__DurationUnitKt.shortName(unit);
|
|
}
|
|
throw new IllegalArgumentException(android.support.v4.media.a.e(i, "decimals must be not negative, but was ").toString());
|
|
}
|
|
}
|