You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
327 lines
8.5 KiB
327 lines
8.5 KiB
package p023h0;
|
|
|
|
import android.content.ClipData;
|
|
import android.net.Uri;
|
|
import android.os.Build;
|
|
import android.os.Bundle;
|
|
import android.view.ContentInfo;
|
|
import p020g0.C0737f;
|
|
|
|
/* renamed from: h0.c */
|
|
/* loaded from: classes.dex */
|
|
public final class C0784c {
|
|
|
|
/* renamed from: a */
|
|
public final InterfaceC0790f f2409a;
|
|
|
|
/* renamed from: h0.c$a */
|
|
/* loaded from: classes.dex */
|
|
public static final class C0785a {
|
|
|
|
/* renamed from: a */
|
|
public final InterfaceC0787c f2410a;
|
|
|
|
public C0785a(ClipData clipData, int i) {
|
|
this.f2410a = Build.VERSION.SDK_INT >= 31 ? new C0786b(clipData, i) : new C0788d(clipData, i);
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public C0784c m2918a() {
|
|
return this.f2410a.build();
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public C0785a m2917b(Bundle bundle) {
|
|
this.f2410a.setExtras(bundle);
|
|
return this;
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public C0785a m2916c(int i) {
|
|
this.f2410a.mo2913b(i);
|
|
return this;
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public C0785a m2915d(Uri uri) {
|
|
this.f2410a.mo2914a(uri);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
/* renamed from: h0.c$b */
|
|
/* loaded from: classes.dex */
|
|
public static final class C0786b implements InterfaceC0787c {
|
|
|
|
/* renamed from: a */
|
|
public final ContentInfo.Builder f2411a;
|
|
|
|
public C0786b(ClipData clipData, int i) {
|
|
this.f2411a = new ContentInfo.Builder(clipData, i);
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0787c
|
|
/* renamed from: a */
|
|
public void mo2914a(Uri uri) {
|
|
this.f2411a.setLinkUri(uri);
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0787c
|
|
/* renamed from: b */
|
|
public void mo2913b(int i) {
|
|
this.f2411a.setFlags(i);
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0787c
|
|
public C0784c build() {
|
|
ContentInfo build;
|
|
build = this.f2411a.build();
|
|
return new C0784c(new C0789e(build));
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0787c
|
|
public void setExtras(Bundle bundle) {
|
|
this.f2411a.setExtras(bundle);
|
|
}
|
|
}
|
|
|
|
/* renamed from: h0.c$c */
|
|
/* loaded from: classes.dex */
|
|
public interface InterfaceC0787c {
|
|
/* renamed from: a */
|
|
void mo2914a(Uri uri);
|
|
|
|
/* renamed from: b */
|
|
void mo2913b(int i);
|
|
|
|
C0784c build();
|
|
|
|
void setExtras(Bundle bundle);
|
|
}
|
|
|
|
/* renamed from: h0.c$d */
|
|
/* loaded from: classes.dex */
|
|
public static final class C0788d implements InterfaceC0787c {
|
|
|
|
/* renamed from: a */
|
|
public ClipData f2412a;
|
|
|
|
/* renamed from: b */
|
|
public int f2413b;
|
|
|
|
/* renamed from: c */
|
|
public int f2414c;
|
|
|
|
/* renamed from: d */
|
|
public Uri f2415d;
|
|
|
|
/* renamed from: e */
|
|
public Bundle f2416e;
|
|
|
|
public C0788d(ClipData clipData, int i) {
|
|
this.f2412a = clipData;
|
|
this.f2413b = i;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0787c
|
|
/* renamed from: a */
|
|
public void mo2914a(Uri uri) {
|
|
this.f2415d = uri;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0787c
|
|
/* renamed from: b */
|
|
public void mo2913b(int i) {
|
|
this.f2414c = i;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0787c
|
|
public C0784c build() {
|
|
return new C0784c(new C0791g(this));
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0787c
|
|
public void setExtras(Bundle bundle) {
|
|
this.f2416e = bundle;
|
|
}
|
|
}
|
|
|
|
/* renamed from: h0.c$e */
|
|
/* loaded from: classes.dex */
|
|
public static final class C0789e implements InterfaceC0790f {
|
|
|
|
/* renamed from: a */
|
|
public final ContentInfo f2417a;
|
|
|
|
public C0789e(ContentInfo contentInfo) {
|
|
this.f2417a = (ContentInfo) C0737f.m3033f(contentInfo);
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0790f
|
|
/* renamed from: a */
|
|
public ClipData mo2912a() {
|
|
ClipData clip;
|
|
clip = this.f2417a.getClip();
|
|
return clip;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0790f
|
|
/* renamed from: b */
|
|
public int mo2911b() {
|
|
int flags;
|
|
flags = this.f2417a.getFlags();
|
|
return flags;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0790f
|
|
/* renamed from: c */
|
|
public ContentInfo mo2910c() {
|
|
return this.f2417a;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0790f
|
|
/* renamed from: d */
|
|
public int mo2909d() {
|
|
int source;
|
|
source = this.f2417a.getSource();
|
|
return source;
|
|
}
|
|
|
|
public String toString() {
|
|
return "ContentInfoCompat{" + this.f2417a + "}";
|
|
}
|
|
}
|
|
|
|
/* renamed from: h0.c$f */
|
|
/* loaded from: classes.dex */
|
|
public interface InterfaceC0790f {
|
|
/* renamed from: a */
|
|
ClipData mo2912a();
|
|
|
|
/* renamed from: b */
|
|
int mo2911b();
|
|
|
|
/* renamed from: c */
|
|
ContentInfo mo2910c();
|
|
|
|
/* renamed from: d */
|
|
int mo2909d();
|
|
}
|
|
|
|
/* renamed from: h0.c$g */
|
|
/* loaded from: classes.dex */
|
|
public static final class C0791g implements InterfaceC0790f {
|
|
|
|
/* renamed from: a */
|
|
public final ClipData f2418a;
|
|
|
|
/* renamed from: b */
|
|
public final int f2419b;
|
|
|
|
/* renamed from: c */
|
|
public final int f2420c;
|
|
|
|
/* renamed from: d */
|
|
public final Uri f2421d;
|
|
|
|
/* renamed from: e */
|
|
public final Bundle f2422e;
|
|
|
|
public C0791g(C0788d c0788d) {
|
|
this.f2418a = (ClipData) C0737f.m3033f(c0788d.f2412a);
|
|
this.f2419b = C0737f.m3037b(c0788d.f2413b, 0, 5, "source");
|
|
this.f2420c = C0737f.m3034e(c0788d.f2414c, 1);
|
|
this.f2421d = c0788d.f2415d;
|
|
this.f2422e = c0788d.f2416e;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0790f
|
|
/* renamed from: a */
|
|
public ClipData mo2912a() {
|
|
return this.f2418a;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0790f
|
|
/* renamed from: b */
|
|
public int mo2911b() {
|
|
return this.f2420c;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0790f
|
|
/* renamed from: c */
|
|
public ContentInfo mo2910c() {
|
|
return null;
|
|
}
|
|
|
|
@Override // p023h0.C0784c.InterfaceC0790f
|
|
/* renamed from: d */
|
|
public int mo2909d() {
|
|
return this.f2419b;
|
|
}
|
|
|
|
public String toString() {
|
|
String str;
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("ContentInfoCompat{clip=");
|
|
sb.append(this.f2418a.getDescription());
|
|
sb.append(", source=");
|
|
sb.append(C0784c.m2921e(this.f2419b));
|
|
sb.append(", flags=");
|
|
sb.append(C0784c.m2925a(this.f2420c));
|
|
if (this.f2421d == null) {
|
|
str = "";
|
|
} else {
|
|
str = ", hasLinkUri(" + this.f2421d.toString().length() + ")";
|
|
}
|
|
sb.append(str);
|
|
sb.append(this.f2422e != null ? ", hasExtras" : "");
|
|
sb.append("}");
|
|
return sb.toString();
|
|
}
|
|
}
|
|
|
|
public C0784c(InterfaceC0790f interfaceC0790f) {
|
|
this.f2409a = interfaceC0790f;
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public static String m2925a(int i) {
|
|
return (i & 1) != 0 ? "FLAG_CONVERT_TO_PLAIN_TEXT" : String.valueOf(i);
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public static String m2921e(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";
|
|
}
|
|
|
|
/* renamed from: g */
|
|
public static C0784c m2919g(ContentInfo contentInfo) {
|
|
return new C0784c(new C0789e(contentInfo));
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public ClipData m2924b() {
|
|
return this.f2409a.mo2912a();
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public int m2923c() {
|
|
return this.f2409a.mo2911b();
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public int m2922d() {
|
|
return this.f2409a.mo2909d();
|
|
}
|
|
|
|
/* renamed from: f */
|
|
public ContentInfo m2920f() {
|
|
ContentInfo mo2910c = this.f2409a.mo2910c();
|
|
mo2910c.getClass();
|
|
return mo2910c;
|
|
}
|
|
|
|
public String toString() {
|
|
return this.f2409a.toString();
|
|
}
|
|
} |