- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
94 lines
2.2 KiB
Java
94 lines
2.2 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.mbridge.msdk.playercommon.exoplayer2.C;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class ho {
|
|
private long a;
|
|
private long b;
|
|
private long c;
|
|
private final ThreadLocal d = new ThreadLocal();
|
|
|
|
public synchronized long a(long j) {
|
|
if (j == C.TIME_UNSET) {
|
|
return C.TIME_UNSET;
|
|
}
|
|
try {
|
|
if (this.b == C.TIME_UNSET) {
|
|
long j2 = this.a;
|
|
if (j2 == 9223372036854775806L) {
|
|
j2 = ((Long) b1.a((Long) this.d.get())).longValue();
|
|
}
|
|
this.b = j2 - j;
|
|
notifyAll();
|
|
}
|
|
this.c = j;
|
|
return j + this.b;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
public synchronized long b(long j) {
|
|
if (j == C.TIME_UNSET) {
|
|
return C.TIME_UNSET;
|
|
}
|
|
try {
|
|
long j2 = this.c;
|
|
if (j2 != C.TIME_UNSET) {
|
|
long e = e(j2);
|
|
long j3 = (4294967296L + e) / 8589934592L;
|
|
long j4 = ((j3 - 1) * 8589934592L) + j;
|
|
j += j3 * 8589934592L;
|
|
if (Math.abs(j4 - e) < Math.abs(j - e)) {
|
|
j = j4;
|
|
}
|
|
}
|
|
return a(c(j));
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
public ho(long j) {
|
|
d(j);
|
|
}
|
|
|
|
public synchronized long c() {
|
|
return this.b;
|
|
}
|
|
|
|
public synchronized void d(long j) {
|
|
this.a = j;
|
|
this.b = j == Long.MAX_VALUE ? 0L : -9223372036854775807L;
|
|
this.c = C.TIME_UNSET;
|
|
}
|
|
|
|
public static long e(long j) {
|
|
return (j * 90000) / 1000000;
|
|
}
|
|
|
|
public synchronized long b() {
|
|
long j;
|
|
try {
|
|
j = this.c;
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
return j != C.TIME_UNSET ? j + this.b : a();
|
|
}
|
|
|
|
public synchronized long a() {
|
|
long j;
|
|
j = this.a;
|
|
if (j == Long.MAX_VALUE || j == 9223372036854775806L) {
|
|
j = C.TIME_UNSET;
|
|
}
|
|
return j;
|
|
}
|
|
|
|
public static long c(long j) {
|
|
return (j * 1000000) / 90000;
|
|
}
|
|
}
|