what-the-bank/sources/o/irq.java

282 lines
7.0 KiB
Java

package o;
import android.content.ClipData;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.ContentInfo;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import java.util.Locale;
import java.util.Objects;
/* loaded from: classes.dex */
public final class irq {
private final RVV b;
/* loaded from: classes.dex */
interface RVV {
int b();
int d();
ClipData rh_();
ContentInfo ri_();
}
/* loaded from: classes.dex */
interface Sts {
irq a();
void a(int i);
void rb_(Bundle bundle);
void rc_(Uri uri);
}
static String c(int i) {
return i != 0 ? i != 1 ? i != 2 ? i != 3 ? i != 4 ? i != 5 ? String.valueOf(i) : "SOURCE_PROCESS_TEXT" : "SOURCE_AUTOFILL" : "SOURCE_DRAG_AND_DROP" : "SOURCE_INPUT_METHOD" : "SOURCE_CLIPBOARD" : "SOURCE_APP";
}
static String a(int i) {
return (i & 1) != 0 ? "FLAG_CONVERT_TO_PLAIN_TEXT" : String.valueOf(i);
}
irq(RVV rvv) {
this.b = rvv;
}
public static irq qS_(ContentInfo contentInfo) {
return new irq(new saX(contentInfo));
}
public final ContentInfo qU_() {
return (ContentInfo) Objects.requireNonNull(this.b.ri_());
}
public final String toString() {
return this.b.toString();
}
public final ClipData qT_() {
return this.b.rh_();
}
public final int b() {
return this.b.d();
}
public final int d() {
return this.b.b();
}
/* loaded from: classes.dex */
static final class tOB implements RVV {
private final int a;
private final int b;
private final Uri c;
private final ClipData d;
private final Bundle e;
@Override // o.irq.RVV
public final ContentInfo ri_() {
return null;
}
tOB(IeS ieS) {
this.d = ieS.d;
int i = ieS.b;
if (i < 0) {
throw new IllegalArgumentException(String.format(Locale.US, "%s is out of range of [%d, %d] (too low)", "source", 0, 5));
}
if (i <= 5) {
this.a = i;
int i2 = ieS.a;
if ((i2 & 1) == i2) {
this.b = i2;
this.c = ieS.e;
this.e = ieS.c;
return;
} else {
StringBuilder sb = new StringBuilder("Requested flags 0x");
sb.append(Integer.toHexString(i2));
sb.append(", but only 0x");
sb.append(Integer.toHexString(1));
sb.append(" are allowed");
throw new IllegalArgumentException(sb.toString());
}
}
throw new IllegalArgumentException(String.format(Locale.US, "%s is out of range of [%d, %d] (too high)", "source", 0, 5));
}
public final String toString() {
String obj;
StringBuilder sb = new StringBuilder("ContentInfoCompat{clip=");
sb.append(this.d.getDescription());
sb.append(", source=");
sb.append(irq.c(this.a));
sb.append(", flags=");
sb.append(irq.a(this.b));
if (this.c == null) {
obj = "";
} else {
StringBuilder sb2 = new StringBuilder(", hasLinkUri(");
sb2.append(this.c.toString().length());
sb2.append(")");
obj = sb2.toString();
}
sb.append(obj);
sb.append(this.e != null ? ", hasExtras" : "");
sb.append(UrlTreeKt.componentParamSuffix);
return sb.toString();
}
@Override // o.irq.RVV
public final int d() {
return this.a;
}
@Override // o.irq.RVV
public final int b() {
return this.b;
}
@Override // o.irq.RVV
public final ClipData rh_() {
return this.d;
}
}
/* loaded from: classes.dex */
static final class saX implements RVV {
private final ContentInfo e;
saX(ContentInfo contentInfo) {
this.e = contentInfo;
}
@Override // o.irq.RVV
public final ClipData rh_() {
return this.e.getClip();
}
@Override // o.irq.RVV
public final int d() {
return this.e.getSource();
}
@Override // o.irq.RVV
public final int b() {
return this.e.getFlags();
}
public final String toString() {
StringBuilder sb = new StringBuilder("ContentInfoCompat{");
sb.append(this.e);
sb.append(UrlTreeKt.componentParamSuffix);
return sb.toString();
}
@Override // o.irq.RVV
public final ContentInfo ri_() {
return this.e;
}
}
/* loaded from: classes.dex */
public static final class HBt {
private final Sts e;
public HBt(ClipData clipData, int i) {
if (Build.VERSION.SDK_INT >= 31) {
this.e = new LWm(clipData, i);
} else {
this.e = new IeS(clipData, i);
}
}
public final HBt b(int i) {
this.e.a(i);
return this;
}
public final HBt qW_(Uri uri) {
this.e.rc_(uri);
return this;
}
public final HBt qV_(Bundle bundle) {
this.e.rb_(bundle);
return this;
}
public final irq b() {
return this.e.a();
}
}
/* loaded from: classes.dex */
static final class IeS implements Sts {
int a;
int b;
Bundle c;
ClipData d;
Uri e;
IeS(ClipData clipData, int i) {
this.d = clipData;
this.b = i;
}
@Override // o.irq.Sts
public final irq a() {
return new irq(new tOB(this));
}
@Override // o.irq.Sts
public final void rc_(Uri uri) {
this.e = uri;
}
@Override // o.irq.Sts
public final void a(int i) {
this.a = i;
}
@Override // o.irq.Sts
public final void rb_(Bundle bundle) {
this.c = bundle;
}
}
/* loaded from: classes.dex */
static final class LWm implements Sts {
private final ContentInfo.Builder e;
LWm(ClipData clipData, int i) {
this.e = new ContentInfo.Builder(clipData, i);
}
@Override // o.irq.Sts
public final void a(int i) {
this.e.setFlags(i);
}
@Override // o.irq.Sts
public final void rc_(Uri uri) {
this.e.setLinkUri(uri);
}
@Override // o.irq.Sts
public final void rb_(Bundle bundle) {
this.e.setExtras(bundle);
}
@Override // o.irq.Sts
public final irq a() {
return new irq(new saX(this.e.build()));
}
}
}