alexandroid/decompiled/jadx/sources/androidx/camera/video/AutoValue_FileOutputOptions_FileOutputOptionsInternal.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

131 lines
5.6 KiB
Java

package androidx.camera.video;
import android.location.Location;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.camera.video.FileOutputOptions;
import java.io.File;
import org.apache.commons.text.StringSubstitutor;
import rx.Single$$ExternalSyntheticBUOutline0;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes.dex */
final class AutoValue_FileOutputOptions_FileOutputOptionsInternal extends FileOutputOptions.FileOutputOptionsInternal {
private final long durationLimitMillis;
private final File file;
private final long fileSizeLimit;
private final Location location;
private AutoValue_FileOutputOptions_FileOutputOptionsInternal(long j, long j2, @Nullable Location location, File file) {
this.fileSizeLimit = j;
this.durationLimitMillis = j2;
this.location = location;
this.file = file;
}
public boolean equals(Object obj) {
Location location;
if (obj == this) {
return true;
}
if (obj instanceof FileOutputOptions.FileOutputOptionsInternal) {
FileOutputOptions.FileOutputOptionsInternal fileOutputOptionsInternal = (FileOutputOptions.FileOutputOptionsInternal) obj;
if (this.fileSizeLimit == fileOutputOptionsInternal.getFileSizeLimit() && this.durationLimitMillis == fileOutputOptionsInternal.getDurationLimitMillis() && ((location = this.location) != null ? location.equals(fileOutputOptionsInternal.getLocation()) : fileOutputOptionsInternal.getLocation() == null) && this.file.equals(fileOutputOptionsInternal.getFile())) {
return true;
}
}
return false;
}
@Override // androidx.camera.video.OutputOptions.OutputOptionsInternal
@IntRange(from = 0)
public long getDurationLimitMillis() {
return this.durationLimitMillis;
}
@Override // androidx.camera.video.FileOutputOptions.FileOutputOptionsInternal
@NonNull
public File getFile() {
return this.file;
}
@Override // androidx.camera.video.OutputOptions.OutputOptionsInternal
@IntRange(from = 0)
public long getFileSizeLimit() {
return this.fileSizeLimit;
}
@Override // androidx.camera.video.OutputOptions.OutputOptionsInternal
@Nullable
public Location getLocation() {
return this.location;
}
public int hashCode() {
long j = this.fileSizeLimit;
long j2 = this.durationLimitMillis;
int i = (((((int) (j ^ (j >>> 32))) ^ 1000003) * 1000003) ^ ((int) ((j2 >>> 32) ^ j2))) * 1000003;
Location location = this.location;
return this.file.hashCode() ^ ((i ^ (location == null ? 0 : location.hashCode())) * 1000003);
}
public String toString() {
return "FileOutputOptionsInternal{fileSizeLimit=" + this.fileSizeLimit + ", durationLimitMillis=" + this.durationLimitMillis + ", location=" + this.location + ", file=" + this.file + StringSubstitutor.DEFAULT_VAR_END;
}
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static final class Builder extends FileOutputOptions.FileOutputOptionsInternal.Builder {
private Long durationLimitMillis;
private File file;
private Long fileSizeLimit;
private Location location;
@Override // androidx.camera.video.FileOutputOptions.FileOutputOptionsInternal.Builder, androidx.camera.video.OutputOptions.OutputOptionsInternal.Builder
public FileOutputOptions.FileOutputOptionsInternal build() {
String str = this.fileSizeLimit == null ? " fileSizeLimit" : "";
if (this.durationLimitMillis == null) {
str = str.concat(" durationLimitMillis");
}
if (this.file == null) {
str = str.concat(" file");
}
if (str.isEmpty()) {
return new AutoValue_FileOutputOptions_FileOutputOptionsInternal(this.fileSizeLimit.longValue(), this.durationLimitMillis.longValue(), this.location, this.file);
}
Single$$ExternalSyntheticBUOutline0.m$2("Missing required properties:".concat(str));
return null;
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // androidx.camera.video.OutputOptions.OutputOptionsInternal.Builder
public FileOutputOptions.FileOutputOptionsInternal.Builder setDurationLimitMillis(long j) {
this.durationLimitMillis = Long.valueOf(j);
return this;
}
@Override // androidx.camera.video.FileOutputOptions.FileOutputOptionsInternal.Builder
public FileOutputOptions.FileOutputOptionsInternal.Builder setFile(File file) {
if (file != null) {
this.file = file;
return this;
}
Single$$ExternalSyntheticBUOutline0.m$1("Null file");
return null;
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // androidx.camera.video.OutputOptions.OutputOptionsInternal.Builder
public FileOutputOptions.FileOutputOptionsInternal.Builder setFileSizeLimit(long j) {
this.fileSizeLimit = Long.valueOf(j);
return this;
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // androidx.camera.video.OutputOptions.OutputOptionsInternal.Builder
public FileOutputOptions.FileOutputOptionsInternal.Builder setLocation(@Nullable Location location) {
this.location = location;
return this;
}
}
}