package u8; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import d9.u; import java.io.Serializable; import java.util.ArrayList; /* compiled from: BundleWapper */ public final class d { /* renamed from: a reason: collision with root package name */ public Bundle f136182a; /* renamed from: b reason: collision with root package name */ public String f136183b; /* renamed from: c reason: collision with root package name */ public String f136184c; public d(String str, String str2, Bundle bundle) { this.f136183b = str; this.f136184c = str2; this.f136182a = bundle; } /* JADX WARNING: Code restructure failed: missing block: B:7:0x001b, code lost: if (android.text.TextUtils.isEmpty(r3) == false) goto L_0x001f; */ public static d c(Intent intent) { String str; String str2 = null; if (intent == null) { u.a("BundleWapper", "create error : intent is null"); return null; } Bundle extras = intent.getExtras(); if (extras != null) { str = extras.getString("client_pkgname"); } str = null; if (TextUtils.isEmpty(str)) { u.h("BundleWapper", "create warning: pkgName is null"); } String str3 = intent.getPackage(); if (TextUtils.isEmpty(str3)) { if (intent.getComponent() != null) { str2 = intent.getComponent().getPackageName(); } if (TextUtils.isEmpty(str2)) { u.h("BundleWapper", "create warning: targetPkgName is null"); } str3 = str2; } return new d(str, str3, extras); } public final String a() { return this.f136183b; } public final String b(String str) { Bundle bundle = this.f136182a; if (bundle == null) { return null; } return bundle.getString(str); } public final void d(String str, int i10) { if (this.f136182a == null) { this.f136182a = new Bundle(); } this.f136182a.putInt(str, i10); } public final void e(String str, long j14) { if (this.f136182a == null) { this.f136182a = new Bundle(); } this.f136182a.putLong(str, j14); } public final void f(String str, Serializable serializable) { if (this.f136182a == null) { this.f136182a = new Bundle(); } this.f136182a.putSerializable(str, serializable); } public final void g(String str, String str2) { if (this.f136182a == null) { this.f136182a = new Bundle(); } this.f136182a.putString(str, str2); } public final void h(String str, ArrayList<String> arrayList) { if (this.f136182a == null) { this.f136182a = new Bundle(); } this.f136182a.putStringArrayList(str, arrayList); } public final void i(String str, boolean z14) { if (this.f136182a == null) { this.f136182a = new Bundle(); } this.f136182a.putBoolean(str, z14); } public final void j(String str, byte[] bArr) { if (this.f136182a == null) { this.f136182a = new Bundle(); } this.f136182a.putByteArray(str, bArr); } public final int k(String str, int i10) { Bundle bundle = this.f136182a; return bundle == null ? i10 : bundle.getInt(str, i10); } public final long l(String str, long j14) { Bundle bundle = this.f136182a; return bundle == null ? j14 : bundle.getLong(str, j14); } public final Bundle m() { return this.f136182a; } public final byte[] n(String str) { Bundle bundle = this.f136182a; if (bundle == null) { return null; } return bundle.getByteArray(str); } public final ArrayList<String> o(String str) { Bundle bundle = this.f136182a; if (bundle == null) { return null; } return bundle.getStringArrayList(str); } public final Serializable p(String str) { Bundle bundle = this.f136182a; if (bundle == null) { return null; } return bundle.getSerializable(str); } public final boolean q(String str) { Bundle bundle = this.f136182a; if (bundle == null) { return false; } return bundle.getBoolean(str, false); } }