CrackMe.apk
Download file
package com.google.android.exoplayer2;
import android.os.Bundle;
import com.google.android.exoplayer2.Bundleable;
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.Util;
public final class PlaybackParameters implements Bundleable {
public static final Bundleable.Creator<PlaybackParameters> CREATOR = PlaybackParameters$$ExternalSyntheticLambda0.INSTANCE;
public static final PlaybackParameters DEFAULT = new PlaybackParameters(1.0f);
private static final int FIELD_PITCH = 1;
private static final int FIELD_SPEED = 0;
public final float pitch;
private final int scaledUsPerMs;
public final float speed;
public PlaybackParameters(float f) {
this(f, 1.0f);
}
public PlaybackParameters(float f, float f2) {
boolean z = true;
Assertions.checkArgument(f > 0.0f);
Assertions.checkArgument(f2 <= 0.0f ? false : z);
this.speed = f;
this.pitch = f2;
this.scaledUsPerMs = Math.round(f * 1000.0f);
}
public long getMediaTimeUsForPlayoutTimeMs(long j) {
return j * ((long) this.scaledUsPerMs);
}
public PlaybackParameters withSpeed(float f) {
return new PlaybackParameters(f, this.pitch);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
PlaybackParameters playbackParameters = (PlaybackParameters) obj;
if (this.speed == playbackParameters.speed && this.pitch == playbackParameters.pitch) {
return true;
}
return false;
}
public int hashCode() {
return ((527 + Float.floatToRawIntBits(this.speed)) * 31) + Float.floatToRawIntBits(this.pitch);
}
public String toString() {
return Util.formatInvariant("PlaybackParameters(speed=%.2f, pitch=%.2f)", Float.valueOf(this.speed), Float.valueOf(this.pitch));
}
public Bundle toBundle() {
Bundle bundle = new Bundle();
bundle.putFloat(keyForField(0), this.speed);
bundle.putFloat(keyForField(1), this.pitch);
return bundle;
}
static /* synthetic */ PlaybackParameters lambda$static$0(Bundle bundle) {
return new PlaybackParameters(bundle.getFloat(keyForField(0), 1.0f), bundle.getFloat(keyForField(1), 1.0f));
}
private static String keyForField(int i) {
return Integer.toString(i, 36);
}
}
Download file